SolidModules
bluez-bluetoothinputdevice.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
00023 #ifndef BLUEZ_BLUETOOTHINPUTDEVICE_H
00024 #define BLUEZ_BLUETOOTHINPUTDEVICE_H
00025
00026 #include <kdemacros.h>
00027 #include <QMap>
00028 #include <QtDBus>
00029
00030 #include <solid/control/ifaces/bluetoothinputdevice.h>
00031
00032 class QDBusInterface;
00033
00034 class KDE_EXPORT BluezBluetoothInputDevice : public Solid::Control::Ifaces::BluetoothInputDevice
00035 {
00036 Q_OBJECT
00037 Q_INTERFACES(Solid::Control::Ifaces::BluetoothInputDevice)
00038 public:
00039 BluezBluetoothInputDevice(const QString &objectPath);
00040 virtual ~BluezBluetoothInputDevice();
00041 QString ubi() const;
00042 QMap<QString,QVariant> getProperties() const;
00043
00044 private Q_SLOTS:
00045 void slotPropertyChanged(const QString &, const QDBusVariant &);
00046
00047
00048 public Q_SLOTS:
00049 void disconnect();
00050 void connect();
00051
00052 Q_SIGNALS:
00053
00054 void propertyChanged(const QString &, const QVariant &);
00055
00056 private:
00057 QString m_objectPath;
00058 QDBusInterface *device;
00059
00060 QString stringReply(const QString &method) const;
00061 bool boolReply(const QString &method) const;
00062 };
00063
00064 #endif