Solid
genericinterface.cpp
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 #include "genericinterface.h"
00021 #include "genericinterface_p.h"
00022 #include "soliddefs_p.h"
00023
00024 #include <solid/ifaces/genericinterface.h>
00025
00026
00027 Solid::GenericInterface::GenericInterface(QObject *backendObject)
00028 : DeviceInterface(*new GenericInterfacePrivate(), backendObject)
00029 {
00030 if (backendObject) {
00031 connect(backendObject, SIGNAL(propertyChanged(const QMap<QString,int> &)),
00032 this, SIGNAL(propertyChanged(const QMap<QString,int> &)));
00033 connect(backendObject, SIGNAL(conditionRaised(const QString &, const QString &)),
00034 this, SIGNAL(conditionRaised(const QString &, const QString &)));
00035 }
00036 }
00037
00038
00039 Solid::GenericInterface::~GenericInterface()
00040 {
00041
00042 }
00043
00044 QVariant Solid::GenericInterface::property(const QString &key) const
00045 {
00046 Q_D(const GenericInterface);
00047 return_SOLID_CALL(Ifaces::GenericInterface *, d->backendObject(), QVariant(), property(key));
00048 }
00049
00050 QMap<QString, QVariant> Solid::GenericInterface::allProperties() const
00051 {
00052 Q_D(const GenericInterface);
00053 return_SOLID_CALL(Ifaces::GenericInterface *, d->backendObject(), QVariantMap(), allProperties());
00054 }
00055
00056 bool Solid::GenericInterface::propertyExists(const QString &key) const
00057 {
00058 Q_D(const GenericInterface);
00059 return_SOLID_CALL(Ifaces::GenericInterface *, d->backendObject(), false, propertyExists(key));
00060 }
00061
00062 #include "genericinterface.moc"