2021-01-06 06:36:42 +00:00
|
|
|
#ifndef OPENRGBE131RECEIVERDIALOG_H
|
|
|
|
|
#define OPENRGBE131RECEIVERDIALOG_H
|
|
|
|
|
|
|
|
|
|
#include "ResourceManager.h"
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class OpenRGBE131ReceiverDialog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class OpenRGBE131ReceiverDialog : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit OpenRGBE131ReceiverDialog(ResourceManager* manager, QWidget *parent = nullptr);
|
|
|
|
|
~OpenRGBE131ReceiverDialog();
|
|
|
|
|
|
|
|
|
|
void DeviceListChanged();
|
|
|
|
|
void E131ReceiverThreadFunction();
|
|
|
|
|
|
2021-01-06 18:54:33 +00:00
|
|
|
private slots:
|
|
|
|
|
void on_ButtonStartReceiver_clicked();
|
|
|
|
|
|
|
|
|
|
void on_ButtonStopReceiver_clicked();
|
|
|
|
|
|
2021-01-06 06:36:42 +00:00
|
|
|
private:
|
2021-01-06 18:54:33 +00:00
|
|
|
ResourceManager* resource_manager;
|
|
|
|
|
Ui::OpenRGBE131ReceiverDialog *ui;
|
|
|
|
|
|
|
|
|
|
bool online;
|
|
|
|
|
unsigned long received_count;
|
|
|
|
|
|
|
|
|
|
std::thread* E131ReceiverThread;
|
2021-01-06 06:36:42 +00:00
|
|
|
|
2021-01-06 18:54:33 +00:00
|
|
|
void UpdateOnlineStatus();
|
2021-01-06 06:36:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // OPENRGBE131RECEIVERDIALOG_H
|