Solid
serialinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SOLID_SERIALINTERFACE_H
00021 #define SOLID_SERIALINTERFACE_H
00022
00023 #include <solid/solid_export.h>
00024
00025 #include <solid/deviceinterface.h>
00026
00027 namespace Solid
00028 {
00029 class SerialInterfacePrivate;
00030 class Device;
00031
00036 class SOLID_EXPORT SerialInterface : public DeviceInterface
00037 {
00038 Q_OBJECT
00039 Q_PROPERTY(QVariant driverHandle READ driverHandle)
00040 Q_PROPERTY(QString serialType READ serialType)
00041 Q_PROPERTY(int port READ port)
00042 Q_ENUMS(SerialType)
00043 Q_DECLARE_PRIVATE(SerialInterface)
00044 friend class Device;
00045
00046 private:
00056 explicit SerialInterface(QObject *backendObject);
00057
00058 public:
00063 virtual ~SerialInterface();
00064
00065
00073 static Type deviceInterfaceType() { return DeviceInterface::SerialInterface; }
00074
00075
00084 virtual QVariant driverHandle() const;
00085
00095 enum SerialType { Unknown = 0, Platform, Usb };
00096
00105 virtual SerialType serialType() const;
00106
00113 virtual int port() const;
00114 };
00115 }
00116
00117 #endif // SOLID_SERIALINTERFACE_H