summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_bt.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/io_bt.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_bt.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_bt.h b/noncore/apps/opie-console/io_bt.h
new file mode 100644
index 0000000..5e9988c
--- a/dev/null
+++ b/noncore/apps/opie-console/io_bt.h
@@ -0,0 +1,48 @@
1#ifndef OPIE_IO_BT
2#define OPIE_IO_BT
3
4#include <opie/oprocess.h>
5#include "io_serial.h"
6
7/* Default values to be used if the profile information is incomplete */
8#define BT_DEFAULT_DEVICE "/dev/ttyU0"
9#define BT_DEFAULT_BAUD 9600
10#define BT_DEFAULT_PARITY 0
11#define BT_DEFAULT_DBITS 8
12#define BT_DEFAULT_SBITS 1
13#define BT_DEFAULT_FLOW 0
14#define BT_DEFAULT_MAC 0
15
16
17/* IOSerial implements a RS232 IO Layer */
18
19class IOBt : public IOSerial {
20
21 Q_OBJECT
22
23public:
24
25 IOBt(const Profile &);
26 ~IOBt();
27
28 QString identifier() const;
29 QString name() const;
30
31signals:
32 void received(const QByteArray &);
33 void error(int, const QString &);
34
35public slots:
36 bool open();
37 void close();
38 void reload(const Profile &);
39
40private:
41 OProcess *m_attach;
42 QString m_mac;
43private slots:
44 void slotExited(OProcess* proc);
45
46};
47
48#endif /* OPIE_IO_IRDA */