| 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 | // Qt-Security score:significant reason:default |
| 4 | |
| 5 | #ifndef QDBUSMETATYPE_P_H |
| 6 | #define QDBUSMETATYPE_P_H |
| 7 | |
| 8 | // |
| 9 | // W A R N I N G |
| 10 | // ------------- |
| 11 | // |
| 12 | // This file is not part of the Qt API. It exists for the convenience |
| 13 | // of the QLibrary class. This header file may change from |
| 14 | // version to version without notice, or even be removed. |
| 15 | // |
| 16 | // We mean it. |
| 17 | // |
| 18 | |
| 19 | #include <QtDBus/private/qtdbusglobal_p.h> |
| 20 | #include <qdbusmetatype.h> |
| 21 | |
| 22 | #include <qdbusmessage.h> |
| 23 | #include <qdbusargument.h> |
| 24 | #include <qdbusextratypes.h> |
| 25 | #include <qdbuserror.h> |
| 26 | #include <qdbusunixfiledescriptor.h> |
| 27 | |
| 28 | #ifndef QT_NO_DBUS |
| 29 | |
| 30 | QT_BEGIN_NAMESPACE |
| 31 | |
| 32 | namespace QDBusMetaTypeId { |
| 33 | QMetaType message(); // QDBusMessage |
| 34 | QMetaType argument(); // QDBusArgument |
| 35 | QMetaType variant(); // QDBusVariant |
| 36 | QMetaType objectpath(); // QDBusObjectPath |
| 37 | QMetaType signature(); // QDBusSignature |
| 38 | QMetaType error(); // QDBusError |
| 39 | QMetaType unixfd(); // QDBusUnixFileDescriptor |
| 40 | |
| 41 | Q_DBUS_EXPORT void init(); |
| 42 | }; // namespace QDBusMetaTypeId |
| 43 | |
| 44 | inline QMetaType QDBusMetaTypeId::message() |
| 45 | { return QMetaType::fromType<QDBusMessage>(); } |
| 46 | |
| 47 | inline QMetaType QDBusMetaTypeId::argument() |
| 48 | { return QMetaType::fromType<QDBusArgument>(); } |
| 49 | |
| 50 | inline QMetaType QDBusMetaTypeId::variant() |
| 51 | { return QMetaType::fromType<QDBusVariant>(); } |
| 52 | |
| 53 | inline QMetaType QDBusMetaTypeId::objectpath() |
| 54 | { return QMetaType::fromType<QDBusObjectPath>(); } |
| 55 | |
| 56 | inline QMetaType QDBusMetaTypeId::signature() |
| 57 | { return QMetaType::fromType<QDBusSignature>(); } |
| 58 | |
| 59 | inline QMetaType QDBusMetaTypeId::error() |
| 60 | { return QMetaType::fromType<QDBusError>(); } |
| 61 | |
| 62 | inline QMetaType QDBusMetaTypeId::unixfd() |
| 63 | { return QMetaType::fromType<QDBusUnixFileDescriptor>(); } |
| 64 | |
| 65 | QT_END_NAMESPACE |
| 66 | |
| 67 | #endif // QT_NO_DBUS |
| 68 | #endif |
| 69 |
