44 lines
654 B
C++
44 lines
654 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "QtNetwork/QNetworkAccessManager"
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
namespace yremote {
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
~MainWindow();
|
|
|
|
protected:
|
|
void func();
|
|
|
|
private slots:
|
|
void on_btn_onoff_clicked();
|
|
void replyFinished();
|
|
void on_txt_address_textEdited(const QString &arg1);
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
|
|
QString mAddress;
|
|
QNetworkReply *mReply;
|
|
|
|
bool mPowered = false;
|
|
|
|
void sendCommand(QString cmd);
|
|
void updateUi();
|
|
};
|
|
|
|
}
|
|
|
|
#endif // MAINWINDOW_H
|