Solid
dvbinterface.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_DVBINTERFACE_H
00021 #define SOLID_DVBINTERFACE_H
00022
00023 #include <solid/solid_export.h>
00024
00025 #include <solid/deviceinterface.h>
00026
00027 namespace Solid
00028 {
00029 class DvbInterfacePrivate;
00030 class Device;
00031
00040 class SOLID_EXPORT DvbInterface : public DeviceInterface
00041 {
00042 Q_OBJECT
00043 Q_ENUMS(DeviceType)
00044 Q_PROPERTY(QString device READ device)
00045 Q_PROPERTY(int deviceAdapter READ deviceAdapter)
00046 Q_PROPERTY(DeviceType deviceType READ deviceType)
00047 Q_PROPERTY(int deviceIndex READ deviceIndex)
00048 Q_DECLARE_PRIVATE(DvbInterface)
00049 friend class Device;
00050
00051 public:
00066 enum DeviceType { DvbUnknown, DvbAudio, DvbCa, DvbDemux, DvbDvr,
00067 DvbFrontend, DvbNet, DvbOsd, DvbSec, DvbVideo };
00068
00069
00070 private:
00079 explicit DvbInterface(QObject *backendObject);
00080
00081 public:
00085 virtual ~DvbInterface();
00086
00087
00094 static Type deviceInterfaceType() { return DeviceInterface::DvbInterface; }
00095
00096
00104 QString device() const;
00105
00106
00114 int deviceAdapter() const;
00115
00116
00123 DeviceType deviceType() const;
00124
00125
00134 int deviceIndex() const;
00135 };
00136 }
00137
00138 #endif // SOLID_DVBINTERFACE_H