• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libsolidcontrol

bluetoothinputdevice.cpp

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2006 Will Stephenson <wstephenson@kde.org>
00003     Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
00004 
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
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"

libsolidcontrol

Skip menu "libsolidcontrol"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal