Files
yremote/mainwindow.h
rogo c535f3784a WiP: added volume update and control
TODO: collect volume change events and send only one
2018-10-06 14:51:27 +02:00

46 lines
711 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(QNetworkReply *reply);
void on_txt_address_textEdited(const QString &arg1);
void on_dial_valueChanged(int value);
private:
Ui::MainWindow *ui;
QString mAddress;
bool mPowered = false;
int mVolume = 0;
void sendCommand(QString cmd);
void updateUi();
};
}
#endif // MAINWINDOW_H