BluezQt

profileadaptor.h
1 /*
2  * BluezQt - Asynchronous Bluez wrapper library
3  *
4  * SPDX-FileCopyrightText: 2014 David Rosca <[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_PROFILEADAPTOR_H
10 #define BLUEZQT_PROFILEADAPTOR_H
11 
12 #include <QDBusAbstractAdaptor>
13 
14 class QDBusMessage;
15 class QDBusObjectPath;
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
Q_OBJECTQ_OBJECT
Q_CLASSINFO(Name, Value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:19:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.