1 | /* |
2 | * BluezQt - Asynchronous Bluez wrapper library |
3 | * |
4 | * SPDX-FileCopyrightText: 2014 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_PROFILEADAPTOR_H |
10 | #define BLUEZQT_PROFILEADAPTOR_H |
11 | |
12 | #include <QDBusAbstractAdaptor> |
13 | |
14 | class QDBusMessage; |
15 | class QDBusObjectPath; |
16 | class QDBusUnixFileDescriptor; |
17 | |
18 | namespace BluezQt |
19 | { |
20 | class Manager; |
21 | class Profile; |
22 | |
23 | class ProfileAdaptor : public QDBusAbstractAdaptor |
24 | { |
25 | Q_OBJECT |
26 | Q_CLASSINFO("D-Bus Interface" , "org.bluez.Profile1" ) |
27 | |
28 | public: |
29 | explicit ProfileAdaptor(Profile *parent, Manager *manager); |
30 | |
31 | public Q_SLOTS: |
32 | void NewConnection(const QDBusObjectPath &device, const QDBusUnixFileDescriptor &fd, const QVariantMap &properties, const QDBusMessage &msg); |
33 | void RequestDisconnection(const QDBusObjectPath &device, const QDBusMessage &msg); |
34 | Q_NOREPLY void Release(); |
35 | |
36 | private: |
37 | Profile *m_profile; |
38 | Manager *m_manager; |
39 | }; |
40 | |
41 | } // namespace BluezQt |
42 | |
43 | #endif // BLUEZQT_PROFILEADAPTOR_H |
44 | |