-
Notifications
You must be signed in to change notification settings - Fork 1
/
beanpacketssender.h
56 lines (35 loc) · 1023 Bytes
/
beanpacketssender.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
#ifndef BEANPACKETSSENDER_H
#define BEANPACKETSSENDER_H
#include "beanpacketsloggermodel.h"
#include "beanpacketssendermodel.h"
#include <QWidget>
namespace Ui {
class BeanPacketsSender;
}
class BeanPacketsSender : public QWidget
{
Q_OBJECT
public:
explicit BeanPacketsSender(QWidget *parent = nullptr);
~BeanPacketsSender() override;
bool isLiveSend();
void deviceSend();
bool getConnected() const;
void setConnected(bool value);
void packetReceived();
void appendPacket(BeanPacket *pPacket);
void dataChanged();
private slots:
void on_btnAdd_clicked();
void on_tablePacketsSend_clicked(const QModelIndex &index);
void on_btnRun_clicked();
void on_btnDel_clicked();
void rowChanged(const QModelIndex ¤t, const QModelIndex &previous);
void on_btnShot_clicked();
private:
Ui::BeanPacketsSender *ui;
bool connected;
BeanPacketsSenderModel *senderModel;
void rowChanged(int row) const;
};
#endif // BEANPACKETSSENDER_H