initial Bluetooth Device Model addition
[profile/ivi/bluetooth-qt.git] / asyncagent.h
1 #ifndef ASYNCAGENT_H
2 #define ASYNCAGENT_H
3
4 #include "bluetoothbaseagent.h"
5
6 class AsyncAgent : public BluetoothBaseAgent
7 {
8     Q_OBJECT
9 public:
10         explicit AsyncAgent(QString path, QObject *parent = 0);
11
12         void requestConfirmation(OrgBluezDeviceInterface &device, uint key);
13         uint requestPasskey(OrgBluezDeviceInterface &device);
14         QString requestPidCode(OrgBluezDeviceInterface &device);
15
16 signals:
17
18 public slots:
19         void replyRequestConfirmation(bool confirmed);
20         void replyPasskey(uint passkey);
21         void replyRequestPidCode(QString pidCode);
22
23 private:
24         QDBusMessage pendingMessage;
25         QDBusConnection m_connection;
26
27 };
28
29 #endif // ASYNCAGENT_H