author | harlekin <harlekin> | 2002-10-09 16:33:36 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-09 16:33:36 (UTC) |
commit | 205926ec86ffd582f795b649179291626e504830 (patch) (side-by-side diff) | |
tree | 3a5759b98a1a263ade37dfb35cfd529a7bcafde9 /noncore/apps/opie-console/io_irda.h | |
parent | f696c6248824166f3ac025d23ac66b46c93b440c (diff) | |
download | opie-205926ec86ffd582f795b649179291626e504830.zip opie-205926ec86ffd582f795b649179291626e504830.tar.gz opie-205926ec86ffd582f795b649179291626e504830.tar.bz2 |
flow now has mode none too .-), irda config widget and beginning of layer, first sweep, rest later
Diffstat (limited to 'noncore/apps/opie-console/io_irda.h') (more/less context) (show 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 */ |