~ubuntu-branches/ubuntu/vivid/libbluedevil/vivid

« back to all changes in this revision

Viewing changes to bluedevil/bluedevilmanager_p.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-02-14 09:38:19 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20140214093819-zxpj5uj42ww6xlna
Tags: 2.0~rc1really1.9.4-0ubuntu1
Revert to 1.9.4 due to no bluez5 in trusty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*************************************************************************************
2
 
 *  Copyright (C) 2013 by Alejandro Fiestas Fiestas <afiestas@kde.org>               *
3
 
 *                                                                                   *
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.                           *
8
 
 *                                                                                   *
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.                                     *
13
 
 *                                                                                   *
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
 
 *************************************************************************************/
18
 
 
19
 
#ifndef VISHESH_PAYS_DINNER
20
 
#define VISHESH_PAYS_DINNER
21
 
 
22
 
#include "dbusobjectmanager.h"
23
 
#include "bluezagentmanager1.h"
24
 
#include "bluedevildbustypes.h"
25
 
 
26
 
#include <QObject>
27
 
#include <QDBusObjectPath>
28
 
 
29
 
namespace BlueDevil {
30
 
class Adapter;
31
 
class Manager;
32
 
class Device;
33
 
 
34
 
class ManagerPrivate : public QObject
35
 
{
36
 
    Q_OBJECT
37
 
public:
38
 
    ManagerPrivate(Manager *q);
39
 
    virtual ~ManagerPrivate();
40
 
 
41
 
    void initialize();
42
 
    void clean();
43
 
    Adapter *findUsableAdapter();
44
 
    Device  *deviceForUBI(const QString &UBI);
45
 
 
46
 
 
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;
53
 
 
54
 
    Manager *const m_q;
55
 
 
56
 
public Q_SLOTS:
57
 
    void _k_bluezServiceRegistered();
58
 
    void _k_bluezServiceUnregistered();
59
 
 
60
 
    void _k_interfacesAdded(const QDBusObjectPath &objectPath, const QVariantMapMap &interfaces);
61
 
    void _k_interfacesRemoved(const QDBusObjectPath &objectPath, const QStringList &interfaces);
62
 
};
63
 
 
64
 
}
65
 
 
66
 
#endif //VISHESH_PAYS_DINNER
 
 
b'\\ No newline at end of file'