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

SolidModules

bluez-bluetoothsecurity.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Juan González <jaguilera@opsiland.info>
00003 
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
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         //No need to make this private as it's not exposed in the super.
00042         //For the passkey agents
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         //For the authorization agent
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

SolidModules

Skip menu "SolidModules"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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