initial Bluetooth Device Model addition
[profile/ivi/bluetooth-qt.git] / agentadaptor.h
1 /*  -*- Mode: C++ -*-
2  *
3  * meego handset bluetooth
4  * Copyright © 2010, Intel Corporation.
5  *
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
9  *
10  */
11
12
13
14 #ifndef AGENTADAPTOR_H
15 #define AGENTADAPTOR_H
16
17 #include <QDBusAbstractAdaptor>
18 #include "bluetoothbaseagent.h"
19
20 class AgentAdaptor : public QDBusAbstractAdaptor
21 {
22 Q_OBJECT
23 Q_CLASSINFO("D-Bus Interface", "org.bluez.Agent");
24 public:
25         AgentAdaptor(BluetoothBaseAgent *parent = NULL);
26         virtual ~AgentAdaptor();
27
28 signals:
29
30 public slots:
31         void Authorize(const QDBusObjectPath &device, const QString &uuid);
32         void Cancel();
33         void ConfirmModeChange(const QString &mode);
34         void DisplayPasskey(const QDBusObjectPath &device, uint passkey);
35         void Release();
36         void RequestConfirmation(const QDBusObjectPath &device, uint passkey);
37         uint RequestPasskey(const QDBusObjectPath &device);
38         QString RequestPinCode(const QDBusObjectPath &device);
39
40 private:
41         BluetoothBaseAgent *agent;
42 };
43
44 #endif // AGENTADAPTOR_H