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

SolidModules

bluez-bluetoothinterface.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Will Stephenson <wstephenson@kde.org>
00003     Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
00004     Copyright (C) 2008 Tom Patzig <tpatzig@suse.de>
00005 
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License version 2 as published by the Free Software Foundation.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 
00021 */
00022 
00023 #ifndef BLUEZ_BLUETOOTHINTERFACE_H
00024 #define BLUEZ_BLUETOOTHINTERFACE_H
00025 
00026 #include <kdemacros.h>
00027 #include <QtDBus>
00028 #include <QDBusVariant>
00029 #include <QDBusObjectPath>
00030 #include <QString>
00031 
00032 #include <solid/control/ifaces/bluetoothinterface.h>
00033 
00034 class BluezBluetoothInterfacePrivate;
00035 
00036 
00037 class KDE_EXPORT BluezBluetoothInterface : public Solid::Control::Ifaces::BluetoothInterface
00038 {
00039     Q_OBJECT
00040     Q_INTERFACES(Solid::Control::Ifaces::BluetoothInterface)
00041     
00042 public:
00043     BluezBluetoothInterface(const QString  & objectPath);
00044     virtual ~BluezBluetoothInterface();
00045     QString ubi() const;
00046     
00047     QObject *createBluetoothRemoteDevice(const QString &);
00048     QObject *createBluetoothInputDevice(const QString &);
00049     void createDevice(const QString &) const;
00050     void createPairedDevice(const QString &,const QString &,const QString &) const;
00051     QString findDevice(const QString &) const;
00052     QMap< QString, QVariant > getProperties() const;
00053     QStringList listDevices() const;
00054 
00055 
00056 public Q_SLOTS:
00057 
00058     void cancelDeviceCreation(const QString &);
00059     void registerAgent(const QString &,const QString &);
00060     void releaseSession();
00061     void removeDevice(const QString &);
00062     void requestSession();
00063     void setProperty(const QString &,const QVariant&);
00064     void startDiscovery();
00065     void stopDiscovery();
00066     void unregisterAgent(const QString &);
00067 
00068     void slotDeviceCreated(const QDBusObjectPath &);
00069     void slotDeviceDisappeared(const QString &);
00070     void slotDeviceFound(const QString &, const QMap< QString, QVariant > &);
00071     void slotDeviceRemoved(const QDBusObjectPath &);
00072     void slotPropertyChanged(const QString &,const QVariant &);
00073 
00074 private:
00075     BluezBluetoothInterfacePrivate * d;
00076 
00077     QStringList listReply(const QString &method) const;
00078     QString stringReply(const QString &method, const QString &param = "") const;
00079     bool boolReply(const QString &method, const QString &param = "") const;
00080     QDBusObjectPath objectReply(const QString &method, const QString &param = "" ) const;
00081 
00082 
00083 };
00084 
00085 #endif

SolidModules

Skip menu "SolidModules"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

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