3 * meego handset bluetooth
4 * Copyright © 2010, Intel Corporation.
6 * This program is licensed under the terms and conditions of the
7 * Apache License, version 2.0. The full text of the Apache License is at
8 * http://www.apache.org/licenses/LICENSE-2.0
15 #include "bluetoothbaseagent.h"
16 #include "bluetoothdevice.h"
18 class AsyncAgent : public BluetoothBaseAgent
22 explicit AsyncAgent(QString path, QObject *parent = 0);
24 BluetoothDevice* device() { return deviceToPair; }
26 void requestConfirmation(OrgBluezDeviceInterface &device, uint key);
27 uint requestPasskey(OrgBluezDeviceInterface &device);
28 QString requestPidCode(OrgBluezDeviceInterface &device);
34 void replyRequestConfirmation(bool confirmed);
35 void replyPasskey(uint passkey);
36 void replyRequestPidCode(QString pidCode);
39 QDBusMessage pendingMessage;
40 QDBusConnection m_connection;
42 BluetoothDevice* deviceToPair;
46 #endif // ASYNCAGENT_H