Solid
storageaccess.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_STORAGEACCESS_H
00021 #define SOLID_STORAGEACCESS_H
00022
00023 #include <solid/solid_export.h>
00024
00025 #include <solid/solidnamespace.h>
00026 #include <solid/deviceinterface.h>
00027 #include <QtCore/QVariant>
00028
00029 namespace Solid
00030 {
00031 class StorageAccessPrivate;
00032 class Device;
00033
00040 class SOLID_EXPORT StorageAccess : public DeviceInterface
00041 {
00042 Q_OBJECT
00043 Q_PROPERTY(bool accessible READ isAccessible)
00044 Q_PROPERTY(QString filePath READ filePath)
00045 Q_DECLARE_PRIVATE(StorageAccess)
00046 friend class Device;
00047
00048 private:
00057 explicit StorageAccess(QObject *backendObject);
00058
00059 public:
00063 virtual ~StorageAccess();
00064
00065
00072 static Type deviceInterfaceType() { return DeviceInterface::StorageAccess; }
00073
00074
00080 bool isAccessible() const;
00081
00088 QString filePath() const;
00089
00096 bool setup();
00097
00104 bool teardown();
00105
00106 Q_SIGNALS:
00114 void accessibilityChanged(bool accessible, const QString &udi);
00115
00124 void setupDone(Solid::ErrorType error, QVariant errorData, const QString &udi);
00125
00134 void teardownDone(Solid::ErrorType error, QVariant errorData, const QString &udi);
00135
00136 protected:
00140 StorageAccess(StorageAccessPrivate &dd, QObject *backendObject);
00141 };
00142 }
00143
00144 #endif