1 | // Copyright (C) 2018 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef PROFILECONTEXT_P_H |
5 | #define PROFILECONTEXT_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtCore/qobject.h> |
19 | #include <QtDBus/qdbuscontext.h> |
20 | #include <QtDBus/qdbusextratypes.h> |
21 | #include <QtDBus/qdbusunixfiledescriptor.h> |
22 | #include <QtCore/private/qglobal_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class OrgBluezProfile1ContextInterface : public QObject, protected QDBusContext |
27 | { |
28 | Q_OBJECT |
29 | Q_CLASSINFO("D-Bus Interface" , "org.bluez.Profile1" ) |
30 | Q_CLASSINFO("D-Bus Introspection" , "" |
31 | " <interface name=\"org.bluez.Profile1\">\n" |
32 | " <method name=\"NewConnection\">\n" |
33 | " <arg direction=\"in\" type=\"o\"/>\n" |
34 | " <arg direction=\"in\" type=\"h\"/>\n" |
35 | " <arg direction=\"in\" type=\"a{sv}\"/>\n" |
36 | " <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In2\"/>\n" |
37 | " </method>\n" |
38 | " <method name=\"RequestDisconnection\">\n" |
39 | " <arg direction=\"in\" type=\"o\"/>\n" |
40 | " </method>\n" |
41 | " <method name=\"Release\">\n" |
42 | " <annotation value=\"true\" name=\"org.freedesktop.DBus.Method.NoReply\"/>\n" |
43 | " </method>\n" |
44 | " </interface>\n" |
45 | "" ) |
46 | public: |
47 | explicit OrgBluezProfile1ContextInterface(QObject *parent = nullptr); |
48 | |
49 | Q_SIGNALS: |
50 | void newConnection(const QDBusUnixFileDescriptor &fd); |
51 | |
52 | public Q_SLOTS: |
53 | void NewConnection(const QDBusObjectPath &, const QDBusUnixFileDescriptor &, |
54 | const QVariantMap &); |
55 | void RequestDisconnection(const QDBusObjectPath &); |
56 | Q_NOREPLY void Release(); |
57 | }; |
58 | |
59 | QT_END_NAMESPACE |
60 | |
61 | #endif // PROFILECONTEXT_P_H |
62 | |