SolidModules
bluez-bluetoothsecurityadaptor.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BLUEZ_BLUETOOTHSECURITYADAPTOR_H
00023 #define __BLUEZ_BLUETOOTHSECURITYADAPTOR_H
00024
00025 #include "bluez-bluetoothsecurity.h"
00026
00027 #include <QtDBus>
00028
00033 class BluezBluetoothSecurityPasskeyAgentAdaptor: public QDBusAbstractAdaptor
00034 {
00035 Q_OBJECT
00036 Q_CLASSINFO("D-Bus Interface","org.bluez.PasskeyAgent")
00037 public:
00038 BluezBluetoothSecurityPasskeyAgentAdaptor(BluezBluetoothSecurity *security);
00039 ~BluezBluetoothSecurityPasskeyAgentAdaptor();
00040 public Q_SLOTS:
00041
00042 QString Request(const QString & path, const QString & address, bool numeric,const QDBusMessage &msg);
00043 void Confirm(const QString & path, const QString & address, const QString & value,const QDBusMessage &msg);
00044 void Display(const QString & path, const QString & address, const QString & value);
00045 void Keypress(const QString & path, const QString & address);
00046 void Complete(const QString & path, const QString & address);
00047 void Cancel(const QString & path, const QString & address);
00048
00049 void Release();
00050 private:
00051 QString serviceName;
00052 BluezBluetoothSecurity *security;
00053 QDBusInterface *manager;
00054 QDBusConnection conn;
00055 };
00056 class BluezBluetoothSecurityAuthorizationAgentAdaptor: public QDBusAbstractAdaptor
00057 {
00058 Q_OBJECT
00059 Q_CLASSINFO("D-Bus Interface","org.bluez.AuthorizationAgent")
00060 public:
00061 BluezBluetoothSecurityAuthorizationAgentAdaptor(BluezBluetoothSecurity *security);
00062 ~BluezBluetoothSecurityAuthorizationAgentAdaptor();
00063 public Q_SLOTS:
00064
00065
00066 void Authorize(const QString & adapter_path, const QString & address,
00067 const QString & service_path, const QString & uuid,const QDBusMessage &msg);
00068 void Cancel(const QString & adapter_path, const QString & address,
00069 const QString & service_path, const QString & uuid);
00070
00071 void Release();
00072 private:
00073 QString serviceName;
00074 BluezBluetoothSecurity *security;
00075 QDBusInterface *manager;
00076 QDBusConnection conn;
00077 };
00078
00079 #endif // __BLUEZ_BLUETOOTHSECURITYADAPTOR_H