1 #ifndef BLUETOOTHDEVICE_H
2 #define BLUETOOTHDEVICE_H
6 #include <bluedevice.h>
8 class OrgBluezAudioInterface;
10 class BluetoothDevice : public QObject
13 Q_PROPERTY(bool connected READ connected NOTIFY connectedChanged);
14 Q_PROPERTY(bool audioConnected READ audioConnected NOTIFY audioConnectedChanged)
15 Q_PROPERTY(QStringList profiles READ profiles)
16 Q_PROPERTY(QString alias READ alias)
17 Q_PROPERTY(QString name READ name)
18 Q_PROPERTY(QString address READ address)
19 Q_PROPERTY(QString icon READ icon)
20 Q_PROPERTY(QString path READ path)
23 explicit BluetoothDevice(QDBusObjectPath path = QDBusObjectPath(), QObject *parent = 0);
26 void connectedChanged(bool isConnected);
27 void audioConnectedChanged(bool isConnected);
28 void propertyChanged(QString name, QVariant value);
33 void connectAudioSrc();
34 QString connectSerial();
37 QStringList profiles();
38 bool isProfileSupported(QString profile);
42 bool audioConnected();
50 void propertyChanged(QString name,QDBusVariant value);
51 void audioPropertiesChanged(QString name, QDBusVariant value);
54 OrgBluezDeviceInterface *m_device;
55 OrgBluezAudioInterface *audio;
58 #endif // BLUETOOTHDEVICE_H