summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_bt.h
authorharlekin <harlekin>2002-10-12 15:44:01 (UTC)
committer harlekin <harlekin>2002-10-12 15:44:01 (UTC)
commite6b92ad451dba66f4eb5000a41b96eb2ee203dce (patch) (side-by-side diff)
tree07caa3f11d59c96858dd374d6b7cff90dbe3915e /noncore/apps/opie-console/io_bt.h
parent83aed438ec060307bf5562d91bd8b61fe60f860b (diff)
downloadopie-e6b92ad451dba66f4eb5000a41b96eb2ee203dce.zip
opie-e6b92ad451dba66f4eb5000a41b96eb2ee203dce.tar.gz
opie-e6b92ad451dba66f4eb5000a41b96eb2ee203dce.tar.bz2
some more stuff - modem config, bluetooth.. -, not finished
Diffstat (limited to 'noncore/apps/opie-console/io_bt.h') (more/less context) (ignore 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 @@
+#ifndef OPIE_IO_BT
+#define OPIE_IO_BT
+
+#include <opie/oprocess.h>
+#include "io_serial.h"
+
+/* Default values to be used if the profile information is incomplete */
+#define BT_DEFAULT_DEVICE "/dev/ttyU0"
+#define BT_DEFAULT_BAUD 9600
+#define BT_DEFAULT_PARITY 0
+#define BT_DEFAULT_DBITS 8
+#define BT_DEFAULT_SBITS 1
+#define BT_DEFAULT_FLOW 0
+#define BT_DEFAULT_MAC 0
+
+
+/* IOSerial implements a RS232 IO Layer */
+
+class IOBt : public IOSerial {
+
+ Q_OBJECT
+
+public:
+
+ IOBt(const Profile &);
+ ~IOBt();
+
+ QString identifier() const;
+ QString name() const;
+
+signals:
+ void received(const QByteArray &);
+ void error(int, const QString &);
+
+public slots:
+ bool open();
+ void close();
+ void reload(const Profile &);
+
+private:
+ OProcess *m_attach;
+ QString m_mac;
+private slots:
+ void slotExited(OProcess* proc);
+
+};
+
+#endif /* OPIE_IO_IRDA */