Debian Codegraph @

src/objectmanageradaptor.h

raw
1 /*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <[email protected]>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9 #ifndef BLUEZQT_OBJECTMANAGERADAPTOR_H
10 #define BLUEZQT_OBJECTMANAGERADAPTOR_H
11
12 #include <QDBusAbstractAdaptor>
13
14 #include "bluezqt_dbustypes.h"
15
16 namespace BluezQt
17 {
18 class GattApplication;
19
20 class ObjectManagerAdaptor : public QDBusAbstractAdaptor
21 {
22 Q_OBJECT
23 Q_CLASSINFO("D-Bus Interface", "org.freedesktop.DBus.ObjectManager")
24
25 public:
26 explicit ObjectManagerAdaptor(QObject *parent);
27
28 public Q_SLOTS:
29 DBusManagerStruct GetManagedObjects();
30
31 Q_SIGNALS:
32 void InterfacesAdded(const QDBusObjectPath &object, const QVariantMapMap &interfaces);
33 void InterfacesRemoved(const QDBusObjectPath &object, const QStringList &interfaces);
34
35 private:
36 GattApplication *m_gattApplication = nullptr;
37 };
38
39 } // namespace BluezQt
40
41 #endif