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

SolidModules

bluez-bluetoothremotedevice.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_BLUETOOTHREMOTEDEVICE_H
00024 #define BLUEZ_BLUETOOTHREMOTEDEVICE_H
00025 
00026 #include <kdemacros.h>
00027 
00028 #include <solid/control/ifaces/bluetoothremotedevice.h>
00029 #include <QtDBus>
00030 
00031 
00032 class KDE_EXPORT BluezBluetoothRemoteDevice : public Solid::Control::Ifaces::BluetoothRemoteDevice
00033 {
00034     Q_OBJECT
00035     Q_INTERFACES(Solid::Control::Ifaces::BluetoothRemoteDevice)
00036 public:
00037     BluezBluetoothRemoteDevice(const QString &objectPath);
00038     virtual ~BluezBluetoothRemoteDevice();
00039 
00040     QString ubi() const;
00041     QMap<QString,QVariant> getProperties() const;
00042     void discoverServices(const QString &pattern) const;
00043     QStringList listNodes() const;
00044 
00045 private Q_SLOTS:
00046 
00047     void slotPropertyChanged(const QString &, const QDBusVariant &);
00048     void slotDisconnectRequested();
00049     void slotNodeCreated(const QDBusObjectPath &); 
00050     void slotNodeRemoved(const QDBusObjectPath &);
00051 
00052     void slotServiceDiscover(const QMap<uint,QString> &handles);
00053     void dbusErrorServiceDiscover(const QDBusError &error);
00054 
00055 public Q_SLOTS:
00056 
00057     void setProperty(const QString &, const QVariant &);
00058     void cancelDiscovery();
00059     void disconnect();
00060 
00061 Q_SIGNALS:
00062 
00063     void serviceDiscoverAvailable(const QString &state, const QMap<uint,QString> &handles);
00064     void propertyChanged(const QString &, const QVariant &);
00065     void disconnectRequested();
00066     void nodeCreated(const QString &);
00067     void nodeRemoved(const QString &);
00068 
00069 private:
00070     QString m_objectPath;
00071     QDBusInterface *device;
00072     QString m_address;
00073     QString m_adapter;
00074 
00075     QStringList listReply(const QString &method) const;
00076     QString stringReply(const QString &method) const;
00077     bool boolReply(const QString &method) const;
00078 };
00079 
00080 #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