not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / solid / control / bluetoothinputdevice.cpp
blob2ddaf3d0edaa9e5a1fd5b953c22793bf8d8308de
1 /* This file is part of the KDE project
2 Copyright (C) 2006 Will Stephenson <wstephenson@kde.org>
3 Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 #include <QStringList>
24 #include "ifaces/bluetoothinputdevice.h"
26 #include "frontendobject_p.h"
28 #include "soliddefs_p.h"
30 #include "bluetoothinputdevice.h"
32 namespace Solid
34 namespace Control
36 class BluetoothInputDevicePrivate : public FrontendObjectPrivate
38 public:
39 BluetoothInputDevicePrivate(QObject *parent)
40 : FrontendObjectPrivate(parent) { }
42 void setBackendObject(QObject *object);
47 Solid::Control::BluetoothInputDevice::BluetoothInputDevice(QObject *backendObject)
48 : QObject(), d(new BluetoothInputDevicePrivate(this))
50 d->setBackendObject(backendObject);
53 Solid::Control::BluetoothInputDevice::BluetoothInputDevice(const BluetoothInputDevice &device)
54 : QObject(), d(new BluetoothInputDevicePrivate(this))
56 d->setBackendObject(device.d->backendObject());
59 Solid::Control::BluetoothInputDevice::~BluetoothInputDevice()
62 Solid::Control::BluetoothInputDevice &Solid::Control::BluetoothInputDevice::operator=(const Solid::Control::BluetoothInputDevice & dev)
64 d->setBackendObject(dev.d->backendObject());
66 return *this;
69 QString Solid::Control::BluetoothInputDevice::ubi() const
71 return_SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), QString(), ubi());
74 QMap<QString,QVariant> Solid::Control::BluetoothInputDevice::getProperties() const
76 return_SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), (QMap< QString,QVariant >()), getProperties());
79 void Solid::Control::BluetoothInputDevice::connect()
81 SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), connect());
84 void Solid::Control::BluetoothInputDevice::disconnect()
86 SOLID_CALL(Ifaces::BluetoothInputDevice *, d->backendObject(), disconnect());
89 void Solid::Control::BluetoothInputDevicePrivate::setBackendObject(QObject *object)
91 FrontendObjectPrivate::setBackendObject(object);
93 if (object) {
94 QObject::connect(object, SIGNAL(propertyChanged(const QString&,const QVariant&)),
95 parent(), SIGNAL(propertyChanged(const QString,const QVariant&)));
99 #include "bluetoothinputdevice.moc"