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
12 #ifndef BLUETOOTHBASEAGENT_H
13 #define BLUETOOTHBASEAGENT_H
16 #include <QDBusContext>
17 #include "bluedevice.h"
19 class BluetoothBaseAgent: public QObject, public QDBusContext
23 BluetoothBaseAgent(QString path="/pairing/agent", QObject *parent=0);
25 virtual void authorize(OrgBluezDeviceInterface &device, QString);
28 sendErrorReply("org.bluez.Error.Canceled","The request was canceled");
30 virtual void confirmModeChange(QString);
31 virtual void displayPasskey(OrgBluezDeviceInterface &device, uint key);
32 virtual void release();
33 virtual void requestConfirmation(OrgBluezDeviceInterface &device, uint key);
34 virtual uint requestPasskey(OrgBluezDeviceInterface &device);
35 virtual QString requestPidCode(OrgBluezDeviceInterface &device);
41 #endif // BLUETOOTHBASEAGENT_H