libsolidcontrol
bluetoothmanager.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SOLID_IFACES_BLUETOOTHMANAGER
00023 #define SOLID_IFACES_BLUETOOTHMANAGER
00024
00025 #include <QtCore/QObject>
00026 #include "../solid_control_export.h"
00027
00028 class KJob;
00029
00030 namespace Solid
00031 {
00032 namespace Control
00033 {
00034 namespace Ifaces
00035 {
00036 class BluetoothSecurity;
00044 class SOLIDCONTROLIFACES_EXPORT BluetoothManager : public QObject
00045 {
00046 Q_OBJECT
00047 public:
00053 BluetoothManager(QObject * parent = 0);
00057 virtual ~BluetoothManager();
00058
00065 virtual QStringList bluetoothInterfaces() const = 0;
00066
00073 virtual QString defaultInterface() const = 0;
00074
00081 virtual QObject *createInterface(const QString &ubi) = 0;
00082
00089 virtual QStringList bluetoothInputDevices() const = 0;
00090
00097 virtual QObject *createBluetoothInputDevice(const QString &ubi) = 0;
00098
00105 virtual KJob *setupInputDevice(const QString &ubi) = 0;
00106
00110 virtual Solid::Control::Ifaces::BluetoothSecurity* security(const QString &interface) = 0;
00111
00112 public Q_SLOTS:
00118 virtual void removeInputDevice(const QString & ubi) = 0;
00119
00120 Q_SIGNALS:
00126 void interfaceAdded(const QString & ubi);
00127
00133 void interfaceRemoved(const QString & ubi);
00134
00140 void defaultInterfaceChanged(const QString & ubi);
00141
00147 void inputDeviceCreated(const QString & ubi);
00148
00154 void inputDeviceRemoved(const QString & ubi);
00155
00156 };
00157
00158 }
00159
00160 }
00161
00162 }
00163
00164 #endif