Solid
deviceinterface.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_DEVICEINTERFACE_H
00021 #define SOLID_DEVICEINTERFACE_H
00022
00023 #include <QtCore/QObject>
00024 #include <QtCore/QBool>
00025
00026 #include <solid/solid_export.h>
00027
00028 namespace Solid
00029 {
00030 class Device;
00031 class DevicePrivate;
00032 class Predicate;
00033 class DeviceInterfacePrivate;
00034
00041 class SOLID_EXPORT DeviceInterface : public QObject
00042 {
00043 Q_OBJECT
00044 Q_ENUMS(Type)
00045 Q_DECLARE_PRIVATE(DeviceInterface)
00046
00047 public:
00062 enum Type { Unknown = 0, GenericInterface = 1, Processor = 2,
00063 Block = 3, StorageAccess = 4, StorageDrive = 5,
00064 OpticalDrive = 6, StorageVolume = 7, OpticalDisc = 8,
00065 Camera = 9, PortableMediaPlayer = 10,
00066 NetworkInterface = 11, AcAdapter = 12, Battery = 13,
00067 Button = 14, AudioInterface = 15, DvbInterface = 16, Video = 17,
00068 Last = 0xffff };
00069
00073 virtual ~DeviceInterface();
00074
00081 bool isValid() const;
00082
00087 static QString typeToString(Type type);
00088
00093 static Type stringToType(const QString &type);
00094
00095 protected:
00103 DeviceInterface(DeviceInterfacePrivate &dd, QObject *backendObject);
00104
00105 DeviceInterfacePrivate *d_ptr;
00106
00107 private:
00108 friend class Device;
00109 friend class DevicePrivate;
00110 };
00111 }
00112
00113 #endif