Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

io_bt.h

Go to the documentation of this file.
00001 #ifndef OPIE_IO_BT
00002 #define OPIE_IO_BT
00003 
00004 #include <opie2/oprocess.h>
00005 #include "io_serial.h"
00006 
00007 /* Default values to be used if the profile information is incomplete */
00008 #define BT_DEFAULT_DEVICE       "/dev/ttyU0"
00009 #define BT_DEFAULT_BAUD         9600
00010 #define BT_DEFAULT_PARITY       0
00011 #define BT_DEFAULT_DBITS        8
00012 #define BT_DEFAULT_SBITS        1
00013 #define BT_DEFAULT_FLOW         0
00014 #define BT_DEFAULT_MAC          0
00015 
00016 
00017 /* IOSerial implements a RS232 IO Layer */
00018 
00019 class IOBt : public IOSerial {
00020 
00021     Q_OBJECT
00022 
00023 public:
00024 
00025     IOBt(const Profile &);
00026     ~IOBt();
00027 
00028     virtual QString identifier() const;
00029     virtual QString name() const;
00030 
00031 signals:
00032     void received(const QByteArray &);
00033     void error(int, const QString &);
00034 
00035 public slots:
00036     virtual bool open();
00037     virtual void close();
00038     virtual void reload(const Profile &);
00039 
00040 private:
00041     Opie::Core::OProcess *m_attach;
00042     QString m_mac;
00043 private slots:
00044     void slotExited(Opie::Core::OProcess* proc);
00045 
00046 };
00047 
00048 #endif /* OPIE_IO_IRDA */

Generated on Sat Nov 5 16:16:50 2005 for OPIE by  doxygen 1.4.2