• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libsolidcontrol

bluetoothsecurity.cpp

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2006 Will Stephenson <wstephenson@kde.org>
00003     Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
00004     Copyright (C) 2007 Juan González <jaguilera@opsiland.info>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
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 } //Control
00050 } //Solid
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     //FIXME We are loosing the reference to the agents here...
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 /****************************** BluetoothPasskeyAgent implementation ******************************/
00086 Solid::Control::BluetoothPasskeyAgent::BluetoothPasskeyAgent(QObject * parent,const QString &interface)
00087     :QObject(parent)
00088 {
00089     //TODO Auto register all subclasses on BluetoothSecurity?
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 /****************************** BluetoothAuthorizationAgent implementation ******************************/
00132 
00133 Solid::Control::BluetoothAuthorizationAgent::BluetoothAuthorizationAgent(QObject * parent)
00134     :QObject(parent)
00135 {
00136 
00137 }
00138 
00139 #include "bluetoothsecurity.moc"

libsolidcontrol

Skip menu "libsolidcontrol"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal