-
Notifications
You must be signed in to change notification settings - Fork 13
/
std_otau_widget.h
71 lines (58 loc) · 1.53 KB
/
std_otau_widget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef STD_OTAU_WIDGET_H
#define STD_OTAU_WIDGET_H
#include <QWidget>
#include "deconz/types.h"
#include "deconz/aps.h"
#include "otau_file.h"
namespace Ui {
class StdOtauWidget;
}
class StdOtauPlugin;
struct OtauFile;
class OtauModel;
struct OtauNode;
class QModelIndex;
class QSortFilterProxyModel;
class StdOtauWidget : public QWidget
{
Q_OBJECT
public:
explicit StdOtauWidget(QWidget *parent);
~StdOtauWidget();
void setOtauModel(OtauModel *model);
uint restartTime();
public Q_SLOTS:
void stateChanged(int state);
void clearSettingsBox();
void updateSettingsBox();
void otauTableActivated(const QModelIndex &index);
// OTAU upgrade
void queryClicked();
void abortClicked();
void updateClicked();
void fileSelectClicked();
bool acksEnabled() const;
bool pageRequestEnabled() const;
int packetSpacingMs() const;
void setPacketSpacingMs(int spacing);
// OTAU file tab
void saveClicked();
void saveAsClicked();
void openClicked();
void displayNode(OtauNode *node);
void displayNode(OtauNode *node, const QModelIndex &index);
void clearNode();
Q_SIGNALS:
void broadcastImageNotify();
void activatedNodeAtRow(int);
void unicastImageNotify(deCONZ::Address);
void unicastUpgradeEndRequest(deCONZ::Address);
private:
void updateEditor();
Ui::StdOtauWidget *ui = nullptr;
QSortFilterProxyModel *proxyModel = nullptr;
QString m_path;
OtauFile m_editOf;
OtauNode *m_ouNode = nullptr;
};
#endif // STD_OTAU_WIDGET_H