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

libsolidcontrol

fakebluetoothinputdevice.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
00003 
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 
00019 */
00020 
00021 #ifndef FAKE_BLUETOOTH_INPUTDEVICE_H
00022 #define FAKE_BLUETOOTH_INPUTDEVICE_H
00023 
00024 #include <QString>
00025 #include <QVariant>
00026 
00027 #include <kdemacros.h>
00028 
00029 #include <solid/control/ifaces/bluetoothinputdevice.h>
00030 
00031 using namespace Solid::Control::Ifaces;
00032 
00033 class KDE_EXPORT FakeBluetoothInputDevice : public Solid::Control::Ifaces::BluetoothInputDevice
00034 {
00035     Q_OBJECT
00036     Q_INTERFACES(Solid::Control::Ifaces::BluetoothInputDevice)
00037 public:
00038     FakeBluetoothInputDevice(const QMap<QString, QVariant>  & propertyMap,
00039                              QObject *parent = 0);
00040     virtual ~FakeBluetoothInputDevice();
00041     QString ubi() const
00042     {
00043         return mUbi;
00044     }
00045     bool isConnected() const
00046     {
00047         return mConnected;
00048     }
00049     QString address() const
00050     {
00051         return mAddress;
00052     }
00053     QString name() const
00054     {
00055         return mName;
00056     }
00057     QString productID() const
00058     {
00059         return mProductID;
00060     }
00061     QString vendorID() const
00062     {
00063         return mVendorID;
00064     }
00065 
00066 private:
00067     QString mUbi;
00068     bool mConnected;
00069     QString mAddress;
00070     QString mName;
00071     QString mVendorID;
00072     QString mProductID;
00073 
00074 public Q_SLOTS:
00075     void slotConnected()
00076     {
00077         mConnected = true;
00078     }
00079     void slotDisconnected()
00080     {
00081         mConnected = false;
00082     }
00083 
00084 Q_SIGNALS:
00085     void connected();
00086     void disconnected();
00087 
00088 protected:
00089     QMap<QString, QVariant> mPropertyMap;
00090 
00091 };
00092 
00093 #endif

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
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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