1 #ifndef BLUETOOTHDEVICE_H
2 #define BLUETOOTHDEVICE_H
6 #include <bluedevice.h>
8 #include <audiosource.h>
12 class BluetoothDevice : public QObject
15 /*Q_PROPERTY(bool connected READ connected NOTIFY connectedChanged)
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)
21 Q_PROPERTY(QString connectedProfile READ connectedProfile)*/
24 explicit BluetoothDevice(QDBusObjectPath path, QObject *parent = 0);
27 void connetedChanged();
31 void connect(QString profile);
34 QStringList profiles();
35 bool isProfileSupported(QString profile);
36 QString connectedProfile();
47 void propertyChanged(QString name,QDBusVariant value);
50 OrgBluezDeviceInterface *m_device;
53 #endif // BLUETOOTHDEVICE_H