Changeset 152 in pacpusframework for branches/2.0-beta1/include/Pacpus/PacpusTools
- Timestamp:
- Aug 1, 2013, 10:45:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/include/Pacpus/PacpusTools/PacpusSerialPort.h
r122 r152 20 20 namespace pacpus { 21 21 22 class PacpusSerialPort : public QObject, public ComponentBase 22 class PacpusSerialPort 23 : public QObject 24 , public ComponentBase 23 25 { 24 26 Q_OBJECT 25 27 26 28 public: 27 28 typedef enum { ASCII, BINARY } DataMode; 29 typedef enum { 30 ASCII, 31 BINARY 32 } DataMode; 29 33 30 34 PacpusSerialPort(QString name); … … 36 40 ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 37 41 38 v oid addInput();39 v oid addOutput();42 virtual void addInputs(); 43 virtual void addOutputs(); 40 44 void processInputFrame(const QByteArray &); 41 45 42 private Q_SLOTS 46 private Q_SLOTS: 43 47 void readData(); 44 48 45 49 private: 46 47 50 QThread thread_; 48 51 … … 68 71 69 72 bool log; 70 71 72 73 }; 73 74
Note:
See TracChangeset
for help on using the changeset viewer.