libsolidcontrol
bluetoothinputdevice.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
00021
00022 #include <QStringList>
00023
00024 #include "ifaces/bluetoothinputdevice.h"
00025
00026 #include "frontendobject_p.h"
00027
00028 #include "soliddefs_p.h"
00029
00030 #include "bluetoothinputdevice.h"
00031
00032 namespace Solid
00033 {
00034 namespace Control
00035 {
00036 class BluetoothInputDevicePrivate : public FrontendObjectPrivate
00037 {
00038 public:
00039 BluetoothInputDevicePrivate(QObject *parent)
00040 : FrontendObjectPrivate(parent) { }
00041
00042 void setBackendObject(QObject *object);
00043 };
00044 }
00045 }
00046
00047 Solid::Control::BluetoothInputDevice::BluetoothInputDevice(QObject *backendObject)
00048 : QObject(), d(new BluetoothInputDevicePrivate(this))
00049 {
00050 d->setBackendObject(backendObject);
00051 }
00052
00053 Solid::Control::BluetoothInputDevice::BluetoothInputDevice(const BluetoothInputDevice &device)
00054 : QObject(), d(new BluetoothInputDevicePrivate(this))
00055 {
00056 d->setBackendObject(device.d->backendObject());
00057 }
00058
00059 Solid::Control::BluetoothInputDevice::~BluetoothInputDevice()
00060 {}
00061
00062 Solid::Control::BluetoothInputDevice &Solid::Control::BluetoothInputDevice::operator=(const Solid::Control::BluetoothInputDevice & dev)
00063 {
00064 d->setBackendObject(dev.d->backendObject());
00065
00066 return *this;
00067 }
00068
00069 QString Solid::Control::BluetoothInputDevice::ubi() const
00070 {
00071 return_SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), QString(), ubi());
00072 }
00073
00074 QMap<QString,QVariant> Solid::Control::BluetoothInputDevice::getProperties() const
00075 {
00076 return_SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), (QMap< QString,QVariant >()), getProperties());
00077 }
00078
00079 void Solid::Control::BluetoothInputDevice::connect()
00080 {
00081 SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), connect());
00082 }
00083
00084 void Solid::Control::BluetoothInputDevice::disconnect()
00085 {
00086 SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), disconnect());
00087 }
00088
00089 void Solid::Control::BluetoothInputDevicePrivate::setBackendObject(QObject *object)
00090 {
00091 FrontendObjectPrivate::setBackendObject(object);
00092
00093 if (object) {
00094 QObject::connect(object, SIGNAL(propertyChanged(const QString&,const QVariant&)),
00095 parent(), SIGNAL(propertyChanged(const QString,const QVariant&)));
00096 }
00097 }
00098
00099 #include "bluetoothinputdevice.moc"