SolidModules
bluez-bluetoothsecurity.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 #ifndef BLUEZ_BLUETOOTH_SECURITY_H
00021 #define BLUEZ_BLUETOOTH_SECURITY_H
00022
00023 #include <solid/control/ifaces/bluetoothsecurity.h>
00024 #include <solid/control/bluetoothsecurity.h>
00025
00026 #include <QStringList>
00027
00032 class KDE_EXPORT BluezBluetoothSecurity : public Solid::Control::Ifaces::BluetoothSecurity
00033 {
00034 Q_OBJECT
00035 Q_INTERFACES(Solid::Control::Ifaces::BluetoothSecurity)
00036 public:
00037 explicit BluezBluetoothSecurity(QObject *parent = 0);
00038 BluezBluetoothSecurity(const QString &interface,QObject *parent = 0);
00039 ~BluezBluetoothSecurity();
00040
00041
00042
00043 QString request(const QString & address, bool numeric);
00044 bool confirm(const QString & address, const QString & value);
00045 void display(const QString & address, const QString & value);
00046 void keypress(const QString & address);
00047 void complete(const QString & address);
00048 void cancel(const QString & address);
00049
00050
00051 bool authorize(const QString &localUbi,const QString &remoteAddress,const QString& serviceUuid);
00052 void cancel(const QString &localUbi,const QString &remoteAddress,const QString& serviceUuid);
00053
00054 public Q_SLOTS:
00055 void setPasskeyAgent(Solid::Control::BluetoothPasskeyAgent *agent);
00056 void setAuthorizationAgent(Solid::Control::BluetoothAuthorizationAgent *agent);
00057
00058 private:
00059 Solid::Control::BluetoothPasskeyAgent * passkeyAgent;
00060 Solid::Control::BluetoothAuthorizationAgent *authAgent;
00061 };
00062
00063 #endif