added first network things
This commit is contained in:
17
mainwindow.h
17
mainwindow.h
@@ -2,11 +2,14 @@
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "QtNetwork/QNetworkAccessManager"
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
namespace yremote {
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -15,8 +18,22 @@ public:
|
||||
explicit MainWindow(QWidget *parent = 0);
|
||||
~MainWindow();
|
||||
|
||||
protected:
|
||||
void func();
|
||||
|
||||
private slots:
|
||||
void on_btn_onoff_clicked();
|
||||
|
||||
void on_txt_address_textEdited(const QString &arg1);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QString sendCommand(QString cmd);
|
||||
|
||||
QString mAddress;
|
||||
QNetworkAccessManager *manager;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user