1 /* This file is part of the KDE project
2 Copyright (C) 2007 Will Stephenson <wstephenson@kde.org>
3 Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
4 Copyright (C) 2007 Juan González <jaguilera@opsiland.info>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 #ifndef SOLID_IFACES_BLUETOOTHSECURITY_H
23 #define SOLID_IFACES_BLUETOOTHSECURITY_H
25 #include "../solid_control_export.h"
26 #include "../bluetoothsecurity.h" // So we know about Solid::Control::BluetoothPassKeyAgent
28 #include <QtCore/QObject>
37 * Represents a bluetooth interface as seen by the bluetooth subsystem.
39 class SOLIDCONTROLIFACES_EXPORT BluetoothSecurity
: public QObject
44 * Create a BluetoothSecurity object for all Bluetooth Interfaces.
46 * @param parent the parent object
48 BluetoothSecurity(QObject
*parent
= 0);
51 * Create a BluetoothSecurity object for a certain Bluetooth Interfaces.
53 * @param interface the ubi of a certain Bluetooth Interface
54 * @param parent the parent object
56 BluetoothSecurity(const QString
&interface
, QObject
*parent
= 0);
59 * Destructs a BluetoothSecurity object.
61 virtual ~BluetoothSecurity();
63 virtual void setPasskeyAgent(Solid::Control::BluetoothPasskeyAgent
*agent
) = 0;
64 virtual void setAuthorizationAgent(Solid::Control::BluetoothAuthorizationAgent
*agent
) = 0;
70 Q_DECLARE_INTERFACE(Solid::Control::Ifaces::BluetoothSecurity
, "org.kde.Solid.Ifaces.BluetoothSecurity/0.1")