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>
32 class KDE_EXPORT BluezBluetoothRemoteDevice
: public Solid::Control::Ifaces::BluetoothRemoteDevice
35 Q_INTERFACES(Solid::Control::Ifaces::BluetoothRemoteDevice
)
37 BluezBluetoothRemoteDevice(const QString
&objectPath
);
38 virtual ~BluezBluetoothRemoteDevice();
41 QMap
<QString
,QVariant
> getProperties() const;
42 void discoverServices(const QString
&pattern
) const;
43 QStringList
listNodes() const;
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
);
57 void setProperty(const QString
&, const QVariant
&);
58 void cancelDiscovery();
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
&);
71 QDBusInterface
*device
;
75 QStringList
listReply(const QString
&method
) const;
76 QString
stringReply(const QString
&method
) const;
77 bool boolReply(const QString
&method
) const;