add more spacing
[personal-kdebase.git] / workspace / solid / bluez / bluez-bluetoothinputdevice.h
blob3c3bede798cbdc7bea78c4dd88200a9fc4e3af6b
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_BLUETOOTHINPUTDEVICE_H
24 #define BLUEZ_BLUETOOTHINPUTDEVICE_H
26 #include <kdemacros.h>
27 #include <QMap>
28 #include <QtDBus>
30 #include <solid/control/ifaces/bluetoothinputdevice.h>
32 class QDBusInterface;
34 class KDE_EXPORT BluezBluetoothInputDevice : public Solid::Control::Ifaces::BluetoothInputDevice
36 Q_OBJECT
37 Q_INTERFACES(Solid::Control::Ifaces::BluetoothInputDevice)
38 public:
39 BluezBluetoothInputDevice(const QString &objectPath);
40 virtual ~BluezBluetoothInputDevice();
41 QString ubi() const;
42 QMap<QString,QVariant> getProperties() const;
44 private Q_SLOTS:
45 void slotPropertyChanged(const QString &, const QDBusVariant &);
48 public Q_SLOTS:
49 void disconnect();
50 void connect();
52 Q_SIGNALS:
54 void propertyChanged(const QString &, const QVariant &);
56 private:
57 QString m_objectPath;
58 QDBusInterface *device;
60 QString stringReply(const QString &method) const;
61 bool boolReply(const QString &method) const;
64 #endif