qextserialport.h 885 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

#ifndef _QEXTSERIALPORT_H_
#define _QEXTSERIALPORT_H_

/*POSIX CODE*/
#ifdef _TTY_POSIX_
#include "posix_qextserialport.h"
#define QextBaseType Posix_QextSerialPort

/*MS WINDOWS CODE*/
#else
#include "win_qextserialport.h"
#define QextBaseType Win_QextSerialPort
#endif

16
class QextSerialPort: public QextBaseType
pixhawk's avatar
pixhawk committed
17
{
18 19 20 21 22 23 24 25 26 27 28 29
    Q_OBJECT

public:
    typedef QextSerialBase::QueryMode QueryMode;

    QextSerialPort(QueryMode mode = QextSerialPort::EventDriven);
    QextSerialPort(const QString & name, QueryMode mode = QextSerialPort::EventDriven);
    QextSerialPort(PortSettings const& s, QueryMode mode = QextSerialPort::EventDriven);
    QextSerialPort(const QString & name, PortSettings const& s, QueryMode mode = QextSerialPort::EventDriven);
    QextSerialPort(const QextSerialPort& s);
    QextSerialPort& operator=(const QextSerialPort&);
    virtual ~QextSerialPort();
pixhawk's avatar
pixhawk committed
30 31 32 33

};

#endif