summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_serial.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/io_serial.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_serial.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/io_serial.h b/noncore/apps/opie-console/io_serial.h
index 1d34411..521dac6 100644
--- a/noncore/apps/opie-console/io_serial.h
+++ b/noncore/apps/opie-console/io_serial.h
@@ -21,39 +21,39 @@ public:
21 ParityNone = 0, 21 ParityNone = 0,
22 ParityEven, 22 ParityEven,
23 ParityOdd, 23 ParityOdd,
24 ParitySpace, 24 ParitySpace,
25 ParityMark 25 ParityMark
26 }; 26 };
27 27
28 enum Flow { 28 enum Flow {
29 FlowHW = 0x01, 29 FlowHW = 0x01,
30 FlowSW = 0x02 30 FlowSW = 0x02
31 }; 31 };
32 32
33 IOSerial(const Config &); 33 IOSerial(const Profile &);
34 ~IOSerial(); 34 ~IOSerial();
35 35
36 QString identifier() const; 36 QString identifier() const;
37 QString name() const; 37 QString name() const;
38signals: 38signals:
39 void received(const QByteArray &); 39 void received(const QByteArray &);
40 void error(int, const QString &); 40 void error(int, const QString &);
41public slots: 41public slots:
42 void send(const QByteArray &); 42 void send(const QByteArray &);
43 bool open(); 43 bool open();
44 void close(); 44 void close();
45 void reload(const Config &); 45 void reload(const Profile &);
46protected: 46protected:
47 int getBaud(int baud) const; 47 int baud(int baud) const;
48protected slots: 48protected slots:
49 void dataArrived(); 49 void dataArrived();
50 void errorOccured(); 50 void errorOccured();
51protected: 51protected:
52 QSocketNotifier *m_read; 52 QSocketNotifier *m_read;
53 QSocketNotifier *m_error; 53 QSocketNotifier *m_error;
54 QString m_device; 54 QString m_device;
55 int m_baud; 55 int m_baud;
56 int m_parity; 56 int m_parity;
57 int m_dbits; 57 int m_dbits;
58 int m_sbits; 58 int m_sbits;
59 int m_flow; 59 int m_flow;