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>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 #ifndef SOLID_IFACES_BLUETOOTHINPUTDEVICE
23 #define SOLID_IFACES_BLUETOOTHINPUTDEVICE
25 #include <QtCore/QObject>
26 #include <QtCore/QMap>
27 #include <QtCore/QVariant>
29 #include "../solid_control_export.h"
38 * A BluetoothInputDevice object allows to manage the connection of a bluetooth input device.
40 class SOLIDCONTROLIFACES_EXPORT BluetoothInputDevice
: public QObject
45 * Constructs a BluetoothInputDevice.
47 * @param parent the parent object
49 BluetoothInputDevice(QObject
* parent
= 0);
52 * Destructs a BluetoothInputDevice object.
54 virtual ~BluetoothInputDevice();
57 * Retrieves ubi of bluetooth input device.
59 * @returns ubi of bluetooth input device
61 virtual QString
ubi() const = 0;
63 * Retrieve all properties from the input device.
65 * @returns a hash of named properties
67 virtual QMap
<QString
,QVariant
> getProperties() const = 0;
72 * Connect bluetooth input device.
74 virtual void connect() = 0;
77 * Disconnect bluetooth input device.
79 virtual void disconnect() = 0;
83 * A Property for the input device has changed.
85 * @param name the name of the changed property
86 * @param value the new value
88 virtual void propertyChanged(const QString
&name
, const QVariant
&value
) = 0;
98 Q_DECLARE_INTERFACE(Solid::Control::Ifaces::BluetoothInputDevice
, "org.kde.Solid.Control.Ifaces.BluetoothInputDevice/0.1")