1 #ifndef BLUETOOTHDEVICE_H
2 #define BLUETOOTHDEVICE_H
6 #include <bluedevice.h>
8 class OrgBluezAudioInterface;
9 class OrgBluezInputInterface;
11 class BluetoothDevice : public QObject
14 Q_PROPERTY(bool connected READ connected NOTIFY connectedChanged);
15 Q_PROPERTY(bool audioConnected READ audioConnected NOTIFY audioConnectedChanged)
16 Q_PROPERTY(bool inputConnected READ inputConnected NOTIFY inputConnectedChanged)
17 Q_PROPERTY(QStringList profiles READ profiles)
18 Q_PROPERTY(QString alias READ alias)
19 Q_PROPERTY(QString name READ name)
20 Q_PROPERTY(QString address READ address)
21 Q_PROPERTY(QString icon READ icon)
22 Q_PROPERTY(QString path READ path)
25 explicit BluetoothDevice(QDBusObjectPath path = QDBusObjectPath(), QObject *parent = 0);
28 void connectedChanged(bool isConnected);
29 void audioConnectedChanged(bool isConnected);
30 void inputConnectedChanged(bool isConnected);
31 void propertyChanged(QString name, QVariant value);
36 void connectAudioSrc();
37 QString connectSerial();
40 void disconnectAudio();
42 QStringList profiles();
43 bool isProfileSupported(QString profile);
47 bool audioConnected();
48 bool inputConnected();
56 void propertyChanged(QString name,QDBusVariant value);
57 void audioPropertiesChanged(QString name, QDBusVariant value);
58 void inputPropertiesChanged(QString name, QDBusVariant value);
61 OrgBluezDeviceInterface *m_device;
62 OrgBluezAudioInterface *audio;
63 OrgBluezInputInterface *input;
66 #endif // BLUETOOTHDEVICE_H