From ac8aba7442eb7aa36c845a746879fd9f02e8d9a4 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Mon, 13 Jan 2025 09:27:04 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5platform-plugins Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: https://github.com/linuxdeepin/qt5platform-plugins/pull/272 --- .../qdbusxml2cpp/com.deepin.imAdaptor.cpp | 71 ++++++++ .../qdbusxml2cpp/com.deepin.imAdaptor.h | 80 +++++++++ .../org.freedesktop.DBusAdaptor.cpp | 165 ++++++++++++++++++ .../org.freedesktop.DBusAdaptor.h | 139 +++++++++++++++ 4 files changed, 455 insertions(+) create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.cpp new file mode 100644 index 0000000..e3c8127 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.cpp @@ -0,0 +1,71 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./qt5platform-plugins/misc/com.deepin.im.xml -a ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor -i ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ImAdaptor + */ + +ImAdaptor::ImAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ImAdaptor::~ImAdaptor() +{ + // destructor +} + +QRect ImAdaptor::geometry() const +{ + // get the value of property geometry + return qvariant_cast< QRect >(parent()->property("geometry")); +} + +bool ImAdaptor::imActive() const +{ + // get the value of property imActive + return qvariant_cast< bool >(parent()->property("imActive")); +} + +void ImAdaptor::setImActive(bool value) +{ + // set the value of property imActive + parent()->setProperty("imActive", QVariant::fromValue(value)); +} + +bool ImAdaptor::imSignalLock() const +{ + // get the value of property imSignalLock + return qvariant_cast< bool >(parent()->property("imSignalLock")); +} + +void ImAdaptor::setImSignalLock(bool value) +{ + // set the value of property imSignalLock + parent()->setProperty("imSignalLock", QVariant::fromValue(value)); +} + +void ImAdaptor::setKeyboardHeight(int h) +{ + // handle method call com.deepin.im.setKeyboardHeight + QMetaObject::invokeMethod(parent(), "setKeyboardHeight", Q_ARG(int, h)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h new file mode 100644 index 0000000..f3d3646 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h @@ -0,0 +1,80 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./qt5platform-plugins/misc/com.deepin.im.xml -a ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor -i ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_IMADAPTOR_H +#define COM_DEEPIN_IMADAPTOR_H + +#include +#include +#include "./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.im + */ +class ImAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.im") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ImAdaptor(QObject *parent); + virtual ~ImAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QRect geometry READ geometry) + QRect geometry() const; + + Q_PROPERTY(bool imActive READ imActive WRITE setImActive) + bool imActive() const; + void setImActive(bool value); + + Q_PROPERTY(bool imSignalLock READ imSignalLock WRITE setImSignalLock) + bool imSignalLock() const; + void setImSignalLock(bool value); + +public Q_SLOTS: // METHODS + void setKeyboardHeight(int h); +Q_SIGNALS: // SIGNALS + void geometryChanged(const QRect &rect); + void imActiveChanged(bool is); + void imSignalLockChanged(bool is); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp new file mode 100644 index 0000000..be19dde --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp @@ -0,0 +1,165 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./qt5platform-plugins/misc/org.freedesktop.DBus.xml -a ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DBusAdaptor + */ + +DBusAdaptor::DBusAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DBusAdaptor::~DBusAdaptor() +{ + // destructor +} + +void DBusAdaptor::AddMatch(const QString &in0) +{ + // handle method call org.freedesktop.DBus.AddMatch + QMetaObject::invokeMethod(parent(), "AddMatch", Q_ARG(QString, in0)); +} + +QByteArray DBusAdaptor::GetAdtAuditSessionData(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetAdtAuditSessionData + QByteArray out0; + QMetaObject::invokeMethod(parent(), "GetAdtAuditSessionData", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, in0)); + return out0; +} + +QByteArray DBusAdaptor::GetConnectionSELinuxSecurityContext(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetConnectionSELinuxSecurityContext + QByteArray out0; + QMetaObject::invokeMethod(parent(), "GetConnectionSELinuxSecurityContext", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, in0)); + return out0; +} + +uint DBusAdaptor::GetConnectionUnixProcessID(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetConnectionUnixProcessID + uint out0; + QMetaObject::invokeMethod(parent(), "GetConnectionUnixProcessID", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0)); + return out0; +} + +uint DBusAdaptor::GetConnectionUnixUser(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetConnectionUnixUser + uint out0; + QMetaObject::invokeMethod(parent(), "GetConnectionUnixUser", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0)); + return out0; +} + +QString DBusAdaptor::GetId() +{ + // handle method call org.freedesktop.DBus.GetId + QString out0; + QMetaObject::invokeMethod(parent(), "GetId", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString DBusAdaptor::GetNameOwner(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetNameOwner + QString out0; + QMetaObject::invokeMethod(parent(), "GetNameOwner", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString DBusAdaptor::Hello() +{ + // handle method call org.freedesktop.DBus.Hello + QString out0; + QMetaObject::invokeMethod(parent(), "Hello", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QStringList DBusAdaptor::ListActivatableNames() +{ + // handle method call org.freedesktop.DBus.ListActivatableNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListActivatableNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList DBusAdaptor::ListNames() +{ + // handle method call org.freedesktop.DBus.ListNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList DBusAdaptor::ListQueuedOwners(const QString &in0) +{ + // handle method call org.freedesktop.DBus.ListQueuedOwners + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListQueuedOwners", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, in0)); + return out0; +} + +bool DBusAdaptor::NameHasOwner(const QString &in0) +{ + // handle method call org.freedesktop.DBus.NameHasOwner + bool out0; + QMetaObject::invokeMethod(parent(), "NameHasOwner", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +uint DBusAdaptor::ReleaseName(const QString &in0) +{ + // handle method call org.freedesktop.DBus.ReleaseName + uint out0; + QMetaObject::invokeMethod(parent(), "ReleaseName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0)); + return out0; +} + +void DBusAdaptor::ReloadConfig() +{ + // handle method call org.freedesktop.DBus.ReloadConfig + QMetaObject::invokeMethod(parent(), "ReloadConfig"); +} + +void DBusAdaptor::RemoveMatch(const QString &in0) +{ + // handle method call org.freedesktop.DBus.RemoveMatch + QMetaObject::invokeMethod(parent(), "RemoveMatch", Q_ARG(QString, in0)); +} + +uint DBusAdaptor::RequestName(const QString &in0, uint in1) +{ + // handle method call org.freedesktop.DBus.RequestName + uint out0; + QMetaObject::invokeMethod(parent(), "RequestName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +uint DBusAdaptor::StartServiceByName(const QString &in0, uint in1) +{ + // handle method call org.freedesktop.DBus.StartServiceByName + uint out0; + QMetaObject::invokeMethod(parent(), "StartServiceByName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h new file mode 100644 index 0000000..89dc370 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h @@ -0,0 +1,139 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./qt5platform-plugins/misc/org.freedesktop.DBus.xml -a ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_FREEDESKTOP_DBUSADAPTOR_H +#define ORG_FREEDESKTOP_DBUSADAPTOR_H + +#include +#include +#include "./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.freedesktop.DBus + */ +class DBusAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.DBus") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + DBusAdaptor(QObject *parent); + virtual ~DBusAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void AddMatch(const QString &in0); + QByteArray GetAdtAuditSessionData(const QString &in0); + QByteArray GetConnectionSELinuxSecurityContext(const QString &in0); + uint GetConnectionUnixProcessID(const QString &in0); + uint GetConnectionUnixUser(const QString &in0); + QString GetId(); + QString GetNameOwner(const QString &in0); + QString Hello(); + QStringList ListActivatableNames(); + QStringList ListNames(); + QStringList ListQueuedOwners(const QString &in0); + bool NameHasOwner(const QString &in0); + uint ReleaseName(const QString &in0); + void ReloadConfig(); + void RemoveMatch(const QString &in0); + uint RequestName(const QString &in0, uint in1); + uint StartServiceByName(const QString &in0, uint in1); +Q_SIGNALS: // SIGNALS + void NameAcquired(const QString &in0); + void NameLost(const QString &in0); + void NameOwnerChanged(const QString &in0, const QString &in1, const QString &in2); +}; + +#endif