00001 #ifndef OPIE_IO_IRDA 00002 #define OPIE_IO_IRDA 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 IRDA_DEFAULT_DEVICE "/dev/ircomm0" 00009 #define IRDA_DEFAULT_BAUD 9600 00010 #define IRDA_DEFAULT_PARITY 0 00011 #define IRDA_DEFAULT_DBITS 8 00012 #define IRDA_DEFAULT_SBITS 1 00013 #define IRDA_DEFAULT_FLOW 0 00014 00015 /* IOSerial implements a RS232 IO Layer */ 00016 00017 class IOIrda : public IOSerial { 00018 00019 Q_OBJECT 00020 00021 public: 00022 00023 IOIrda(const Profile &); 00024 ~IOIrda(); 00025 00026 virtual QString identifier() const; 00027 virtual QString name() const; 00028 00029 signals: 00030 void received(const QByteArray &); 00031 void error(int, const QString &); 00032 00033 public slots: 00034 virtual bool open(); 00035 virtual void close(); 00036 virtual void reload(const Profile &); 00037 00038 private: 00039 Opie::Core::OProcess *m_attach; 00040 00041 private slots: 00042 void slotExited(Opie::Core::OProcess* proc); 00043 00044 }; 00045 00046 #endif /* OPIE_IO_IRDA */
1.4.2