/* License... */ #ifndef SERIALPORTINFO_H #define SERIALPORTINFO_H #include #include #include "serialport-global.h" QT_BEGIN_NAMESPACE_SERIALPORT class SerialPort; class SerialPortInfoPrivate; class SerialInfoPrivateDeleter; class Q_ADDON_SERIALPORT_EXPORT SerialPortInfo { Q_DECLARE_PRIVATE(SerialPortInfo) public: SerialPortInfo(); SerialPortInfo(const SerialPortInfo &other); SerialPortInfo(const SerialPort &port); SerialPortInfo(const QString &name); ~SerialPortInfo(); SerialPortInfo& operator=(const SerialPortInfo &other); void swap(SerialPortInfo &other); QString portName() const; QString systemLocation() const; QString description() const; QString manufacturer() const; bool isNull() const; bool isBusy() const; bool isValid() const; QList standardRates() const; static QList availablePorts(); private: QScopedPointer d_ptr; }; inline bool SerialPortInfo::isNull() const { return !d_ptr; } QT_END_NAMESPACE_SERIALPORT #endif // SERIALPORTINFO_H