-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
65 lines (51 loc) · 1.36 KB
/
Copy pathmainwindow.h
File metadata and controls
65 lines (51 loc) · 1.36 KB
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStandardItemModel>
#include <cstdlib>
#include <memory>
#include "adddevicedialog.h"
#include "globals.h"
#include "ioservicehandler.h"
#include "ui_mainwindow.h"
#include "globals.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
friend class AddDeviceDialog;
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void startServer();
void stopServer();
void addDevice();
void removeDevice();
void connectDevice();
void disconnectDevice();
public slots:
void setServerStatusLabel(const char*);
void deviceAdded(const char*, const char*);
void updateDevice(const char*,const char*);
void deviceRemoved(const char*);
//add dialog name check
void checkName(const QString&);
void nameAvailable(bool);
signals:
void startButtonPushed(const uint16_t&);
void stopButtonPushed();
void addDialogSuccessfull(const std::string&, const std::string&, int);
void removeButtonPushed(const char*);
void onSetServerStatusLabel(const QString &);
void checkName(const char*);
void isNameAvailable(bool);
void connect(const char*);
void disconnect(const char*);
private:
Ui::MainWindow *ui;
QStandardItemModel model;
};
#endif // MAINWINDOW_H