-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserialportsettingmodel.h
48 lines (32 loc) · 1.03 KB
/
serialportsettingmodel.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
#ifndef SERIALPORTSETTINGMODEL_H
#define SERIALPORTSETTINGMODEL_H
#include <QObject>
#include "serialportsettingsconfigset.h"
class SerialPortSettingModel : public QObject
{
Q_OBJECT
public:
explicit SerialPortSettingModel(QObject *parent = 0);
~SerialPortSettingModel();
static SerialPortSettingModel* getInstance();
int getBaudRate() const;
void setBaudRate(int value);
int getDataBits() const;
void setDataBits(int value);
int getParity() const;
void setParity(int value);
int getStopBits() const;
void setStopBits(int value);
int getFlowControl() const;
void setFlowControl(int value);
SerialPortSettingsConfigset getSerialPortConfigSet() const;
void setSerialPortConfigSet(const SerialPortSettingsConfigset &value);
QString getPortName() const;
void setPortName(const QString &value);
signals:
public slots:
private:
static SerialPortSettingModel* uniqueInstance;
SerialPortSettingsConfigset serialPortConfigSet;
};
#endif // SERIALPORTSETTINGMODEL_H