Diffstat (limited to 'noncore/apps/opie-console/io_irda.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_irda.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_irda.h b/noncore/apps/opie-console/io_irda.h new file mode 100644 index 0000000..3aee951 --- a/dev/null +++ b/noncore/apps/opie-console/io_irda.h @@ -0,0 +1,46 @@ +#ifndef OPIE_IO_IRDA +#define OPIE_IO_IRDA + +#include <opie/oprocess.h> +#include "io_serial.h" + +/* Default values to be used if the profile information is incomplete */ +#define IRDA_DEFAULT_DEVICE "/dev/ircomm0" +#define IRDA_DEFAULT_BAUD 9600 +#define IRDA_DEFAULT_PARITY 0 +#define IRDA_DEFAULT_DBITS 8 +#define IRDA_DEFAULT_SBITS 1 +#define IRDA_DEFAULT_FLOW 0 + +/* IOSerial implements a RS232 IO Layer */ + +class IOIrda : public IOSerial { + + Q_OBJECT + +public: + + IOIrda(const Profile &); + ~IOIrda(); + + 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; + +private slots: + void slotExited(OProcess* proc); + +}; + +#endif /* OPIE_IO_IRDA */ |