Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qdbusabstractadaptor_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the public API. This header file may
9// change from version to version without notice, or even be
10// removed.
11//
12// We mean it.
13//
14//
15
16#ifndef QDBUSABSTRACTADAPTOR_P_H
17#define QDBUSABSTRACTADAPTOR_P_H
18
19#include <QtDBus/private/qtdbusglobal_p.h>
21
22#include <QtCore/qlist.h>
23#include <QtCore/qmap.h>
24#include <QtCore/qobject.h>
25#include <QtCore/qvariant.h>
26#include "private/qobject_p.h"
27
28#define QCLASSINFO_DBUS_INTERFACE "D-Bus Interface"
29#define QCLASSINFO_DBUS_INTROSPECTION "D-Bus Introspection"
30
31#ifndef QT_NO_DBUS
32
33#ifdef interface
34# undef interface
35#endif
36
38
41class QDBusAdaptorManager;
43
55
57{
59
60public: // typedefs
62 {
63 const char *interface;
65
66 inline bool operator<(const AdaptorData &other) const
67 { return QByteArray(interface) < other.interface; }
68 inline bool operator<(const QString &other) const
69 { return QLatin1StringView(interface) < other; }
70 inline bool operator<(const QByteArray &other) const
71 { return interface < other; }
72 };
73 typedef QList<AdaptorData> AdaptorMap;
74
75public: // methods
78
79 void addAdaptor(QDBusAbstractAdaptor *adaptor);
80 void connectAllSignals(QObject *object);
81 void disconnectAllSignals(QObject *object);
82 void relay(QObject *sender, int id, void **);
83
84public Q_SLOTS:
86 void polish();
87
90
91public: // member variables
94
95private:
96 static int relaySlotMethodIndex();
97};
99
102
104
105#endif // QT_NO_DBUS
106#endif // QDBUSABSTRACTADAPTOR_P_H
\inmodule QtCore
Definition qbytearray.h:57
static void saveIntrospectionXml(QDBusAbstractAdaptor *adaptor, const QString &xml)
static QString retrieveIntrospectionXml(QDBusAbstractAdaptor *adaptor)
void relay(QObject *sender, int id, void **)
void addAdaptor(QDBusAbstractAdaptor *adaptor)
void relaySlot(QMethodRawArguments a)
void relaySignal(QObject *obj, const QMetaObject *metaObject, int sid, const QVariantList &args)
void disconnectAllSignals(QObject *object)
QList< AdaptorData > AdaptorMap
QDBusAdaptorConnector(QObject *parent)
void connectAllSignals(QObject *object)
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
Definition qobject.cpp:2658
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
QDBusAdaptorConnector * qDBusCreateAdaptorConnector(QObject *object)
QDBusAdaptorConnector * qDBusFindAdaptorConnector(QObject *object)
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()
GLboolean GLboolean GLboolean GLboolean a
[7]
GLhandleARB obj
[2]
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
@ Q_PRIMITIVE_TYPE
Definition qtypeinfo.h:157
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
Definition qtypeinfo.h:180
obj metaObject() -> className()
QSharedPointer< T > other(t)
[5]
QJSValueList args
bool operator<(const AdaptorData &other) const
bool operator<(const QByteArray &other) const
bool operator<(const QString &other) const
\inmodule QtCore