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
14class QDBusMessage;
15class QDBusObjectPath;
16class QDBusUnixFileDescriptor;
17
18namespace BluezQt
19{
20class Manager;
21class Profile;
22
23class ProfileAdaptor : public QDBusAbstractAdaptor
24{
25 Q_OBJECT
26 Q_CLASSINFO("D-Bus Interface", "org.bluez.Profile1")
27
28public:
29 explicit ProfileAdaptor(Profile *parent, Manager *manager);
30
31public 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
36private:
37 Profile *m_profile;
38 Manager *m_manager;
39};
40
41} // namespace BluezQt
42
43#endif // BLUEZQT_PROFILEADAPTOR_H
44

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