-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportbase.h
More file actions
40 lines (28 loc) · 771 Bytes
/
portbase.h
File metadata and controls
40 lines (28 loc) · 771 Bytes
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
#ifndef PORTBASE_H
#define PORTBASE_H
#include <QObject>
#include "configuration.h"
#include "decoderbase.h"
class PortBase : public QThread
{
Q_OBJECT
public:
explicit PortBase(Configuration* config = 0);
virtual ~PortBase();
DecoderBase* decoder;
virtual void run() = 0;
virtual void send(const QString & str) = 0;
protected:
Configuration* config;
QByteArray dataBytes;
QList<double> dataValues;
signals:
//void stopped() = 0;
//void newData(const QByteArray&);
//void message(const QString& text,const QString& type);
public slots:
//virtual void start() = 0;
virtual void requestToStop() = 0;
};
PortBase* createPort(Configuration* config);
#endif // PORTBASE_H