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

libsolidcontrol

fakebluetoothmanager.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_MANAGER_H
00022 #define FAKE_BLUETOOTH_MANAGER_H
00023 
00024 #include <QObject>
00025 #include <QStringList>
00026 
00027 #include <kdemacros.h>
00028 
00029 #include <solid/control/ifaces/bluetoothmanager.h>
00030 #include "fakebluetoothinterface.h"
00031 #include "fakebluetoothinputdevice.h"
00032 #include "fakebluetoothsecurity.h"
00033 
00034 class QDomElement;
00035 
00036 class KDE_EXPORT FakeBluetoothManager : public Solid::Control::Ifaces::BluetoothManager
00037 {
00038     Q_OBJECT
00039 public:
00040     FakeBluetoothManager(QObject * parent, const QStringList  & args);
00041     FakeBluetoothManager(QObject * parent, const QStringList  & args, const QString  & xmlFile);
00042     ~FakeBluetoothManager();
00043     QStringList bluetoothInterfaces() const;
00044     FakeBluetoothInterface *createBluetoothInterface(const QString &);
00045     QString defaultInterface() const;
00046     QObject *createInterface(const QString &);
00047 
00048     QStringList bluetoothInputDevices() const;
00049     FakeBluetoothInputDevice *createBluetoothInputDevice(const QString &ubi);
00050     KJob *setupInputDevice(const QString &ubi);
00051     Solid::Control::Ifaces::BluetoothSecurity * security(const QString &interface);
00052 public Q_SLOTS:
00053     void removeInputDevice(const QString  & ubi);
00054 
00055 private:
00056     void parseBluetoothFile();
00057     FakeBluetoothInterface *parseDeviceElement(const QDomElement &deviceElement);
00058     QMap<QString, QVariant> parseBluetoothElement(const QDomElement &deviceElement);
00059 
00060     QMap<QString, FakeBluetoothInterface *> mBluetoothInterfaces;
00061     QMap<QString, FakeBluetoothInputDevice *> mBluetoothInputDevices;
00062     QMap<QString, FakeBluetoothRemoteDevice *> mBluetoothRemoteDevices;
00063     QString mXmlFile;
00064 };
00065 
00066 #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
  •   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