-
Notifications
You must be signed in to change notification settings - Fork 2
/
rs232visualizermain.h
50 lines (38 loc) · 970 Bytes
/
rs232visualizermain.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
#ifndef RS232VISUALIZERMAIN_H
#define RS232VISUALIZERMAIN_H
#include <QtWidgets/QApplication>
#include <QtQml>
#include <QtQuick/QQuickView>
#include <QIcon>
#include <QObject>
#include "serialconnect.h"
#include "appsettings.h"
class RS232VisualizerMain : public QObject
{
Q_OBJECT
public:
explicit RS232VisualizerMain(QObject *parent = 0);
virtual ~RS232VisualizerMain();
QQmlEngine *engine;
QQmlComponent *component;
QObject *topLevel;
QQuickWindow *window;
signals:
void openSerialPort();
void closeSerialPort();
void serialObjectChanged();
public slots:
// void aboutToQuit();
private:
SerialConnect* serialPort;
AppSettings* staticSettings;
int startGUI();
void startSerialPort();
void connectionsGUIserial();
void connectionsCore();
void initializeSettings();
private slots:
// void destroySerialPort();
// void newSerialPortSet(QString);
};
#endif // RS232VISUALIZERMAIN_H