Solid
block.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_BLOCK_H
00021 #define SOLID_BLOCK_H
00022
00023 #include <solid/solid_export.h>
00024
00025 #include <solid/deviceinterface.h>
00026
00027 namespace Solid
00028 {
00029 class BlockPrivate;
00030 class Device;
00031
00039 class SOLID_EXPORT Block : public DeviceInterface
00040 {
00041 Q_OBJECT
00042 Q_PROPERTY(int major READ deviceMajor)
00043 Q_PROPERTY(int minor READ deviceMinor)
00044 Q_PROPERTY(QString device READ device)
00045 Q_DECLARE_PRIVATE(Block)
00046 friend class Device;
00047
00048 private:
00057 explicit Block(QObject *backendObject);
00058
00059 public:
00063 virtual ~Block();
00064
00065
00072 static Type deviceInterfaceType() { return DeviceInterface::Block; }
00073
00074
00081 int deviceMajor() const;
00082
00089 int deviceMinor() const;
00090
00098 QString device() const;
00099 };
00100 }
00101
00102 #endif