1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQT_OBEXMANAGER_P_H
10#define BLUEZQT_OBEXMANAGER_P_H
11
12#include <QObject>
13#include <QTimer>
14
15#include "dbusobjectmanager.h"
16#include "obexagentmanager1.h"
17#include "obexclient1.h"
18#include "types.h"
19
20namespace BluezQt
21{
22typedef org::bluez::obex::Client1 ObexClient;
23typedef org::bluez::obex::AgentManager1 ObexAgentManager;
24typedef org::freedesktop::DBus::ObjectManager DBusObjectManager;
25
26class ObexManager;
27
28class ObexManagerPrivate : public QObject
29{
30 Q_OBJECT
31
32public:
33 explicit ObexManagerPrivate(ObexManager *qq);
34
35 void init();
36 void nameHasOwnerFinished(QDBusPendingCallWatcher *watcher);
37 void load();
38 void getManagedObjectsFinished(QDBusPendingCallWatcher *watcher);
39 void clear();
40
41 void serviceRegistered();
42 void serviceUnregistered();
43 void interfacesAdded(const QDBusObjectPath &objectPath, const QVariantMapMap &interfaces);
44 void interfacesRemoved(const QDBusObjectPath &objectPath, const QStringList &interfaces);
45
46 void addSession(const QString &sessionPath, const QVariantMap &properties);
47 void removeSession(const QString &sessionPath);
48
49 ObexManager *q;
50 ObexClient *m_obexClient;
51 ObexAgentManager *m_obexAgentManager;
52 DBusObjectManager *m_dbusObjectManager;
53
54 QTimer m_timer;
55 QHash<QString, ObexSessionPtr> m_sessions;
56
57 bool m_initialized;
58 bool m_obexRunning;
59 bool m_loaded;
60
61Q_SIGNALS:
62 void initError(const QString &errorText);
63 void initFinished();
64
65private Q_SLOTS:
66 void dummy();
67};
68
69} // namespace BluezQt
70
71#endif // BLUEZQT_OBEXMANAGER_P_H
72

source code of bluez-qt/src/obexmanager_p.h