libsolidcontrol
bluetoothsecurity.cpp
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 #include <QMetaMethod>
00022
00023 #include <QMap>
00024 #include <QPair>
00025 #include <QStringList>
00026
00027 #include "ifaces/bluetoothsecurity.h"
00028
00029 #include "soliddefs_p.h"
00030
00031 #include "bluetoothmanager.h"
00032 #include "bluetoothsecurity.h"
00033 #include "bluetoothremotedevice.h"
00034
00035 #include "frontendobject_p.h"
00036 #include "managerbase_p.h"
00037
00038 namespace Solid
00039 {
00040 namespace Control
00041 {
00042 class BluetoothSecurityPrivate: public FrontendObjectPrivate
00043 {
00044 public:
00045 BluetoothSecurityPrivate(QObject *parent)
00046 :FrontendObjectPrivate(parent){};
00047 QList<BluetoothPasskeyAgent *> registeredAgents;
00048 };
00049 }
00050 }
00051
00052 Solid::Control::BluetoothSecurity::BluetoothSecurity()
00053 :QObject(0),d(new BluetoothSecurityPrivate(this))
00054 {
00055 }
00056
00057 Solid::Control::BluetoothSecurity::BluetoothSecurity(QObject *backendObject)
00058 :QObject(backendObject),d(new BluetoothSecurityPrivate(this))
00059 {
00060 d->setBackendObject(backendObject);
00061 }
00062
00063 Solid::Control::BluetoothSecurity::~BluetoothSecurity()
00064 {
00065 }
00066
00067 Solid::Control::BluetoothSecurity &Solid::Control::BluetoothSecurity::operator=(const Solid::Control::BluetoothSecurity & dev)
00068 {
00069 if (dev.d) {
00070 d->setBackendObject(dev.d->backendObject());
00071 }
00072
00073 return *this;
00074 }
00075
00076 void Solid::Control::BluetoothSecurity::setPasskeyAgent(Solid::Control::BluetoothPasskeyAgent * agent)
00077 {
00078 SOLID_CALL(Solid::Control::Ifaces::BluetoothSecurity *,d->backendObject(),setPasskeyAgent(agent))
00079 }
00080
00081 void Solid::Control::BluetoothSecurity::setAuthorizationAgent(Solid::Control::BluetoothAuthorizationAgent * agent)
00082 {
00083 SOLID_CALL(Solid::Control::Ifaces::BluetoothSecurity *,d->backendObject(),setAuthorizationAgent(agent))
00084 }
00085
00086 Solid::Control::BluetoothPasskeyAgent::BluetoothPasskeyAgent(QObject * parent,const QString &interface)
00087 :QObject(parent)
00088 {
00089
00090 }
00091
00092 QString Solid::Control::BluetoothPasskeyAgent::remote()
00093 {
00094 return m_remote;
00095 }
00096
00097 QString Solid::Control::BluetoothPasskeyAgent::requestPasskey(const QString & ubi, bool isNumeric)
00098 {
00099 Q_UNUSED(ubi)
00100 Q_UNUSED(isNumeric)
00101 return "";
00102 }
00103
00104 bool Solid::Control::BluetoothPasskeyAgent::confirmPasskey(const QString & ubi, const QString & passkey)
00105 {
00106 Q_UNUSED(ubi)
00107 Q_UNUSED(passkey)
00108 return false;
00109 }
00110
00111 void Solid::Control::BluetoothPasskeyAgent::displayPasskey(const QString & ubi, const QString & passkey)
00112 {
00113 Q_UNUSED(ubi)
00114 Q_UNUSED(passkey)
00115 }
00116
00117 void Solid::Control::BluetoothPasskeyAgent::keypress(const QString & ubi)
00118 {
00119 Q_UNUSED(ubi)
00120 }
00121
00122 void Solid::Control::BluetoothPasskeyAgent::completedAuthentication(const QString & ubi)
00123 {
00124 Q_UNUSED(ubi)
00125 }
00126
00127 void Solid::Control::BluetoothPasskeyAgent::cancelAuthentication(const QString & ubi)
00128 {
00129 Q_UNUSED(ubi)
00130 }
00131
00132
00133 Solid::Control::BluetoothAuthorizationAgent::BluetoothAuthorizationAgent(QObject * parent)
00134 :QObject(parent)
00135 {
00136
00137 }
00138
00139 #include "bluetoothsecurity.moc"