add more spacing
[personal-kdebase.git] / workspace / solid / bluez / bluez-bluetoothremotedevice.h
blob27a9bb6d778480db98b80fc2e976fd63528e2479
1 /* This file is part of the KDE project
2 Copyright (C) 2007 Will Stephenson <wstephenson@kde.org>
3 Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
4 Copyright (C) 2008 Tom Patzig <tpatzig@suse.de>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License version 2 as published by the Free Software Foundation.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
23 #ifndef BLUEZ_BLUETOOTHREMOTEDEVICE_H
24 #define BLUEZ_BLUETOOTHREMOTEDEVICE_H
26 #include <kdemacros.h>
28 #include <solid/control/ifaces/bluetoothremotedevice.h>
29 #include <QtDBus>
32 class KDE_EXPORT BluezBluetoothRemoteDevice : public Solid::Control::Ifaces::BluetoothRemoteDevice
34 Q_OBJECT
35 Q_INTERFACES(Solid::Control::Ifaces::BluetoothRemoteDevice)
36 public:
37 BluezBluetoothRemoteDevice(const QString &objectPath);
38 virtual ~BluezBluetoothRemoteDevice();
40 QString ubi() const;
41 QMap<QString,QVariant> getProperties() const;
42 void discoverServices(const QString &pattern) const;
43 QStringList listNodes() const;
45 private Q_SLOTS:
47 void slotPropertyChanged(const QString &, const QDBusVariant &);
48 void slotDisconnectRequested();
49 void slotNodeCreated(const QDBusObjectPath &);
50 void slotNodeRemoved(const QDBusObjectPath &);
52 void slotServiceDiscover(const QMap<uint,QString> &handles);
53 void dbusErrorServiceDiscover(const QDBusError &error);
55 public Q_SLOTS:
57 void setProperty(const QString &, const QVariant &);
58 void cancelDiscovery();
59 void disconnect();
61 Q_SIGNALS:
63 void serviceDiscoverAvailable(const QString &state, const QMap<uint,QString> &handles);
64 void propertyChanged(const QString &, const QVariant &);
65 void disconnectRequested();
66 void nodeCreated(const QString &);
67 void nodeRemoved(const QString &);
69 private:
70 QString m_objectPath;
71 QDBusInterface *device;
72 QString m_address;
73 QString m_adapter;
75 QStringList listReply(const QString &method) const;
76 QString stringReply(const QString &method) const;
77 bool boolReply(const QString &method) const;
80 #endif