not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / solid / control / ifaces / bluetoothsecurity.h
blob3ede275a9b692d92bff9bf06420ea6bb28b5b496
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>
30 namespace Solid
32 namespace Control
34 namespace Ifaces
36 /**
37 * Represents a bluetooth interface as seen by the bluetooth subsystem.
39 class SOLIDCONTROLIFACES_EXPORT BluetoothSecurity : public QObject
41 Q_OBJECT
42 public:
43 /**
44 * Create a BluetoothSecurity object for all Bluetooth Interfaces.
46 * @param parent the parent object
48 BluetoothSecurity(QObject *parent = 0);
50 /**
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);
58 /**
59 * Destructs a BluetoothSecurity object.
61 virtual ~BluetoothSecurity();
62 public Q_SLOTS:
63 virtual void setPasskeyAgent(Solid::Control::BluetoothPasskeyAgent *agent) = 0;
64 virtual void setAuthorizationAgent(Solid::Control::BluetoothAuthorizationAgent *agent) = 0;
66 } //Ifaces
67 } //Control
68 } //Solid
70 Q_DECLARE_INTERFACE(Solid::Control::Ifaces::BluetoothSecurity, "org.kde.Solid.Ifaces.BluetoothSecurity/0.1")
72 #endif