summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_irda.h
blob: 1fdbd4bb53afba6e666576363248c5b8a28957a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef OPIE_IO_IRDA
#define OPIE_IO_IRDA

#include <opie2/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();

    virtual QString identifier() const;
    virtual QString name() const;

signals:
    void received(const QByteArray &);
    void error(int, const QString &);

public slots:
    virtual bool open();
    virtual void close();
    virtual void reload(const Profile &);

private:
    Opie::Core::OProcess *m_attach;

private slots:
    void slotExited(Opie::Core::OProcess* proc);

};

#endif /* OPIE_IO_IRDA */