1
/*************************************************************************************
2
* Copyright (C) 2013 by Alejandro Fiestas Fiestas <afiestas@kde.org> *
4
* This program is free software; you can redistribute it and/or *
5
* modify it under the terms of the GNU General Public License *
6
* as published by the Free Software Foundation; either version 2 *
7
* of the License, or (at your option) any later version. *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, write to the Free Software *
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
17
*************************************************************************************/
19
#ifndef VISHESH_PAYS_DINNER
20
#define VISHESH_PAYS_DINNER
22
#include "dbusobjectmanager.h"
23
#include "bluezagentmanager1.h"
24
#include "bluedevildbustypes.h"
27
#include <QDBusObjectPath>
34
class ManagerPrivate : public QObject
38
ManagerPrivate(Manager *q);
39
virtual ~ManagerPrivate();
43
Adapter *findUsableAdapter();
44
Device *deviceForUBI(const QString &UBI);
47
org::freedesktop::DBus::ObjectManager *m_dbusObjectManager;
48
org::bluez::AgentManager1 *m_bluezAgentManager;
49
Adapter *m_usableAdapter;
50
QMap<QString, Adapter*> m_adapters;
51
QHash<QString, Adapter*> m_devAdapter;
52
bool m_bluezServiceRunning;
57
void _k_bluezServiceRegistered();
58
void _k_bluezServiceUnregistered();
60
void _k_interfacesAdded(const QDBusObjectPath &objectPath, const QVariantMapMap &interfaces);
61
void _k_interfacesRemoved(const QDBusObjectPath &objectPath, const QStringList &interfaces);
66
#endif //VISHESH_PAYS_DINNER
b'\\ No newline at end of file'