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

SolidModules

bluez-bluetoothsecurityadaptor.h

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 Aguilera <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 
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         //org.bluez.PasskeyAgent
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         //org.bluez.AuthorizationAgent
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

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