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