Solid
acadapter.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_ACADAPTER_H
00021 #define SOLID_ACADAPTER_H
00022
00023 #include <solid/solid_export.h>
00024
00025 #include <solid/deviceinterface.h>
00026
00027 namespace Solid
00028 {
00029 class AcAdapterPrivate;
00030 class Device;
00031
00035 class SOLID_EXPORT AcAdapter : public DeviceInterface
00036 {
00037 Q_OBJECT
00038 Q_PROPERTY(bool plugged READ isPlugged)
00039 Q_DECLARE_PRIVATE(AcAdapter)
00040 friend class Device;
00041
00042 private:
00051 explicit AcAdapter(QObject *backendObject);
00052
00053 public:
00057 virtual ~AcAdapter();
00058
00059
00066 static Type deviceInterfaceType() { return DeviceInterface::AcAdapter; }
00067
00073 bool isPlugged() const;
00074
00075 Q_SIGNALS:
00082 void plugStateChanged(bool newState, const QString &udi);
00083 };
00084 }
00085
00086 #endif