From 787cf583d25c0bdf602919eef13825a83afec24a Mon Sep 17 00:00:00 2001 From: jingshenghao Date: Mon, 13 Jan 2025 17:00:19 +0800 Subject: [PATCH] feat: Add files generated by qdbusXML2cpp and DCONG2cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add files generated by qdbusXML2cpp and DCONG2cpp Log: Add files generated by qdbusXML2cpp and DCONG2cpp --- .reuse/dep5 | 4 + ...lightdm-deepin-greeter-default-wayland.hpp | 316 ++++++++++++++ .../org_deepin_dde_lightdm-deepin-greeter.hpp | 316 ++++++++++++++ .../dconfig2cpp/org_deepin_dde_lock.hpp | 282 +++++++++++++ .../qdbusxml2cpp/com.deepin.wmAdaptor.cpp | 399 ++++++++++++++++++ .../qdbusxml2cpp/com.deepin.wmAdaptor.h | 282 +++++++++++++ .../com.huawei.switchosAdaptor.cpp | 59 +++ .../qdbusxml2cpp/com.huawei.switchosAdaptor.h | 60 +++ .../org.deepin.dde.Accounts1.UserAdaptor.cpp | 361 ++++++++++++++++ .../org.deepin.dde.Accounts1.UserAdaptor.h | 264 ++++++++++++ .../org.deepin.dde.Accounts1Adaptor.cpp | 133 ++++++ .../org.deepin.dde.Accounts1Adaptor.h | 124 ++++++ ...epin.dde.Authenticate1.Session2Adaptor.cpp | 139 ++++++ ...deepin.dde.Authenticate1.Session2Adaptor.h | 126 ++++++ .../org.deepin.dde.Authenticate1Adaptor.cpp | 77 ++++ .../org.deepin.dde.Authenticate1Adaptor.h | 80 ++++ .../org.deepin.dde.ImageEffect1Adaptor.cpp | 49 +++ .../org.deepin.dde.ImageEffect1Adaptor.h | 58 +++ .../org.deepin.dde.LoginedAdaptor.cpp | 47 +++ .../org.deepin.dde.LoginedAdaptor.h | 55 +++ .../org.deepin.dde.PowerManager1Adaptor.cpp | 67 +++ .../org.deepin.dde.PowerManager1Adaptor.h | 63 +++ .../org.deepin.dde.SessionManager1Adaptor.cpp | 199 +++++++++ .../org.deepin.dde.SessionManager1Adaptor.h | 122 ++++++ ...rg.deepin.dde.SoundThemePlayer1Adaptor.cpp | 77 ++++ .../org.deepin.dde.SoundThemePlayer1Adaptor.h | 77 ++++ .../org.deepin.dde.SystemDisplay1Adaptor.cpp | 49 +++ .../org.deepin.dde.SystemDisplay1Adaptor.h | 59 +++ .../org.deepin.dde.SystemPower1Adaptor.cpp | 181 ++++++++ .../org.deepin.dde.SystemPower1Adaptor.h | 138 ++++++ .../org.freedesktop.DBusAdaptor.cpp | 35 ++ .../org.freedesktop.DBusAdaptor.h | 53 +++ ...freedesktop.login1.session.selfAdaptor.cpp | 89 ++++ ...g.freedesktop.login1.session.selfAdaptor.h | 76 ++++ 34 files changed, 4516 insertions(+) create mode 100644 toolGenerate/dconfig2cpp/lightdm-deepin-greeter-default-wayland.hpp create mode 100644 toolGenerate/dconfig2cpp/org_deepin_dde_lightdm-deepin-greeter.hpp create mode 100644 toolGenerate/dconfig2cpp/org_deepin_dde_lock.hpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.h diff --git a/.reuse/dep5 b/.reuse/dep5 index 74cb6894..69d39331 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -62,3 +62,7 @@ License: GPL-3.0-or-later Files: debian/* rpm/* archlinux/* Copyright: None License: CC0-1.0 + +Files: toolGenerate/**/* +Copyright: None +License: CC0-1.0 diff --git a/toolGenerate/dconfig2cpp/lightdm-deepin-greeter-default-wayland.hpp b/toolGenerate/dconfig2cpp/lightdm-deepin-greeter-default-wayland.hpp new file mode 100644 index 00000000..3659f0c5 --- /dev/null +++ b/toolGenerate/dconfig2cpp/lightdm-deepin-greeter-default-wayland.hpp @@ -0,0 +1,316 @@ +/** + * This file is generated by dconfig2cpp. + * Command line arguments: ./dconfig2cpp -p ./dde-session-shell/toolGenerate/dconfig2cpp ./dde-session-shell/files/wayland/lightdm-deepin-greeter-default-wayland.json + * Generation time: 2025-01-14T10:55:00 + * JSON file version: 1.0 + * + * WARNING: DO NOT MODIFY THIS FILE MANUALLY. + * If you need to change the content, please modify the dconfig2cpp tool. + */ + +#ifndef LIGHTDM-DEEPIN-GREETER-DEFAULT-WAYLAND_H +#define LIGHTDM-DEEPIN-GREETER-DEFAULT-WAYLAND_H + +#include +#include +#include +#include +#include +#include + +class lightdm-deepin-greeter-default-wayland : public QObject { + Q_OBJECT + + Q_PROPERTY(bool allowSwitchingToWayland READ allowSwitchingToWayland WRITE setAllowSwitchingToWayland NOTIFY allowSwitchingToWaylandChanged) + Q_PROPERTY(QString defaultSession READ defaultSession WRITE setDefaultSession NOTIFY defaultSessionChanged) + Q_PROPERTY(bool hideOnboard READ hideOnboard WRITE setHideOnboard NOTIFY hideOnboardChanged) + Q_PROPERTY(QList numLockState READ numLockState WRITE setNumLockState NOTIFY numLockStateChanged) + Q_PROPERTY(bool useSolidBackground READ useSolidBackground WRITE setUseSolidBackground NOTIFY useSolidBackgroundChanged) +public: + explicit lightdm-deepin-greeter-default-wayland(QThread *thread, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit lightdm-deepin-greeter-default-wayland(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit lightdm-deepin-greeter-default-wayland(QThread *thread, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit lightdm-deepin-greeter-default-wayland(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + ~lightdm-deepin-greeter-default-wayland() { + if (m_config.loadRelaxed()) { + m_config.loadRelaxed()->deleteLater(); + } + } + + bool allowSwitchingToWayland() const { + return p_allowSwitchingToWayland; + } + void setAllowSwitchingToWayland(const bool &value) { + auto oldValue = p_allowSwitchingToWayland; + p_allowSwitchingToWayland = value; + markPropertySet(0); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("allowSwitchingToWayland"), value); + }); + } + if (p_allowSwitchingToWayland != oldValue) { + Q_EMIT allowSwitchingToWaylandChanged(); + } + } + QString defaultSession() const { + return p_defaultSession; + } + void setDefaultSession(const QString &value) { + auto oldValue = p_defaultSession; + p_defaultSession = value; + markPropertySet(1); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("defaultSession"), value); + }); + } + if (p_defaultSession != oldValue) { + Q_EMIT defaultSessionChanged(); + } + } + bool hideOnboard() const { + return p_hideOnboard; + } + void setHideOnboard(const bool &value) { + auto oldValue = p_hideOnboard; + p_hideOnboard = value; + markPropertySet(2); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("hideOnboard"), value); + }); + } + if (p_hideOnboard != oldValue) { + Q_EMIT hideOnboardChanged(); + } + } + QList numLockState() const { + return p_numLockState; + } + void setNumLockState(const QList &value) { + auto oldValue = p_numLockState; + p_numLockState = value; + markPropertySet(3); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("numLockState"), value); + }); + } + if (p_numLockState != oldValue) { + Q_EMIT numLockStateChanged(); + } + } + bool useSolidBackground() const { + return p_useSolidBackground; + } + void setUseSolidBackground(const bool &value) { + auto oldValue = p_useSolidBackground; + p_useSolidBackground = value; + markPropertySet(4); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("useSolidBackground"), value); + }); + } + if (p_useSolidBackground != oldValue) { + Q_EMIT useSolidBackgroundChanged(); + } + } +Q_SIGNALS: + void allowSwitchingToWaylandChanged(); + void defaultSessionChanged(); + void hideOnboardChanged(); + void numLockStateChanged(); + void useSolidBackgroundChanged(); +private: + void initialize(DTK_CORE_NAMESPACE::DConfig *config) { + Q_ASSERT(!m_config.loadRelaxed()); + m_config.storeRelaxed(config); + if (testPropertySet(0)) { + config->setValue(QStringLiteral("allowSwitchingToWayland"), QVariant::fromValue(p_allowSwitchingToWayland)); + } else { + updateValue(QStringLiteral("allowSwitchingToWayland"), QVariant::fromValue(p_allowSwitchingToWayland)); + } + if (testPropertySet(1)) { + config->setValue(QStringLiteral("defaultSession"), QVariant::fromValue(p_defaultSession)); + } else { + updateValue(QStringLiteral("defaultSession"), QVariant::fromValue(p_defaultSession)); + } + if (testPropertySet(2)) { + config->setValue(QStringLiteral("hideOnboard"), QVariant::fromValue(p_hideOnboard)); + } else { + updateValue(QStringLiteral("hideOnboard"), QVariant::fromValue(p_hideOnboard)); + } + if (testPropertySet(3)) { + config->setValue(QStringLiteral("numLockState"), QVariant::fromValue(p_numLockState)); + } else { + updateValue(QStringLiteral("numLockState"), QVariant::fromValue(p_numLockState)); + } + if (testPropertySet(4)) { + config->setValue(QStringLiteral("useSolidBackground"), QVariant::fromValue(p_useSolidBackground)); + } else { + updateValue(QStringLiteral("useSolidBackground"), QVariant::fromValue(p_useSolidBackground)); + } + + connect(config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this](const QString &key) { + updateValue(key); + }, Qt::DirectConnection); + } + void updateValue(const QString &key, const QVariant &fallback = QVariant()) { + Q_ASSERT(QThread::currentThread() == m_config.loadRelaxed()->thread()); + const QVariant &value = m_config.loadRelaxed()->value(key, fallback); + if (key == QStringLiteral("allowSwitchingToWayland")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_allowSwitchingToWayland != newValue) { + p_allowSwitchingToWayland = newValue; + Q_EMIT allowSwitchingToWaylandChanged(); + } + }); + return; + } + if (key == QStringLiteral("defaultSession")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_defaultSession != newValue) { + p_defaultSession = newValue; + Q_EMIT defaultSessionChanged(); + } + }); + return; + } + if (key == QStringLiteral("hideOnboard")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_hideOnboard != newValue) { + p_hideOnboard = newValue; + Q_EMIT hideOnboardChanged(); + } + }); + return; + } + if (key == QStringLiteral("numLockState")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_numLockState != newValue) { + p_numLockState = newValue; + Q_EMIT numLockStateChanged(); + } + }); + return; + } + if (key == QStringLiteral("useSolidBackground")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_useSolidBackground != newValue) { + p_useSolidBackground = newValue; + Q_EMIT useSolidBackgroundChanged(); + } + }); + return; + } + } + inline void markPropertySet(const int index) { + if (index < 32) { + m_propertySetStatus0.fetchAndOrOrdered(1 << (index - 0)); + return; + } + Q_UNREACHABLE(); + } + inline bool testPropertySet(const int index) const { + if (index < 32) { + return (m_propertySetStatus0.loadRelaxed() & (1 << (index - 0))); + } + Q_UNREACHABLE(); + } + QAtomicPointer m_config = nullptr; + bool p_allowSwitchingToWayland { false }; + QString p_defaultSession { QStringLiteral("Wayland") }; + bool p_hideOnboard { false }; + QList p_numLockState { QList{} }; + bool p_useSolidBackground { false }; + QAtomicInteger m_propertySetStatus0 = 0; +}; + +#endif // LIGHTDM-DEEPIN-GREETER-DEFAULT-WAYLAND_H diff --git a/toolGenerate/dconfig2cpp/org_deepin_dde_lightdm-deepin-greeter.hpp b/toolGenerate/dconfig2cpp/org_deepin_dde_lightdm-deepin-greeter.hpp new file mode 100644 index 00000000..8c6ae98b --- /dev/null +++ b/toolGenerate/dconfig2cpp/org_deepin_dde_lightdm-deepin-greeter.hpp @@ -0,0 +1,316 @@ +/** + * This file is generated by dconfig2cpp. + * Command line arguments: ./dconfig2cpp -p ./dde-session-shell/toolGenerate/dconfig2cpp ./dde-session-shell/configs/org.deepin.dde.lightdm-deepin-greeter.json + * Generation time: 2025-01-14T10:55:00 + * JSON file version: 1.0 + * + * WARNING: DO NOT MODIFY THIS FILE MANUALLY. + * If you need to change the content, please modify the dconfig2cpp tool. + */ + +#ifndef ORG_DEEPIN_DDE_LIGHTDM-DEEPIN-GREETER_H +#define ORG_DEEPIN_DDE_LIGHTDM-DEEPIN-GREETER_H + +#include +#include +#include +#include +#include +#include + +class org_deepin_dde_lightdm-deepin-greeter : public QObject { + Q_OBJECT + + Q_PROPERTY(bool allowSwitchingToWayland READ allowSwitchingToWayland WRITE setAllowSwitchingToWayland NOTIFY allowSwitchingToWaylandChanged) + Q_PROPERTY(QString defaultSession READ defaultSession WRITE setDefaultSession NOTIFY defaultSessionChanged) + Q_PROPERTY(bool hideOnboard READ hideOnboard WRITE setHideOnboard NOTIFY hideOnboardChanged) + Q_PROPERTY(QList numLockState READ numLockState WRITE setNumLockState NOTIFY numLockStateChanged) + Q_PROPERTY(bool useSolidBackground READ useSolidBackground WRITE setUseSolidBackground NOTIFY useSolidBackgroundChanged) +public: + explicit org_deepin_dde_lightdm-deepin-greeter(QThread *thread, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_lightdm-deepin-greeter(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_lightdm-deepin-greeter(QThread *thread, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_lightdm-deepin-greeter(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + ~org_deepin_dde_lightdm-deepin-greeter() { + if (m_config.loadRelaxed()) { + m_config.loadRelaxed()->deleteLater(); + } + } + + bool allowSwitchingToWayland() const { + return p_allowSwitchingToWayland; + } + void setAllowSwitchingToWayland(const bool &value) { + auto oldValue = p_allowSwitchingToWayland; + p_allowSwitchingToWayland = value; + markPropertySet(0); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("allowSwitchingToWayland"), value); + }); + } + if (p_allowSwitchingToWayland != oldValue) { + Q_EMIT allowSwitchingToWaylandChanged(); + } + } + QString defaultSession() const { + return p_defaultSession; + } + void setDefaultSession(const QString &value) { + auto oldValue = p_defaultSession; + p_defaultSession = value; + markPropertySet(1); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("defaultSession"), value); + }); + } + if (p_defaultSession != oldValue) { + Q_EMIT defaultSessionChanged(); + } + } + bool hideOnboard() const { + return p_hideOnboard; + } + void setHideOnboard(const bool &value) { + auto oldValue = p_hideOnboard; + p_hideOnboard = value; + markPropertySet(2); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("hideOnboard"), value); + }); + } + if (p_hideOnboard != oldValue) { + Q_EMIT hideOnboardChanged(); + } + } + QList numLockState() const { + return p_numLockState; + } + void setNumLockState(const QList &value) { + auto oldValue = p_numLockState; + p_numLockState = value; + markPropertySet(3); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("numLockState"), value); + }); + } + if (p_numLockState != oldValue) { + Q_EMIT numLockStateChanged(); + } + } + bool useSolidBackground() const { + return p_useSolidBackground; + } + void setUseSolidBackground(const bool &value) { + auto oldValue = p_useSolidBackground; + p_useSolidBackground = value; + markPropertySet(4); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("useSolidBackground"), value); + }); + } + if (p_useSolidBackground != oldValue) { + Q_EMIT useSolidBackgroundChanged(); + } + } +Q_SIGNALS: + void allowSwitchingToWaylandChanged(); + void defaultSessionChanged(); + void hideOnboardChanged(); + void numLockStateChanged(); + void useSolidBackgroundChanged(); +private: + void initialize(DTK_CORE_NAMESPACE::DConfig *config) { + Q_ASSERT(!m_config.loadRelaxed()); + m_config.storeRelaxed(config); + if (testPropertySet(0)) { + config->setValue(QStringLiteral("allowSwitchingToWayland"), QVariant::fromValue(p_allowSwitchingToWayland)); + } else { + updateValue(QStringLiteral("allowSwitchingToWayland"), QVariant::fromValue(p_allowSwitchingToWayland)); + } + if (testPropertySet(1)) { + config->setValue(QStringLiteral("defaultSession"), QVariant::fromValue(p_defaultSession)); + } else { + updateValue(QStringLiteral("defaultSession"), QVariant::fromValue(p_defaultSession)); + } + if (testPropertySet(2)) { + config->setValue(QStringLiteral("hideOnboard"), QVariant::fromValue(p_hideOnboard)); + } else { + updateValue(QStringLiteral("hideOnboard"), QVariant::fromValue(p_hideOnboard)); + } + if (testPropertySet(3)) { + config->setValue(QStringLiteral("numLockState"), QVariant::fromValue(p_numLockState)); + } else { + updateValue(QStringLiteral("numLockState"), QVariant::fromValue(p_numLockState)); + } + if (testPropertySet(4)) { + config->setValue(QStringLiteral("useSolidBackground"), QVariant::fromValue(p_useSolidBackground)); + } else { + updateValue(QStringLiteral("useSolidBackground"), QVariant::fromValue(p_useSolidBackground)); + } + + connect(config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this](const QString &key) { + updateValue(key); + }, Qt::DirectConnection); + } + void updateValue(const QString &key, const QVariant &fallback = QVariant()) { + Q_ASSERT(QThread::currentThread() == m_config.loadRelaxed()->thread()); + const QVariant &value = m_config.loadRelaxed()->value(key, fallback); + if (key == QStringLiteral("allowSwitchingToWayland")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_allowSwitchingToWayland != newValue) { + p_allowSwitchingToWayland = newValue; + Q_EMIT allowSwitchingToWaylandChanged(); + } + }); + return; + } + if (key == QStringLiteral("defaultSession")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_defaultSession != newValue) { + p_defaultSession = newValue; + Q_EMIT defaultSessionChanged(); + } + }); + return; + } + if (key == QStringLiteral("hideOnboard")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_hideOnboard != newValue) { + p_hideOnboard = newValue; + Q_EMIT hideOnboardChanged(); + } + }); + return; + } + if (key == QStringLiteral("numLockState")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_numLockState != newValue) { + p_numLockState = newValue; + Q_EMIT numLockStateChanged(); + } + }); + return; + } + if (key == QStringLiteral("useSolidBackground")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_useSolidBackground != newValue) { + p_useSolidBackground = newValue; + Q_EMIT useSolidBackgroundChanged(); + } + }); + return; + } + } + inline void markPropertySet(const int index) { + if (index < 32) { + m_propertySetStatus0.fetchAndOrOrdered(1 << (index - 0)); + return; + } + Q_UNREACHABLE(); + } + inline bool testPropertySet(const int index) const { + if (index < 32) { + return (m_propertySetStatus0.loadRelaxed() & (1 << (index - 0))); + } + Q_UNREACHABLE(); + } + QAtomicPointer m_config = nullptr; + bool p_allowSwitchingToWayland { true }; + QString p_defaultSession { QStringLiteral("deepin") }; + bool p_hideOnboard { false }; + QList p_numLockState { QList{} }; + bool p_useSolidBackground { false }; + QAtomicInteger m_propertySetStatus0 = 0; +}; + +#endif // ORG_DEEPIN_DDE_LIGHTDM-DEEPIN-GREETER_H diff --git a/toolGenerate/dconfig2cpp/org_deepin_dde_lock.hpp b/toolGenerate/dconfig2cpp/org_deepin_dde_lock.hpp new file mode 100644 index 00000000..14dcdff4 --- /dev/null +++ b/toolGenerate/dconfig2cpp/org_deepin_dde_lock.hpp @@ -0,0 +1,282 @@ +/** + * This file is generated by dconfig2cpp. + * Command line arguments: ./dconfig2cpp -p ./dde-session-shell/toolGenerate/dconfig2cpp ./dde-session-shell/configs/org.deepin.dde.lock.json + * Generation time: 2025-01-14T10:55:00 + * JSON file version: 1.0 + * + * WARNING: DO NOT MODIFY THIS FILE MANUALLY. + * If you need to change the content, please modify the dconfig2cpp tool. + */ + +#ifndef ORG_DEEPIN_DDE_LOCK_H +#define ORG_DEEPIN_DDE_LOCK_H + +#include +#include +#include +#include +#include +#include + +class org_deepin_dde_lock : public QObject { + Q_OBJECT + + Q_PROPERTY(bool autoExit READ autoExit WRITE setAutoExit NOTIFY autoExitChanged) + Q_PROPERTY(bool hideLogoutButton READ hideLogoutButton WRITE setHideLogoutButton NOTIFY hideLogoutButtonChanged) + Q_PROPERTY(bool hideOnboard READ hideOnboard WRITE setHideOnboard NOTIFY hideOnboardChanged) + Q_PROPERTY(bool useSolidBackground READ useSolidBackground WRITE setUseSolidBackground NOTIFY useSolidBackgroundChanged) +public: + explicit org_deepin_dde_lock(QThread *thread, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_lock(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_lock(QThread *thread, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_lock(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + ~org_deepin_dde_lock() { + if (m_config.loadRelaxed()) { + m_config.loadRelaxed()->deleteLater(); + } + } + + bool autoExit() const { + return p_autoExit; + } + void setAutoExit(const bool &value) { + auto oldValue = p_autoExit; + p_autoExit = value; + markPropertySet(0); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("autoExit"), value); + }); + } + if (p_autoExit != oldValue) { + Q_EMIT autoExitChanged(); + } + } + bool hideLogoutButton() const { + return p_hideLogoutButton; + } + void setHideLogoutButton(const bool &value) { + auto oldValue = p_hideLogoutButton; + p_hideLogoutButton = value; + markPropertySet(1); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("hideLogoutButton"), value); + }); + } + if (p_hideLogoutButton != oldValue) { + Q_EMIT hideLogoutButtonChanged(); + } + } + bool hideOnboard() const { + return p_hideOnboard; + } + void setHideOnboard(const bool &value) { + auto oldValue = p_hideOnboard; + p_hideOnboard = value; + markPropertySet(2); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("hideOnboard"), value); + }); + } + if (p_hideOnboard != oldValue) { + Q_EMIT hideOnboardChanged(); + } + } + bool useSolidBackground() const { + return p_useSolidBackground; + } + void setUseSolidBackground(const bool &value) { + auto oldValue = p_useSolidBackground; + p_useSolidBackground = value; + markPropertySet(3); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("useSolidBackground"), value); + }); + } + if (p_useSolidBackground != oldValue) { + Q_EMIT useSolidBackgroundChanged(); + } + } +Q_SIGNALS: + void autoExitChanged(); + void hideLogoutButtonChanged(); + void hideOnboardChanged(); + void useSolidBackgroundChanged(); +private: + void initialize(DTK_CORE_NAMESPACE::DConfig *config) { + Q_ASSERT(!m_config.loadRelaxed()); + m_config.storeRelaxed(config); + if (testPropertySet(0)) { + config->setValue(QStringLiteral("autoExit"), QVariant::fromValue(p_autoExit)); + } else { + updateValue(QStringLiteral("autoExit"), QVariant::fromValue(p_autoExit)); + } + if (testPropertySet(1)) { + config->setValue(QStringLiteral("hideLogoutButton"), QVariant::fromValue(p_hideLogoutButton)); + } else { + updateValue(QStringLiteral("hideLogoutButton"), QVariant::fromValue(p_hideLogoutButton)); + } + if (testPropertySet(2)) { + config->setValue(QStringLiteral("hideOnboard"), QVariant::fromValue(p_hideOnboard)); + } else { + updateValue(QStringLiteral("hideOnboard"), QVariant::fromValue(p_hideOnboard)); + } + if (testPropertySet(3)) { + config->setValue(QStringLiteral("useSolidBackground"), QVariant::fromValue(p_useSolidBackground)); + } else { + updateValue(QStringLiteral("useSolidBackground"), QVariant::fromValue(p_useSolidBackground)); + } + + connect(config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this](const QString &key) { + updateValue(key); + }, Qt::DirectConnection); + } + void updateValue(const QString &key, const QVariant &fallback = QVariant()) { + Q_ASSERT(QThread::currentThread() == m_config.loadRelaxed()->thread()); + const QVariant &value = m_config.loadRelaxed()->value(key, fallback); + if (key == QStringLiteral("autoExit")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_autoExit != newValue) { + p_autoExit = newValue; + Q_EMIT autoExitChanged(); + } + }); + return; + } + if (key == QStringLiteral("hideLogoutButton")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_hideLogoutButton != newValue) { + p_hideLogoutButton = newValue; + Q_EMIT hideLogoutButtonChanged(); + } + }); + return; + } + if (key == QStringLiteral("hideOnboard")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_hideOnboard != newValue) { + p_hideOnboard = newValue; + Q_EMIT hideOnboardChanged(); + } + }); + return; + } + if (key == QStringLiteral("useSolidBackground")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_useSolidBackground != newValue) { + p_useSolidBackground = newValue; + Q_EMIT useSolidBackgroundChanged(); + } + }); + return; + } + } + inline void markPropertySet(const int index) { + if (index < 32) { + m_propertySetStatus0.fetchAndOrOrdered(1 << (index - 0)); + return; + } + Q_UNREACHABLE(); + } + inline bool testPropertySet(const int index) const { + if (index < 32) { + return (m_propertySetStatus0.loadRelaxed() & (1 << (index - 0))); + } + Q_UNREACHABLE(); + } + QAtomicPointer m_config = nullptr; + bool p_autoExit { false }; + bool p_hideLogoutButton { false }; + bool p_hideOnboard { false }; + bool p_useSolidBackground { false }; + QAtomicInteger m_propertySetStatus0 = 0; +}; + +#endif // ORG_DEEPIN_DDE_LOCK_H diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp new file mode 100644 index 00000000..cd92bede --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp @@ -0,0 +1,399 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/com.deepin.wm.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.deepin.wm.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WmAdaptor + */ + +WmAdaptor::WmAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WmAdaptor::~WmAdaptor() +{ + // destructor +} + +bool WmAdaptor::compositingAllowSwitch() const +{ + // get the value of property compositingAllowSwitch + return qvariant_cast< bool >(parent()->property("compositingAllowSwitch")); +} + +bool WmAdaptor::compositingEnabled() const +{ + // get the value of property compositingEnabled + return qvariant_cast< bool >(parent()->property("compositingEnabled")); +} + +void WmAdaptor::setCompositingEnabled(bool value) +{ + // set the value of property compositingEnabled + parent()->setProperty("compositingEnabled", QVariant::fromValue(value)); +} + +bool WmAdaptor::compositingPossible() const +{ + // get the value of property compositingPossible + return qvariant_cast< bool >(parent()->property("compositingPossible")); +} + +int WmAdaptor::cursorSize() const +{ + // get the value of property cursorSize + return qvariant_cast< int >(parent()->property("cursorSize")); +} + +void WmAdaptor::setCursorSize(int value) +{ + // set the value of property cursorSize + parent()->setProperty("cursorSize", QVariant::fromValue(value)); +} + +QString WmAdaptor::cursorTheme() const +{ + // get the value of property cursorTheme + return qvariant_cast< QString >(parent()->property("cursorTheme")); +} + +void WmAdaptor::setCursorTheme(const QString &value) +{ + // set the value of property cursorTheme + parent()->setProperty("cursorTheme", QVariant::fromValue(value)); +} + +bool WmAdaptor::zoneEnabled() const +{ + // get the value of property zoneEnabled + return qvariant_cast< bool >(parent()->property("zoneEnabled")); +} + +void WmAdaptor::setZoneEnabled(bool value) +{ + // set the value of property zoneEnabled + parent()->setProperty("zoneEnabled", QVariant::fromValue(value)); +} + +void WmAdaptor::BeginToMoveActiveWindow() +{ + // handle method call com.deepin.wm.BeginToMoveActiveWindow + QMetaObject::invokeMethod(parent(), "BeginToMoveActiveWindow"); +} + +void WmAdaptor::CancelPreviewWindow() +{ + // handle method call com.deepin.wm.CancelPreviewWindow + QMetaObject::invokeMethod(parent(), "CancelPreviewWindow"); +} + +void WmAdaptor::ChangeCurrentWorkspaceBackground(const QString &uri) +{ + // handle method call com.deepin.wm.ChangeCurrentWorkspaceBackground + QMetaObject::invokeMethod(parent(), "ChangeCurrentWorkspaceBackground", Q_ARG(QString, uri)); +} + +void WmAdaptor::ClearMoveStatus() +{ + // handle method call com.deepin.wm.ClearMoveStatus + QMetaObject::invokeMethod(parent(), "ClearMoveStatus"); +} + +void WmAdaptor::EnableZoneDetected(bool enabled) +{ + // handle method call com.deepin.wm.EnableZoneDetected + QMetaObject::invokeMethod(parent(), "EnableZoneDetected", Q_ARG(bool, enabled)); +} + +QStringList WmAdaptor::GetAccel(const QString &id) +{ + // handle method call com.deepin.wm.GetAccel + QStringList data; + QMetaObject::invokeMethod(parent(), "GetAccel", Q_RETURN_ARG(QStringList, data), Q_ARG(QString, id)); + return data; +} + +QString WmAdaptor::GetAllAccels() +{ + // handle method call com.deepin.wm.GetAllAccels + QString data; + QMetaObject::invokeMethod(parent(), "GetAllAccels", Q_RETURN_ARG(QString, data)); + return data; +} + +bool WmAdaptor::GetCurrentDesktopStatus() +{ + // handle method call com.deepin.wm.GetCurrentDesktopStatus + bool isDesktop; + QMetaObject::invokeMethod(parent(), "GetCurrentDesktopStatus", Q_RETURN_ARG(bool, isDesktop)); + return isDesktop; +} + +int WmAdaptor::GetCurrentWorkspace() +{ + // handle method call com.deepin.wm.GetCurrentWorkspace + int index; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspace", Q_RETURN_ARG(int, index)); + return index; +} + +QString WmAdaptor::GetCurrentWorkspaceBackground() +{ + // handle method call com.deepin.wm.GetCurrentWorkspaceBackground + QString result; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackground", Q_RETURN_ARG(QString, result)); + return result; +} + +QString WmAdaptor::GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName) +{ + // handle method call com.deepin.wm.GetCurrentWorkspaceBackgroundForMonitor + QString result; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, result), Q_ARG(QString, strMonitorName)); + return result; +} + +QStringList WmAdaptor::GetDefaultAccel(const QString &id) +{ + // handle method call com.deepin.wm.GetDefaultAccel + QStringList data; + QMetaObject::invokeMethod(parent(), "GetDefaultAccel", Q_RETURN_ARG(QStringList, data), Q_ARG(QString, id)); + return data; +} + +bool WmAdaptor::GetIsShowDesktop() +{ + // handle method call com.deepin.wm.GetIsShowDesktop + bool isShowDesktop; + QMetaObject::invokeMethod(parent(), "GetIsShowDesktop", Q_RETURN_ARG(bool, isShowDesktop)); + return isShowDesktop; +} + +bool WmAdaptor::GetMultiTaskingStatus() +{ + // handle method call com.deepin.wm.GetMultiTaskingStatus + bool isActive; + QMetaObject::invokeMethod(parent(), "GetMultiTaskingStatus", Q_RETURN_ARG(bool, isActive)); + return isActive; +} + +double WmAdaptor::GetTouchBorderInterval() +{ + // handle method call com.deepin.wm.GetTouchBorderInterval + double interval; + QMetaObject::invokeMethod(parent(), "GetTouchBorderInterval", Q_RETURN_ARG(double, interval)); + return interval; +} + +QString WmAdaptor::GetWorkspaceBackground(int index) +{ + // handle method call com.deepin.wm.GetWorkspaceBackground + QString result; + QMetaObject::invokeMethod(parent(), "GetWorkspaceBackground", Q_RETURN_ARG(QString, result), Q_ARG(int, index)); + return result; +} + +QString WmAdaptor::GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName) +{ + // handle method call com.deepin.wm.GetWorkspaceBackgroundForMonitor + QString result; + QMetaObject::invokeMethod(parent(), "GetWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, result), Q_ARG(int, index), Q_ARG(QString, strMonitorName)); + return result; +} + +void WmAdaptor::MinimizeActiveWindow() +{ + // handle method call com.deepin.wm.MinimizeActiveWindow + QMetaObject::invokeMethod(parent(), "MinimizeActiveWindow"); +} + +void WmAdaptor::NextWorkspace() +{ + // handle method call com.deepin.wm.NextWorkspace + QMetaObject::invokeMethod(parent(), "NextWorkspace"); +} + +void WmAdaptor::PerformAction(int type) +{ + // handle method call com.deepin.wm.PerformAction + QMetaObject::invokeMethod(parent(), "PerformAction", Q_ARG(int, type)); +} + +void WmAdaptor::PresentWindows(const QList &xids) +{ + // handle method call com.deepin.wm.PresentWindows + QMetaObject::invokeMethod(parent(), "PresentWindows", Q_ARG(QList, xids)); +} + +void WmAdaptor::PreviewWindow(uint xid) +{ + // handle method call com.deepin.wm.PreviewWindow + QMetaObject::invokeMethod(parent(), "PreviewWindow", Q_ARG(uint, xid)); +} + +void WmAdaptor::PreviousWorkspace() +{ + // handle method call com.deepin.wm.PreviousWorkspace + QMetaObject::invokeMethod(parent(), "PreviousWorkspace"); +} + +void WmAdaptor::RemoveAccel(const QString &id) +{ + // handle method call com.deepin.wm.RemoveAccel + QMetaObject::invokeMethod(parent(), "RemoveAccel", Q_ARG(QString, id)); +} + +bool WmAdaptor::SetAccel(const QString &data) +{ + // handle method call com.deepin.wm.SetAccel + bool result; + QMetaObject::invokeMethod(parent(), "SetAccel", Q_RETURN_ARG(bool, result), Q_ARG(QString, data)); + return result; +} + +void WmAdaptor::SetCurrentWorkspace(int index) +{ + // handle method call com.deepin.wm.SetCurrentWorkspace + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspace", Q_ARG(int, index)); +} + +void WmAdaptor::SetCurrentWorkspaceBackground(const QString &uri) +{ + // handle method call com.deepin.wm.SetCurrentWorkspaceBackground + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackground", Q_ARG(QString, uri)); +} + +void WmAdaptor::SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName) +{ + // handle method call com.deepin.wm.SetCurrentWorkspaceBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackgroundForMonitor", Q_ARG(QString, uri), Q_ARG(QString, strMonitorName)); +} + +void WmAdaptor::SetDecorationDeepinTheme(const QString &deepinThemeName) +{ + // handle method call com.deepin.wm.SetDecorationDeepinTheme + QMetaObject::invokeMethod(parent(), "SetDecorationDeepinTheme", Q_ARG(QString, deepinThemeName)); +} + +void WmAdaptor::SetDecorationTheme(const QString &themeType, const QString &themeName) +{ + // handle method call com.deepin.wm.SetDecorationTheme + QMetaObject::invokeMethod(parent(), "SetDecorationTheme", Q_ARG(QString, themeType), Q_ARG(QString, themeName)); +} + +void WmAdaptor::SetMultiTaskingStatus(bool isActive) +{ + // handle method call com.deepin.wm.SetMultiTaskingStatus + QMetaObject::invokeMethod(parent(), "SetMultiTaskingStatus", Q_ARG(bool, isActive)); +} + +void WmAdaptor::SetShowDesktop(bool isShowDesktop) +{ + // handle method call com.deepin.wm.SetShowDesktop + QMetaObject::invokeMethod(parent(), "SetShowDesktop", Q_ARG(bool, isShowDesktop)); +} + +void WmAdaptor::SetTouchBorderInterval(double interval) +{ + // handle method call com.deepin.wm.SetTouchBorderInterval + QMetaObject::invokeMethod(parent(), "SetTouchBorderInterval", Q_ARG(double, interval)); +} + +void WmAdaptor::SetTransientBackground(const QString &in0) +{ + // handle method call com.deepin.wm.SetTransientBackground + QMetaObject::invokeMethod(parent(), "SetTransientBackground", Q_ARG(QString, in0)); +} + +void WmAdaptor::SetTransientBackgroundForMonitor(const QString &uri, const QString &strMonitorName) +{ + // handle method call com.deepin.wm.SetTransientBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetTransientBackgroundForMonitor", Q_ARG(QString, uri), Q_ARG(QString, strMonitorName)); +} + +void WmAdaptor::SetWorkspaceBackground(int index, const QString &uri) +{ + // handle method call com.deepin.wm.SetWorkspaceBackground + QMetaObject::invokeMethod(parent(), "SetWorkspaceBackground", Q_ARG(int, index), Q_ARG(QString, uri)); +} + +void WmAdaptor::SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri) +{ + // handle method call com.deepin.wm.SetWorkspaceBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetWorkspaceBackgroundForMonitor", Q_ARG(int, index), Q_ARG(QString, strMonitorName), Q_ARG(QString, uri)); +} + +void WmAdaptor::ShowAllWindow() +{ + // handle method call com.deepin.wm.ShowAllWindow + QMetaObject::invokeMethod(parent(), "ShowAllWindow"); +} + +void WmAdaptor::ShowWindow() +{ + // handle method call com.deepin.wm.ShowWindow + QMetaObject::invokeMethod(parent(), "ShowWindow"); +} + +void WmAdaptor::ShowWorkspace() +{ + // handle method call com.deepin.wm.ShowWorkspace + QMetaObject::invokeMethod(parent(), "ShowWorkspace"); +} + +void WmAdaptor::SwitchApplication(bool backward) +{ + // handle method call com.deepin.wm.SwitchApplication + QMetaObject::invokeMethod(parent(), "SwitchApplication", Q_ARG(bool, backward)); +} + +void WmAdaptor::SwitchToWorkspace(bool backward) +{ + // handle method call com.deepin.wm.SwitchToWorkspace + QMetaObject::invokeMethod(parent(), "SwitchToWorkspace", Q_ARG(bool, backward)); +} + +void WmAdaptor::TileActiveWindow(uint side) +{ + // handle method call com.deepin.wm.TileActiveWindow + QMetaObject::invokeMethod(parent(), "TileActiveWindow", Q_ARG(uint, side)); +} + +void WmAdaptor::ToggleActiveWindowMaximize() +{ + // handle method call com.deepin.wm.ToggleActiveWindowMaximize + QMetaObject::invokeMethod(parent(), "ToggleActiveWindowMaximize"); +} + +void WmAdaptor::TouchToMove(int x, int y) +{ + // handle method call com.deepin.wm.TouchToMove + QMetaObject::invokeMethod(parent(), "TouchToMove", Q_ARG(int, x), Q_ARG(int, y)); +} + +int WmAdaptor::WorkspaceCount() +{ + // handle method call com.deepin.wm.WorkspaceCount + int count; + QMetaObject::invokeMethod(parent(), "WorkspaceCount", Q_RETURN_ARG(int, count)); + return count; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h new file mode 100644 index 00000000..24175635 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h @@ -0,0 +1,282 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/com.deepin.wm.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.deepin.wm.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_WMADAPTOR_H +#define COM_DEEPIN_WMADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/com.deepin.wm.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.wm + */ +class WmAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.wm") + 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" +" \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" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WmAdaptor(QObject *parent); + virtual ~WmAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool compositingAllowSwitch READ compositingAllowSwitch) + bool compositingAllowSwitch() const; + + Q_PROPERTY(bool compositingEnabled READ compositingEnabled WRITE setCompositingEnabled) + bool compositingEnabled() const; + void setCompositingEnabled(bool value); + + Q_PROPERTY(bool compositingPossible READ compositingPossible) + bool compositingPossible() const; + + Q_PROPERTY(int cursorSize READ cursorSize WRITE setCursorSize) + int cursorSize() const; + void setCursorSize(int value); + + Q_PROPERTY(QString cursorTheme READ cursorTheme WRITE setCursorTheme) + QString cursorTheme() const; + void setCursorTheme(const QString &value); + + Q_PROPERTY(bool zoneEnabled READ zoneEnabled WRITE setZoneEnabled) + bool zoneEnabled() const; + void setZoneEnabled(bool value); + +public Q_SLOTS: // METHODS + void BeginToMoveActiveWindow(); + void CancelPreviewWindow(); + void ChangeCurrentWorkspaceBackground(const QString &uri); + void ClearMoveStatus(); + void EnableZoneDetected(bool enabled); + QStringList GetAccel(const QString &id); + QString GetAllAccels(); + bool GetCurrentDesktopStatus(); + int GetCurrentWorkspace(); + QString GetCurrentWorkspaceBackground(); + QString GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName); + QStringList GetDefaultAccel(const QString &id); + bool GetIsShowDesktop(); + bool GetMultiTaskingStatus(); + double GetTouchBorderInterval(); + QString GetWorkspaceBackground(int index); + QString GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName); + void MinimizeActiveWindow(); + void NextWorkspace(); + void PerformAction(int type); + void PresentWindows(const QList &xids); + void PreviewWindow(uint xid); + void PreviousWorkspace(); + void RemoveAccel(const QString &id); + bool SetAccel(const QString &data); + void SetCurrentWorkspace(int index); + void SetCurrentWorkspaceBackground(const QString &uri); + void SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName); + void SetDecorationDeepinTheme(const QString &deepinThemeName); + void SetDecorationTheme(const QString &themeType, const QString &themeName); + void SetMultiTaskingStatus(bool isActive); + void SetShowDesktop(bool isShowDesktop); + void SetTouchBorderInterval(double interval); + void SetTransientBackground(const QString &in0); + void SetTransientBackgroundForMonitor(const QString &uri, const QString &strMonitorName); + void SetWorkspaceBackground(int index, const QString &uri); + void SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri); + void ShowAllWindow(); + void ShowWindow(); + void ShowWorkspace(); + void SwitchApplication(bool backward); + void SwitchToWorkspace(bool backward); + void TileActiveWindow(uint side); + void ToggleActiveWindowMaximize(); + void TouchToMove(int x, int y); + int WorkspaceCount(); +Q_SIGNALS: // SIGNALS + void WorkspaceBackgroundChanged(int index, const QString &newUri); + void WorkspaceBackgroundChangedForMonitor(int index, const QString &strMonitorName, const QString &uri); + void WorkspaceSwitched(int from, int to); + void compositingEnabledChanged(bool enabled); + void wmCompositingEnabledChanged(bool enabled); + void workspaceCountChanged(int count); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.cpp new file mode 100644 index 00000000..98e3e3a2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/com.huawei.switchos.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.huawei.switchos.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SwitchosAdaptor + */ + +SwitchosAdaptor::SwitchosAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SwitchosAdaptor::~SwitchosAdaptor() +{ + // destructor +} + +uchar SwitchosAdaptor::getOsFlag() +{ + // handle method call com.huawei.switchos.getOsFlag + uchar flag; + QMetaObject::invokeMethod(parent(), "getOsFlag", Q_RETURN_ARG(uchar, flag)); + return flag; +} + +uchar SwitchosAdaptor::isDualOsSwitchAvail() +{ + // handle method call com.huawei.switchos.isDualOsSwitchAvail + uchar isAvail; + QMetaObject::invokeMethod(parent(), "isDualOsSwitchAvail", Q_RETURN_ARG(uchar, isAvail)); + return isAvail; +} + +uint SwitchosAdaptor::setOsFlag(uchar flag) +{ + // handle method call com.huawei.switchos.setOsFlag + uint result; + QMetaObject::invokeMethod(parent(), "setOsFlag", Q_RETURN_ARG(uint, result), Q_ARG(uchar, flag)); + return result; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.h b/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.h new file mode 100644 index 00000000..69a84c7f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor.h @@ -0,0 +1,60 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/com.huawei.switchos.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.huawei.switchosAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/com.huawei.switchos.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_HUAWEI_SWITCHOSADAPTOR_H +#define COM_HUAWEI_SWITCHOSADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/com.huawei.switchos.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.huawei.switchos + */ +class SwitchosAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.huawei.switchos") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SwitchosAdaptor(QObject *parent); + virtual ~SwitchosAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + uchar getOsFlag(); + uchar isDualOsSwitchAvail(); + uint setOsFlag(uchar flag); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp new file mode 100644 index 00000000..37c74a28 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp @@ -0,0 +1,361 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Accounts1.User.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class UserAdaptor + */ + +UserAdaptor::UserAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +UserAdaptor::~UserAdaptor() +{ + // destructor +} + +int UserAdaptor::accountType() const +{ + // get the value of property AccountType + return qvariant_cast< int >(parent()->property("AccountType")); +} + +bool UserAdaptor::automaticLogin() const +{ + // get the value of property AutomaticLogin + return qvariant_cast< bool >(parent()->property("AutomaticLogin")); +} + +qulonglong UserAdaptor::createdTime() const +{ + // get the value of property CreatedTime + return qvariant_cast< qulonglong >(parent()->property("CreatedTime")); +} + +QStringList UserAdaptor::desktopBackgrounds() const +{ + // get the value of property DesktopBackgrounds + return qvariant_cast< QStringList >(parent()->property("DesktopBackgrounds")); +} + +QString UserAdaptor::fullName() const +{ + // get the value of property FullName + return qvariant_cast< QString >(parent()->property("FullName")); +} + +QString UserAdaptor::gid() const +{ + // get the value of property Gid + return qvariant_cast< QString >(parent()->property("Gid")); +} + +QString UserAdaptor::greeterBackground() const +{ + // get the value of property GreeterBackground + return qvariant_cast< QString >(parent()->property("GreeterBackground")); +} + +QStringList UserAdaptor::groups() const +{ + // get the value of property Groups + return qvariant_cast< QStringList >(parent()->property("Groups")); +} + +QStringList UserAdaptor::historyLayout() const +{ + // get the value of property HistoryLayout + return qvariant_cast< QStringList >(parent()->property("HistoryLayout")); +} + +QString UserAdaptor::homeDir() const +{ + // get the value of property HomeDir + return qvariant_cast< QString >(parent()->property("HomeDir")); +} + +QString UserAdaptor::iconFile() const +{ + // get the value of property IconFile + return qvariant_cast< QString >(parent()->property("IconFile")); +} + +QStringList UserAdaptor::iconList() const +{ + // get the value of property IconList + return qvariant_cast< QStringList >(parent()->property("IconList")); +} + +QString UserAdaptor::layout() const +{ + // get the value of property Layout + return qvariant_cast< QString >(parent()->property("Layout")); +} + +QString UserAdaptor::locale() const +{ + // get the value of property Locale + return qvariant_cast< QString >(parent()->property("Locale")); +} + +bool UserAdaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +qulonglong UserAdaptor::loginTime() const +{ + // get the value of property LoginTime + return qvariant_cast< qulonglong >(parent()->property("LoginTime")); +} + +int UserAdaptor::longDateFormat() const +{ + // get the value of property LongDateFormat + return qvariant_cast< int >(parent()->property("LongDateFormat")); +} + +int UserAdaptor::longTimeFormat() const +{ + // get the value of property LongTimeFormat + return qvariant_cast< int >(parent()->property("LongTimeFormat")); +} + +int UserAdaptor::maxPasswordAge() const +{ + // get the value of property MaxPasswordAge + return qvariant_cast< int >(parent()->property("MaxPasswordAge")); +} + +bool UserAdaptor::noPasswdLogin() const +{ + // get the value of property NoPasswdLogin + return qvariant_cast< bool >(parent()->property("NoPasswdLogin")); +} + +QString UserAdaptor::passwordHint() const +{ + // get the value of property PasswordHint + return qvariant_cast< QString >(parent()->property("PasswordHint")); +} + +int UserAdaptor::passwordLastChange() const +{ + // get the value of property PasswordLastChange + return qvariant_cast< int >(parent()->property("PasswordLastChange")); +} + +QString UserAdaptor::passwordStatus() const +{ + // get the value of property PasswordStatus + return qvariant_cast< QString >(parent()->property("PasswordStatus")); +} + +QString UserAdaptor::shell() const +{ + // get the value of property Shell + return qvariant_cast< QString >(parent()->property("Shell")); +} + +int UserAdaptor::shortDateFormat() const +{ + // get the value of property ShortDateFormat + return qvariant_cast< int >(parent()->property("ShortDateFormat")); +} + +int UserAdaptor::shortTimeFormat() const +{ + // get the value of property ShortTimeFormat + return qvariant_cast< int >(parent()->property("ShortTimeFormat")); +} + +bool UserAdaptor::systemAccount() const +{ + // get the value of property SystemAccount + return qvariant_cast< bool >(parent()->property("SystemAccount")); +} + +QString UserAdaptor::uid() const +{ + // get the value of property Uid + return qvariant_cast< QString >(parent()->property("Uid")); +} + +bool UserAdaptor::use24HourFormat() const +{ + // get the value of property Use24HourFormat + return qvariant_cast< bool >(parent()->property("Use24HourFormat")); +} + +QString UserAdaptor::userName() const +{ + // get the value of property UserName + return qvariant_cast< QString >(parent()->property("UserName")); +} + +int UserAdaptor::weekBegins() const +{ + // get the value of property WeekBegins + return qvariant_cast< int >(parent()->property("WeekBegins")); +} + +int UserAdaptor::weekdayFormat() const +{ + // get the value of property WeekdayFormat + return qvariant_cast< int >(parent()->property("WeekdayFormat")); +} + +QString UserAdaptor::xSession() const +{ + // get the value of property XSession + return qvariant_cast< QString >(parent()->property("XSession")); +} + +void UserAdaptor::AddGroup(const QString &group) +{ + // handle method call org.deepin.dde.Accounts1.User.AddGroup + QMetaObject::invokeMethod(parent(), "AddGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteGroup(const QString &group) +{ + // handle method call org.deepin.dde.Accounts1.User.DeleteGroup + QMetaObject::invokeMethod(parent(), "DeleteGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteIconFile(const QString &iconFile) +{ + // handle method call org.deepin.dde.Accounts1.User.DeleteIconFile + QMetaObject::invokeMethod(parent(), "DeleteIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::EnableNoPasswdLogin(bool enabled) +{ + // handle method call org.deepin.dde.Accounts1.User.EnableNoPasswdLogin + QMetaObject::invokeMethod(parent(), "EnableNoPasswdLogin", Q_ARG(bool, enabled)); +} + +bool UserAdaptor::IsPasswordExpired() +{ + // handle method call org.deepin.dde.Accounts1.User.IsPasswordExpired + bool out0; + QMetaObject::invokeMethod(parent(), "IsPasswordExpired", Q_RETURN_ARG(bool, out0)); + return out0; +} + +int UserAdaptor::PasswordExpiredInfo(int &dayLeft) +{ + // handle method call org.deepin.dde.Accounts1.User.PasswordExpiredInfo + //return static_cast(parent())->PasswordExpiredInfo(dayLeft); +} + +void UserAdaptor::SetAutomaticLogin(bool enabled) +{ + // handle method call org.deepin.dde.Accounts1.User.SetAutomaticLogin + QMetaObject::invokeMethod(parent(), "SetAutomaticLogin", Q_ARG(bool, enabled)); +} + +void UserAdaptor::SetDesktopBackgrounds(const QStringList &backgrounds) +{ + // handle method call org.deepin.dde.Accounts1.User.SetDesktopBackgrounds + QMetaObject::invokeMethod(parent(), "SetDesktopBackgrounds", Q_ARG(QStringList, backgrounds)); +} + +void UserAdaptor::SetFullName(const QString &name) +{ + // handle method call org.deepin.dde.Accounts1.User.SetFullName + QMetaObject::invokeMethod(parent(), "SetFullName", Q_ARG(QString, name)); +} + +void UserAdaptor::SetGreeterBackground(const QString &background) +{ + // handle method call org.deepin.dde.Accounts1.User.SetGreeterBackground + QMetaObject::invokeMethod(parent(), "SetGreeterBackground", Q_ARG(QString, background)); +} + +void UserAdaptor::SetGroups(const QStringList &groups) +{ + // handle method call org.deepin.dde.Accounts1.User.SetGroups + QMetaObject::invokeMethod(parent(), "SetGroups", Q_ARG(QStringList, groups)); +} + +void UserAdaptor::SetHistoryLayout(const QStringList &layouts) +{ + // handle method call org.deepin.dde.Accounts1.User.SetHistoryLayout + QMetaObject::invokeMethod(parent(), "SetHistoryLayout", Q_ARG(QStringList, layouts)); +} + +void UserAdaptor::SetHomeDir(const QString &home) +{ + // handle method call org.deepin.dde.Accounts1.User.SetHomeDir + QMetaObject::invokeMethod(parent(), "SetHomeDir", Q_ARG(QString, home)); +} + +void UserAdaptor::SetIconFile(const QString &iconFile) +{ + // handle method call org.deepin.dde.Accounts1.User.SetIconFile + QMetaObject::invokeMethod(parent(), "SetIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::SetLayout(const QString &layout) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLayout + QMetaObject::invokeMethod(parent(), "SetLayout", Q_ARG(QString, layout)); +} + +void UserAdaptor::SetLocale(const QString &locale) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLocale + QMetaObject::invokeMethod(parent(), "SetLocale", Q_ARG(QString, locale)); +} + +void UserAdaptor::SetLocked(bool locked) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, locked)); +} + +void UserAdaptor::SetMaxPasswordAge(int nDays) +{ + // handle method call org.deepin.dde.Accounts1.User.SetMaxPasswordAge + QMetaObject::invokeMethod(parent(), "SetMaxPasswordAge", Q_ARG(int, nDays)); +} + +void UserAdaptor::SetPassword(const QString &password) +{ + // handle method call org.deepin.dde.Accounts1.User.SetPassword + QMetaObject::invokeMethod(parent(), "SetPassword", Q_ARG(QString, password)); +} + +void UserAdaptor::SetPasswordHint(const QString &hint) +{ + // handle method call org.deepin.dde.Accounts1.User.SetPasswordHint + QMetaObject::invokeMethod(parent(), "SetPasswordHint", Q_ARG(QString, hint)); +} + +void UserAdaptor::SetShell(const QString &shell) +{ + // handle method call org.deepin.dde.Accounts1.User.SetShell + QMetaObject::invokeMethod(parent(), "SetShell", Q_ARG(QString, shell)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h new file mode 100644 index 00000000..210b9c89 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h @@ -0,0 +1,264 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Accounts1.User.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.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_DEEPIN_DDE_ACCOUNTS1_USERADAPTOR_H +#define ORG_DEEPIN_DDE_ACCOUNTS1_USERADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.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.deepin.dde.Accounts1.User + */ +class UserAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Accounts1.User") + 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" +" \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: + UserAdaptor(QObject *parent); + virtual ~UserAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int AccountType READ accountType) + int accountType() const; + + Q_PROPERTY(bool AutomaticLogin READ automaticLogin) + bool automaticLogin() const; + + Q_PROPERTY(qulonglong CreatedTime READ createdTime) + qulonglong createdTime() const; + + Q_PROPERTY(QStringList DesktopBackgrounds READ desktopBackgrounds) + QStringList desktopBackgrounds() const; + + Q_PROPERTY(QString FullName READ fullName) + QString fullName() const; + + Q_PROPERTY(QString Gid READ gid) + QString gid() const; + + Q_PROPERTY(QString GreeterBackground READ greeterBackground) + QString greeterBackground() const; + + Q_PROPERTY(QStringList Groups READ groups) + QStringList groups() const; + + Q_PROPERTY(QStringList HistoryLayout READ historyLayout) + QStringList historyLayout() const; + + Q_PROPERTY(QString HomeDir READ homeDir) + QString homeDir() const; + + Q_PROPERTY(QString IconFile READ iconFile) + QString iconFile() const; + + Q_PROPERTY(QStringList IconList READ iconList) + QStringList iconList() const; + + Q_PROPERTY(QString Layout READ layout) + QString layout() const; + + Q_PROPERTY(QString Locale READ locale) + QString locale() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(qulonglong LoginTime READ loginTime) + qulonglong loginTime() const; + + Q_PROPERTY(int LongDateFormat READ longDateFormat) + int longDateFormat() const; + + Q_PROPERTY(int LongTimeFormat READ longTimeFormat) + int longTimeFormat() const; + + Q_PROPERTY(int MaxPasswordAge READ maxPasswordAge) + int maxPasswordAge() const; + + Q_PROPERTY(bool NoPasswdLogin READ noPasswdLogin) + bool noPasswdLogin() const; + + Q_PROPERTY(QString PasswordHint READ passwordHint) + QString passwordHint() const; + + Q_PROPERTY(int PasswordLastChange READ passwordLastChange) + int passwordLastChange() const; + + Q_PROPERTY(QString PasswordStatus READ passwordStatus) + QString passwordStatus() const; + + Q_PROPERTY(QString Shell READ shell) + QString shell() const; + + Q_PROPERTY(int ShortDateFormat READ shortDateFormat) + int shortDateFormat() const; + + Q_PROPERTY(int ShortTimeFormat READ shortTimeFormat) + int shortTimeFormat() const; + + Q_PROPERTY(bool SystemAccount READ systemAccount) + bool systemAccount() const; + + Q_PROPERTY(QString Uid READ uid) + QString uid() const; + + Q_PROPERTY(bool Use24HourFormat READ use24HourFormat) + bool use24HourFormat() const; + + Q_PROPERTY(QString UserName READ userName) + QString userName() const; + + Q_PROPERTY(int WeekBegins READ weekBegins) + int weekBegins() const; + + Q_PROPERTY(int WeekdayFormat READ weekdayFormat) + int weekdayFormat() const; + + Q_PROPERTY(QString XSession READ xSession) + QString xSession() const; + +public Q_SLOTS: // METHODS + void AddGroup(const QString &group); + void DeleteGroup(const QString &group); + void DeleteIconFile(const QString &iconFile); + void EnableNoPasswdLogin(bool enabled); + bool IsPasswordExpired(); + int PasswordExpiredInfo(int &dayLeft); + void SetAutomaticLogin(bool enabled); + void SetDesktopBackgrounds(const QStringList &backgrounds); + void SetFullName(const QString &name); + void SetGreeterBackground(const QString &background); + void SetGroups(const QStringList &groups); + void SetHistoryLayout(const QStringList &layouts); + void SetHomeDir(const QString &home); + void SetIconFile(const QString &iconFile); + void SetLayout(const QString &layout); + void SetLocale(const QString &locale); + void SetLocked(bool locked); + void SetMaxPasswordAge(int nDays); + void SetPassword(const QString &password); + void SetPasswordHint(const QString &hint); + void SetShell(const QString &shell); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp new file mode 100644 index 00000000..d048a0e3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp @@ -0,0 +1,133 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Accounts1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Accounts1Adaptor + */ + +Accounts1Adaptor::Accounts1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Accounts1Adaptor::~Accounts1Adaptor() +{ + // destructor +} + +bool Accounts1Adaptor::allowGuest() const +{ + // get the value of property AllowGuest + return qvariant_cast< bool >(parent()->property("AllowGuest")); +} + +QString Accounts1Adaptor::guestIcon() const +{ + // get the value of property GuestIcon + return qvariant_cast< QString >(parent()->property("GuestIcon")); +} + +QStringList Accounts1Adaptor::userList() const +{ + // get the value of property UserList + return qvariant_cast< QStringList >(parent()->property("UserList")); +} + +void Accounts1Adaptor::AllowGuestAccount(bool in0) +{ + // handle method call org.deepin.dde.Accounts1.AllowGuestAccount + QMetaObject::invokeMethod(parent(), "AllowGuestAccount", Q_ARG(bool, in0)); +} + +QString Accounts1Adaptor::CreateGuestAccount() +{ + // handle method call org.deepin.dde.Accounts1.CreateGuestAccount + QString out0; + QMetaObject::invokeMethod(parent(), "CreateGuestAccount", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusObjectPath Accounts1Adaptor::CreateUser(const QString &in0, const QString &in1, int in2) +{ + // handle method call org.deepin.dde.Accounts1.CreateUser + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "CreateUser", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); + return out0; +} + +void Accounts1Adaptor::DeleteUser(const QString &in0, bool in1) +{ + // handle method call org.deepin.dde.Accounts1.DeleteUser + QMetaObject::invokeMethod(parent(), "DeleteUser", Q_ARG(QString, in0), Q_ARG(bool, in1)); +} + +QString Accounts1Adaptor::FindUserById(const QString &in0) +{ + // handle method call org.deepin.dde.Accounts1.FindUserById + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserById", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString Accounts1Adaptor::FindUserByName(const QString &in0) +{ + // handle method call org.deepin.dde.Accounts1.FindUserByName + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserByName", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList Accounts1Adaptor::GetGroups() +{ + // handle method call org.deepin.dde.Accounts1.GetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetGroups", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList Accounts1Adaptor::GetPresetGroups(int in0) +{ + // handle method call org.deepin.dde.Accounts1.GetPresetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetPresetGroups", Q_RETURN_ARG(QStringList, out0), Q_ARG(int, in0)); + return out0; +} + +bool Accounts1Adaptor::IsPasswordValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call org.deepin.dde.Accounts1.IsPasswordValid + //return static_cast(parent())->IsPasswordValid(in0, out1, out2); +} + +bool Accounts1Adaptor::IsUsernameValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call org.deepin.dde.Accounts1.IsUsernameValid + //return static_cast(parent())->IsUsernameValid(in0, out1, out2); +} + +QString Accounts1Adaptor::RandUserIcon() +{ + // handle method call org.deepin.dde.Accounts1.RandUserIcon + QString out0; + QMetaObject::invokeMethod(parent(), "RandUserIcon", Q_RETURN_ARG(QString, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h new file mode 100644 index 00000000..72638118 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h @@ -0,0 +1,124 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Accounts1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.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_DEEPIN_DDE_ACCOUNTS1ADAPTOR_H +#define ORG_DEEPIN_DDE_ACCOUNTS1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.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.deepin.dde.Accounts1 + */ +class Accounts1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Accounts1") + 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" + "") +public: + Accounts1Adaptor(QObject *parent); + virtual ~Accounts1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AllowGuest READ allowGuest) + bool allowGuest() const; + + Q_PROPERTY(QString GuestIcon READ guestIcon) + QString guestIcon() const; + + Q_PROPERTY(QStringList UserList READ userList) + QStringList userList() const; + +public Q_SLOTS: // METHODS + void AllowGuestAccount(bool in0); + QString CreateGuestAccount(); + QDBusObjectPath CreateUser(const QString &in0, const QString &in1, int in2); + void DeleteUser(const QString &in0, bool in1); + QString FindUserById(const QString &in0); + QString FindUserByName(const QString &in0); + QStringList GetGroups(); + QStringList GetPresetGroups(int in0); + bool IsPasswordValid(const QString &in0, QString &out1, int &out2); + bool IsUsernameValid(const QString &in0, QString &out1, int &out2); + QString RandUserIcon(); +Q_SIGNALS: // SIGNALS + void UserAdded(const QString &in0); + void UserDeleted(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.cpp new file mode 100644 index 00000000..9da00812 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.cpp @@ -0,0 +1,139 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Authenticate1.Session2.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SessionAdaptor + */ + +SessionAdaptor::SessionAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SessionAdaptor::~SessionAdaptor() +{ + // destructor +} + +MFAInfoList SessionAdaptor::factorsInfo() const +{ + // get the value of property FactorsInfo + return qvariant_cast< MFAInfoList >(parent()->property("FactorsInfo")); +} + +bool SessionAdaptor::isFuzzyMFA() const +{ + // get the value of property IsFuzzyMFA + return qvariant_cast< bool >(parent()->property("IsFuzzyMFA")); +} + +bool SessionAdaptor::isMFA() const +{ + // get the value of property IsMFA + return qvariant_cast< bool >(parent()->property("IsMFA")); +} + +int SessionAdaptor::pINLen() const +{ + // get the value of property PINLen + return qvariant_cast< int >(parent()->property("PINLen")); +} + +QString SessionAdaptor::prompt() const +{ + // get the value of property Prompt + return qvariant_cast< QString >(parent()->property("Prompt")); +} + +QString SessionAdaptor::username() const +{ + // get the value of property Username + return qvariant_cast< QString >(parent()->property("Username")); +} + +int SessionAdaptor::EncryptKey(int encryptType, ArrayInt encryptMethod, ArrayInt &encryptMethod_, QString &publicKey) +{ + // handle method call org.deepin.dde.Authenticate1.Session.EncryptKey + //return static_cast(parent())->EncryptKey(encryptType, encryptMethod, encryptMethod_, publicKey); +} + +int SessionAdaptor::End(int flag) +{ + // handle method call org.deepin.dde.Authenticate1.Session.End + int failNum; + QMetaObject::invokeMethod(parent(), "End", Q_RETURN_ARG(int, failNum), Q_ARG(int, flag)); + return failNum; +} + +int SessionAdaptor::GetResult() +{ + // handle method call org.deepin.dde.Authenticate1.Session.GetResult + int result; + QMetaObject::invokeMethod(parent(), "GetResult", Q_RETURN_ARG(int, result)); + return result; +} + +void SessionAdaptor::PrivilegesDisable() +{ + // handle method call org.deepin.dde.Authenticate1.Session.PrivilegesDisable + QMetaObject::invokeMethod(parent(), "PrivilegesDisable"); +} + +bool SessionAdaptor::PrivilegesEnable(const QString &path) +{ + // handle method call org.deepin.dde.Authenticate1.Session.PrivilegesEnable + bool enabled; + QMetaObject::invokeMethod(parent(), "PrivilegesEnable", Q_RETURN_ARG(bool, enabled), Q_ARG(QString, path)); + return enabled; +} + +void SessionAdaptor::Quit() +{ + // handle method call org.deepin.dde.Authenticate1.Session.Quit + QMetaObject::invokeMethod(parent(), "Quit"); +} + +void SessionAdaptor::SetQuitFlag(int flag) +{ + // handle method call org.deepin.dde.Authenticate1.Session.SetQuitFlag + QMetaObject::invokeMethod(parent(), "SetQuitFlag", Q_ARG(int, flag)); +} + +void SessionAdaptor::SetSymmetricKey(const QByteArray &key) +{ + // handle method call org.deepin.dde.Authenticate1.Session.SetSymmetricKey + QMetaObject::invokeMethod(parent(), "SetSymmetricKey", Q_ARG(QByteArray, key)); +} + +void SessionAdaptor::SetToken(int flag, const QByteArray &token) +{ + // handle method call org.deepin.dde.Authenticate1.Session.SetToken + QMetaObject::invokeMethod(parent(), "SetToken", Q_ARG(int, flag), Q_ARG(QByteArray, token)); +} + +int SessionAdaptor::Start(int flag, int timeout) +{ + // handle method call org.deepin.dde.Authenticate1.Session.Start + int state; + QMetaObject::invokeMethod(parent(), "Start", Q_RETURN_ARG(int, state), Q_ARG(int, flag), Q_ARG(int, timeout)); + return state; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.h new file mode 100644 index 00000000..857a1eca --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor.h @@ -0,0 +1,126 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Authenticate1.Session2.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2.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_DEEPIN_DDE_AUTHENTICATE1_SESSION2ADAPTOR_H +#define ORG_DEEPIN_DDE_AUTHENTICATE1_SESSION2ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.Session2.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.deepin.dde.Authenticate1.Session + */ +class SessionAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Authenticate1.Session") + 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" + "") +public: + SessionAdaptor(QObject *parent); + virtual ~SessionAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(MFAInfoList FactorsInfo READ factorsInfo) + MFAInfoList factorsInfo() const; + + Q_PROPERTY(bool IsFuzzyMFA READ isFuzzyMFA) + bool isFuzzyMFA() const; + + Q_PROPERTY(bool IsMFA READ isMFA) + bool isMFA() const; + + Q_PROPERTY(int PINLen READ pINLen) + int pINLen() const; + + Q_PROPERTY(QString Prompt READ prompt) + QString prompt() const; + + Q_PROPERTY(QString Username READ username) + QString username() const; + +public Q_SLOTS: // METHODS + int EncryptKey(int encryptType, ArrayInt encryptMethod, ArrayInt &encryptMethod_, QString &publicKey); + int End(int flag); + int GetResult(); + void PrivilegesDisable(); + bool PrivilegesEnable(const QString &path); + void Quit(); + void SetQuitFlag(int flag); + void SetSymmetricKey(const QByteArray &key); + void SetToken(int flag, const QByteArray &token); + int Start(int flag, int timeout); +Q_SIGNALS: // SIGNALS + void Status(int flag, int status, const QString &msg); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.cpp new file mode 100644 index 00000000..39ee5720 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.cpp @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Authenticate1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Authenticate1Adaptor + */ + +Authenticate1Adaptor::Authenticate1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Authenticate1Adaptor::~Authenticate1Adaptor() +{ + // destructor +} + +int Authenticate1Adaptor::frameworkState() const +{ + // get the value of property FrameworkState + return qvariant_cast< int >(parent()->property("FrameworkState")); +} + +QString Authenticate1Adaptor::supportEncrypts() const +{ + // get the value of property SupportEncrypts + return qvariant_cast< QString >(parent()->property("SupportEncrypts")); +} + +int Authenticate1Adaptor::supportedFlags() const +{ + // get the value of property SupportedFlags + return qvariant_cast< int >(parent()->property("SupportedFlags")); +} + +QString Authenticate1Adaptor::Authenticate(const QString &username, int authFlags, int appType) +{ + // handle method call org.deepin.dde.Authenticate1.Authenticate + QString path; + QMetaObject::invokeMethod(parent(), "Authenticate", Q_RETURN_ARG(QString, path), Q_ARG(QString, username), Q_ARG(int, authFlags), Q_ARG(int, appType)); + return path; +} + +QString Authenticate1Adaptor::GetLimits(const QString &username) +{ + // handle method call org.deepin.dde.Authenticate1.GetLimits + QString limits; + QMetaObject::invokeMethod(parent(), "GetLimits", Q_RETURN_ARG(QString, limits), Q_ARG(QString, username)); + return limits; +} + +QString Authenticate1Adaptor::PreOneKeyLogin(int flag) +{ + // handle method call org.deepin.dde.Authenticate1.PreOneKeyLogin + QString result; + QMetaObject::invokeMethod(parent(), "PreOneKeyLogin", Q_RETURN_ARG(QString, result), Q_ARG(int, flag)); + return result; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.h new file mode 100644 index 00000000..2847b36f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor.h @@ -0,0 +1,80 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Authenticate1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.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_DEEPIN_DDE_AUTHENTICATE1ADAPTOR_H +#define ORG_DEEPIN_DDE_AUTHENTICATE1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Authenticate1.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.deepin.dde.Authenticate1 + */ +class Authenticate1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Authenticate1") + 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" + "") +public: + Authenticate1Adaptor(QObject *parent); + virtual ~Authenticate1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(int FrameworkState READ frameworkState) + int frameworkState() const; + + Q_PROPERTY(QString SupportEncrypts READ supportEncrypts) + QString supportEncrypts() const; + + Q_PROPERTY(int SupportedFlags READ supportedFlags) + int supportedFlags() const; + +public Q_SLOTS: // METHODS + QString Authenticate(const QString &username, int authFlags, int appType); + QString GetLimits(const QString &username); + QString PreOneKeyLogin(int flag); +Q_SIGNALS: // SIGNALS + void LimitUpdated(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.cpp new file mode 100644 index 00000000..59f9569c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.cpp @@ -0,0 +1,49 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.ImageEffect1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ImageEffect1Adaptor + */ + +ImageEffect1Adaptor::ImageEffect1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ImageEffect1Adaptor::~ImageEffect1Adaptor() +{ + // destructor +} + +void ImageEffect1Adaptor::Delete(const QString &effect, const QString &filename) +{ + // handle method call org.deepin.dde.ImageEffect1.Delete + QMetaObject::invokeMethod(parent(), "Delete", Q_ARG(QString, effect), Q_ARG(QString, filename)); +} + +QString ImageEffect1Adaptor::Get(const QString &effect, const QString &filename) +{ + // handle method call org.deepin.dde.ImageEffect1.Get + QString outputFile; + QMetaObject::invokeMethod(parent(), "Get", Q_RETURN_ARG(QString, outputFile), Q_ARG(QString, effect), Q_ARG(QString, filename)); + return outputFile; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.h new file mode 100644 index 00000000..cbe08341 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor.h @@ -0,0 +1,58 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.ImageEffect1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1.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_DEEPIN_DDE_IMAGEEFFECT1ADAPTOR_H +#define ORG_DEEPIN_DDE_IMAGEEFFECT1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageEffect1.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.deepin.dde.ImageEffect1 + */ +class ImageEffect1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.ImageEffect1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ImageEffect1Adaptor(QObject *parent); + virtual ~ImageEffect1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void Delete(const QString &effect, const QString &filename); + QString Get(const QString &effect, const QString &filename); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.cpp new file mode 100644 index 00000000..31fc4b29 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.cpp @@ -0,0 +1,47 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Logined.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Logined.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LoginedAdaptor + */ + +LoginedAdaptor::LoginedAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LoginedAdaptor::~LoginedAdaptor() +{ + // destructor +} + +uint LoginedAdaptor::lastLogoutUser() const +{ + // get the value of property LastLogoutUser + return qvariant_cast< uint >(parent()->property("LastLogoutUser")); +} + +QString LoginedAdaptor::userList() const +{ + // get the value of property UserList + return qvariant_cast< QString >(parent()->property("UserList")); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.h new file mode 100644 index 00000000..c9323141 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor.h @@ -0,0 +1,55 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.Logined.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.LoginedAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Logined.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_DEEPIN_DDE_LOGINEDADAPTOR_H +#define ORG_DEEPIN_DDE_LOGINEDADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.Logined.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.deepin.dde.Logined + */ +class LoginedAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Logined") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" + "") +public: + LoginedAdaptor(QObject *parent); + virtual ~LoginedAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(uint LastLogoutUser READ lastLogoutUser) + uint lastLogoutUser() const; + + Q_PROPERTY(QString UserList READ userList) + QString userList() const; + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp new file mode 100644 index 00000000..59930546 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.PowerManager1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PowerManager1Adaptor + */ + +PowerManager1Adaptor::PowerManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PowerManager1Adaptor::~PowerManager1Adaptor() +{ + // destructor +} + +bool PowerManager1Adaptor::CanHibernate() +{ + // handle method call org.deepin.dde.PowerManager1.CanHibernate + bool out0; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PowerManager1Adaptor::CanReboot() +{ + // handle method call org.deepin.dde.PowerManager1.CanReboot + bool out0; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PowerManager1Adaptor::CanShutdown() +{ + // handle method call org.deepin.dde.PowerManager1.CanShutdown + bool out0; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PowerManager1Adaptor::CanSuspend() +{ + // handle method call org.deepin.dde.PowerManager1.CanSuspend + bool out0; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h new file mode 100644 index 00000000..c3165d45 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h @@ -0,0 +1,63 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.PowerManager1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.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_DEEPIN_DDE_POWERMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_POWERMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.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.deepin.dde.PowerManager1 + */ +class PowerManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.PowerManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PowerManager1Adaptor(QObject *parent); + virtual ~PowerManager1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool CanHibernate(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp new file mode 100644 index 00000000..04ac8aea --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp @@ -0,0 +1,199 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SessionManager1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SessionManager1Adaptor + */ + +SessionManager1Adaptor::SessionManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SessionManager1Adaptor::~SessionManager1Adaptor() +{ + // destructor +} + +QString SessionManager1Adaptor::currentUid() const +{ + // get the value of property CurrentUid + return qvariant_cast< QString >(parent()->property("CurrentUid")); +} + +bool SessionManager1Adaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +int SessionManager1Adaptor::stage() const +{ + // get the value of property Stage + return qvariant_cast< int >(parent()->property("Stage")); +} + +bool SessionManager1Adaptor::AllowSessionDaemonRun() +{ + // handle method call org.deepin.dde.SessionManager1.AllowSessionDaemonRun + bool out0; + QMetaObject::invokeMethod(parent(), "AllowSessionDaemonRun", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanHibernate() +{ + // handle method call org.deepin.dde.SessionManager1.CanHibernate + bool out0; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanLogout() +{ + // handle method call org.deepin.dde.SessionManager1.CanLogout + bool out0; + QMetaObject::invokeMethod(parent(), "CanLogout", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanReboot() +{ + // handle method call org.deepin.dde.SessionManager1.CanReboot + bool out0; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.CanShutdown + bool out0; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanSuspend() +{ + // handle method call org.deepin.dde.SessionManager1.CanSuspend + bool out0; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void SessionManager1Adaptor::ForceLogout() +{ + // handle method call org.deepin.dde.SessionManager1.ForceLogout + QMetaObject::invokeMethod(parent(), "ForceLogout"); +} + +void SessionManager1Adaptor::ForceReboot() +{ + // handle method call org.deepin.dde.SessionManager1.ForceReboot + QMetaObject::invokeMethod(parent(), "ForceReboot"); +} + +void SessionManager1Adaptor::ForceShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.ForceShutdown + QMetaObject::invokeMethod(parent(), "ForceShutdown"); +} + +void SessionManager1Adaptor::Logout() +{ + // handle method call org.deepin.dde.SessionManager1.Logout + QMetaObject::invokeMethod(parent(), "Logout"); +} + +void SessionManager1Adaptor::PowerOffChoose() +{ + // handle method call org.deepin.dde.SessionManager1.PowerOffChoose + QMetaObject::invokeMethod(parent(), "PowerOffChoose"); +} + +void SessionManager1Adaptor::Reboot() +{ + // handle method call org.deepin.dde.SessionManager1.Reboot + QMetaObject::invokeMethod(parent(), "Reboot"); +} + +bool SessionManager1Adaptor::Register(const QString &in0) +{ + // handle method call org.deepin.dde.SessionManager1.Register + bool out0; + QMetaObject::invokeMethod(parent(), "Register", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void SessionManager1Adaptor::RequestHibernate() +{ + // handle method call org.deepin.dde.SessionManager1.RequestHibernate + QMetaObject::invokeMethod(parent(), "RequestHibernate"); +} + +void SessionManager1Adaptor::RequestLock() +{ + // handle method call org.deepin.dde.SessionManager1.RequestLock + QMetaObject::invokeMethod(parent(), "RequestLock"); +} + +void SessionManager1Adaptor::RequestLogout() +{ + // handle method call org.deepin.dde.SessionManager1.RequestLogout + QMetaObject::invokeMethod(parent(), "RequestLogout"); +} + +void SessionManager1Adaptor::RequestReboot() +{ + // handle method call org.deepin.dde.SessionManager1.RequestReboot + QMetaObject::invokeMethod(parent(), "RequestReboot"); +} + +void SessionManager1Adaptor::RequestShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.RequestShutdown + QMetaObject::invokeMethod(parent(), "RequestShutdown"); +} + +void SessionManager1Adaptor::RequestSuspend() +{ + // handle method call org.deepin.dde.SessionManager1.RequestSuspend + QMetaObject::invokeMethod(parent(), "RequestSuspend"); +} + +void SessionManager1Adaptor::SetLocked(bool in0) +{ + // handle method call org.deepin.dde.SessionManager1.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, in0)); +} + +void SessionManager1Adaptor::Shutdown() +{ + // handle method call org.deepin.dde.SessionManager1.Shutdown + QMetaObject::invokeMethod(parent(), "Shutdown"); +} + +void SessionManager1Adaptor::ToggleDebug() +{ + // handle method call org.deepin.dde.SessionManager1.ToggleDebug + QMetaObject::invokeMethod(parent(), "ToggleDebug"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h new file mode 100644 index 00000000..90e21708 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h @@ -0,0 +1,122 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SessionManager1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.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_DEEPIN_DDE_SESSIONMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_SESSIONMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.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.deepin.dde.SessionManager1 + */ +class SessionManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SessionManager1") + 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" + "") +public: + SessionManager1Adaptor(QObject *parent); + virtual ~SessionManager1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString CurrentUid READ currentUid) + QString currentUid() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(int Stage READ stage) + int stage() const; + +public Q_SLOTS: // METHODS + bool AllowSessionDaemonRun(); + bool CanHibernate(); + bool CanLogout(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); + void ForceLogout(); + void ForceReboot(); + void ForceShutdown(); + void Logout(); + void PowerOffChoose(); + void Reboot(); + bool Register(const QString &in0); + void RequestHibernate(); + void RequestLock(); + void RequestLogout(); + void RequestReboot(); + void RequestShutdown(); + void RequestSuspend(); + void SetLocked(bool in0); + void Shutdown(); + void ToggleDebug(); +Q_SIGNALS: // SIGNALS + void Unlock(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.cpp new file mode 100644 index 00000000..0aeee5a4 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.cpp @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SoundThemePlayer1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SoundThemePlayer1Adaptor + */ + +SoundThemePlayer1Adaptor::SoundThemePlayer1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SoundThemePlayer1Adaptor::~SoundThemePlayer1Adaptor() +{ + // destructor +} + +void SoundThemePlayer1Adaptor::EnableSound(const QString &name, bool enabled) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.EnableSound + QMetaObject::invokeMethod(parent(), "EnableSound", Q_ARG(QString, name), Q_ARG(bool, enabled)); +} + +void SoundThemePlayer1Adaptor::EnableSoundDesktopLogin(bool enabled) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.EnableSoundDesktopLogin + QMetaObject::invokeMethod(parent(), "EnableSoundDesktopLogin", Q_ARG(bool, enabled)); +} + +void SoundThemePlayer1Adaptor::Play(const QString &theme, const QString &event, const QString &device) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.Play + QMetaObject::invokeMethod(parent(), "Play", Q_ARG(QString, theme), Q_ARG(QString, event), Q_ARG(QString, device)); +} + +void SoundThemePlayer1Adaptor::PlaySoundDesktopLogin() +{ + // handle method call org.deepin.dde.SoundThemePlayer1.PlaySoundDesktopLogin + QMetaObject::invokeMethod(parent(), "PlaySoundDesktopLogin"); +} + +void SoundThemePlayer1Adaptor::PrepareShutdownSound(int uid) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.PrepareShutdownSound + QMetaObject::invokeMethod(parent(), "PrepareShutdownSound", Q_ARG(int, uid)); +} + +void SoundThemePlayer1Adaptor::SaveAudioState(const QVariantMap &avtivePlayback) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.SaveAudioState + QMetaObject::invokeMethod(parent(), "SaveAudioState", Q_ARG(QVariantMap, avtivePlayback)); +} + +void SoundThemePlayer1Adaptor::SetSoundTheme(const QString &theme) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.SetSoundTheme + QMetaObject::invokeMethod(parent(), "SetSoundTheme", Q_ARG(QString, theme)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h new file mode 100644 index 00000000..06e56eca --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SoundThemePlayer1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1.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_DEEPIN_DDE_SOUNDTHEMEPLAYER1ADAPTOR_H +#define ORG_DEEPIN_DDE_SOUNDTHEMEPLAYER1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1.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.deepin.dde.SoundThemePlayer1 + */ +class SoundThemePlayer1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SoundThemePlayer1") + 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" + "") +public: + SoundThemePlayer1Adaptor(QObject *parent); + virtual ~SoundThemePlayer1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void EnableSound(const QString &name, bool enabled); + void EnableSoundDesktopLogin(bool enabled); + void Play(const QString &theme, const QString &event, const QString &device); + void PlaySoundDesktopLogin(); + void PrepareShutdownSound(int uid); + void SaveAudioState(const QVariantMap &avtivePlayback); + void SetSoundTheme(const QString &theme); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.cpp new file mode 100644 index 00000000..2e38e70c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.cpp @@ -0,0 +1,49 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SystemDisplay1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Display1Adaptor + */ + +Display1Adaptor::Display1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Display1Adaptor::~Display1Adaptor() +{ + // destructor +} + +QString Display1Adaptor::GetConfig() +{ + // handle method call org.deepin.dde.Display1.GetConfig + QString out0; + QMetaObject::invokeMethod(parent(), "GetConfig", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void Display1Adaptor::SetConfig(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.SetConfig + QMetaObject::invokeMethod(parent(), "SetConfig", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.h new file mode 100644 index 00000000..b4b57f4b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SystemDisplay1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1.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_DEEPIN_DDE_SYSTEMDISPLAY1ADAPTOR_H +#define ORG_DEEPIN_DDE_SYSTEMDISPLAY1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemDisplay1.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.deepin.dde.Display1 + */ +class Display1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Display1Adaptor(QObject *parent); + virtual ~Display1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString GetConfig(); + void SetConfig(const QString &in0); +Q_SIGNALS: // SIGNALS + void ConfigUpdated(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.cpp new file mode 100644 index 00000000..f75d0032 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.cpp @@ -0,0 +1,181 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SystemPower1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Power1Adaptor + */ + +Power1Adaptor::Power1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Power1Adaptor::~Power1Adaptor() +{ + // destructor +} + +double Power1Adaptor::batteryPercentage() const +{ + // get the value of property BatteryPercentage + return qvariant_cast< double >(parent()->property("BatteryPercentage")); +} + +uint Power1Adaptor::batteryStatus() const +{ + // get the value of property BatteryStatus + return qvariant_cast< uint >(parent()->property("BatteryStatus")); +} + +qulonglong Power1Adaptor::batteryTimeToEmpty() const +{ + // get the value of property BatteryTimeToEmpty + return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToEmpty")); +} + +qulonglong Power1Adaptor::batteryTimeToFull() const +{ + // get the value of property BatteryTimeToFull + return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToFull")); +} + +bool Power1Adaptor::hasBattery() const +{ + // get the value of property HasBattery + return qvariant_cast< bool >(parent()->property("HasBattery")); +} + +bool Power1Adaptor::hasLidSwitch() const +{ + // get the value of property HasLidSwitch + return qvariant_cast< bool >(parent()->property("HasLidSwitch")); +} + +bool Power1Adaptor::isHighPerformanceSupported() const +{ + // get the value of property IsHighPerformanceSupported + return qvariant_cast< bool >(parent()->property("IsHighPerformanceSupported")); +} + +QString Power1Adaptor::mode() const +{ + // get the value of property Mode + return qvariant_cast< QString >(parent()->property("Mode")); +} + +bool Power1Adaptor::onBattery() const +{ + // get the value of property OnBattery + return qvariant_cast< bool >(parent()->property("OnBattery")); +} + +bool Power1Adaptor::powerSavingModeAuto() const +{ + // get the value of property PowerSavingModeAuto + return qvariant_cast< bool >(parent()->property("PowerSavingModeAuto")); +} + +void Power1Adaptor::setPowerSavingModeAuto(bool value) +{ + // set the value of property PowerSavingModeAuto + parent()->setProperty("PowerSavingModeAuto", QVariant::fromValue(value)); +} + +bool Power1Adaptor::powerSavingModeAutoWhenBatteryLow() const +{ + // get the value of property PowerSavingModeAutoWhenBatteryLow + return qvariant_cast< bool >(parent()->property("PowerSavingModeAutoWhenBatteryLow")); +} + +void Power1Adaptor::setPowerSavingModeAutoWhenBatteryLow(bool value) +{ + // set the value of property PowerSavingModeAutoWhenBatteryLow + parent()->setProperty("PowerSavingModeAutoWhenBatteryLow", QVariant::fromValue(value)); +} + +uint Power1Adaptor::powerSavingModeBrightnessDropPercent() const +{ + // get the value of property PowerSavingModeBrightnessDropPercent + return qvariant_cast< uint >(parent()->property("PowerSavingModeBrightnessDropPercent")); +} + +void Power1Adaptor::setPowerSavingModeBrightnessDropPercent(uint value) +{ + // set the value of property PowerSavingModeBrightnessDropPercent + parent()->setProperty("PowerSavingModeBrightnessDropPercent", QVariant::fromValue(value)); +} + +bool Power1Adaptor::powerSavingModeEnabled() const +{ + // get the value of property PowerSavingModeEnabled + return qvariant_cast< bool >(parent()->property("PowerSavingModeEnabled")); +} + +void Power1Adaptor::setPowerSavingModeEnabled(bool value) +{ + // set the value of property PowerSavingModeEnabled + parent()->setProperty("PowerSavingModeEnabled", QVariant::fromValue(value)); +} + +bool Power1Adaptor::powerSystemAutoToSleepWhenFree() const +{ + // get the value of property PowerSystemAutoToSleepWhenFree + return qvariant_cast< bool >(parent()->property("PowerSystemAutoToSleepWhenFree")); +} + +void Power1Adaptor::setPowerSystemAutoToSleepWhenFree(bool value) +{ + // set the value of property PowerSystemAutoToSleepWhenFree + parent()->setProperty("PowerSystemAutoToSleepWhenFree", QVariant::fromValue(value)); +} + +QList Power1Adaptor::GetBatteries() +{ + // handle method call org.deepin.dde.Power1.GetBatteries + QList batteries; + QMetaObject::invokeMethod(parent(), "GetBatteries", Q_RETURN_ARG(QList, batteries)); + return batteries; +} + +void Power1Adaptor::Refresh() +{ + // handle method call org.deepin.dde.Power1.Refresh + QMetaObject::invokeMethod(parent(), "Refresh"); +} + +void Power1Adaptor::RefreshBatteries() +{ + // handle method call org.deepin.dde.Power1.RefreshBatteries + QMetaObject::invokeMethod(parent(), "RefreshBatteries"); +} + +void Power1Adaptor::RefreshMains() +{ + // handle method call org.deepin.dde.Power1.RefreshMains + QMetaObject::invokeMethod(parent(), "RefreshMains"); +} + +void Power1Adaptor::SetMode(const QString &mode) +{ + // handle method call org.deepin.dde.Power1.SetMode + QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(QString, mode)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.h new file mode 100644 index 00000000..57df7819 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.h @@ -0,0 +1,138 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.SystemPower1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1.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_DEEPIN_DDE_SYSTEMPOWER1ADAPTOR_H +#define ORG_DEEPIN_DDE_SYSTEMPOWER1ADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1.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.deepin.dde.Power1 + */ +class Power1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Power1") + 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" + "") +public: + Power1Adaptor(QObject *parent); + virtual ~Power1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(double BatteryPercentage READ batteryPercentage) + double batteryPercentage() const; + + Q_PROPERTY(uint BatteryStatus READ batteryStatus) + uint batteryStatus() const; + + Q_PROPERTY(qulonglong BatteryTimeToEmpty READ batteryTimeToEmpty) + qulonglong batteryTimeToEmpty() const; + + Q_PROPERTY(qulonglong BatteryTimeToFull READ batteryTimeToFull) + qulonglong batteryTimeToFull() const; + + Q_PROPERTY(bool HasBattery READ hasBattery) + bool hasBattery() const; + + Q_PROPERTY(bool HasLidSwitch READ hasLidSwitch) + bool hasLidSwitch() const; + + Q_PROPERTY(bool IsHighPerformanceSupported READ isHighPerformanceSupported) + bool isHighPerformanceSupported() const; + + Q_PROPERTY(QString Mode READ mode) + QString mode() const; + + Q_PROPERTY(bool OnBattery READ onBattery) + bool onBattery() const; + + Q_PROPERTY(bool PowerSavingModeAuto READ powerSavingModeAuto WRITE setPowerSavingModeAuto) + bool powerSavingModeAuto() const; + void setPowerSavingModeAuto(bool value); + + Q_PROPERTY(bool PowerSavingModeAutoWhenBatteryLow READ powerSavingModeAutoWhenBatteryLow WRITE setPowerSavingModeAutoWhenBatteryLow) + bool powerSavingModeAutoWhenBatteryLow() const; + void setPowerSavingModeAutoWhenBatteryLow(bool value); + + Q_PROPERTY(uint PowerSavingModeBrightnessDropPercent READ powerSavingModeBrightnessDropPercent WRITE setPowerSavingModeBrightnessDropPercent) + uint powerSavingModeBrightnessDropPercent() const; + void setPowerSavingModeBrightnessDropPercent(uint value); + + Q_PROPERTY(bool PowerSavingModeEnabled READ powerSavingModeEnabled WRITE setPowerSavingModeEnabled) + bool powerSavingModeEnabled() const; + void setPowerSavingModeEnabled(bool value); + + Q_PROPERTY(bool PowerSystemAutoToSleepWhenFree READ powerSystemAutoToSleepWhenFree WRITE setPowerSystemAutoToSleepWhenFree) + bool powerSystemAutoToSleepWhenFree() const; + void setPowerSystemAutoToSleepWhenFree(bool value); + +public Q_SLOTS: // METHODS + QList GetBatteries(); + void Refresh(); + void RefreshBatteries(); + void RefreshMains(); + void SetMode(const QString &mode); +Q_SIGNALS: // SIGNALS + void BatteryAdded(const QDBusObjectPath &objpath); + void BatteryDisplayUpdate(qlonglong timestamp); + void BatteryRemoved(const QDBusObjectPath &objpath); + void LidClosed(); + void LidOpened(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp new file mode 100644 index 00000000..ec6635ee --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp @@ -0,0 +1,35 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.freedesktop.DBus.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./dde-session-shell/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 "./dde-session-shell/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 +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h new file mode 100644 index 00000000..da03c5e7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.freedesktop.DBus.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./dde-session-shell/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 "./dde-session-shell/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" + "") +public: + DBusAdaptor(QObject *parent); + virtual ~DBusAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS + void NameOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.cpp new file mode 100644 index 00000000..e4a87cb1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.cpp @@ -0,0 +1,89 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.freedesktop.login1.session.self.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.self.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 "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SessionAdaptor + */ + +SessionAdaptor::SessionAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SessionAdaptor::~SessionAdaptor() +{ + // destructor +} + +bool SessionAdaptor::active() const +{ + // get the value of property Active + return qvariant_cast< bool >(parent()->property("Active")); +} + +QString SessionAdaptor::desktop() const +{ + // get the value of property Desktop + return qvariant_cast< QString >(parent()->property("Desktop")); +} + +QString SessionAdaptor::display() const +{ + // get the value of property Display + return qvariant_cast< QString >(parent()->property("Display")); +} + +QString SessionAdaptor::id() const +{ + // get the value of property Id + return qvariant_cast< QString >(parent()->property("Id")); +} + +QString SessionAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +void SessionAdaptor::Activate() +{ + // handle method call org.freedesktop.login1.Session.Activate + QMetaObject::invokeMethod(parent(), "Activate"); +} + +void SessionAdaptor::Lock() +{ + // handle method call org.freedesktop.login1.Session.Lock + QMetaObject::invokeMethod(parent(), "Lock"); +} + +void SessionAdaptor::Terminate() +{ + // handle method call org.freedesktop.login1.Session.Terminate + QMetaObject::invokeMethod(parent(), "Terminate"); +} + +void SessionAdaptor::Unlock() +{ + // handle method call org.freedesktop.login1.Session.Unlock + QMetaObject::invokeMethod(parent(), "Unlock"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.h new file mode 100644 index 00000000..1be5d20a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.freedesktop.login1.session.self.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.selfAdaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.self.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_LOGIN1_SESSION_SELFADAPTOR_H +#define ORG_FREEDESKTOP_LOGIN1_SESSION_SELFADAPTOR_H + +#include +#include +#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.session.self.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.login1.Session + */ +class SessionAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.login1.Session") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SessionAdaptor(QObject *parent); + virtual ~SessionAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Active READ active) + bool active() const; + + Q_PROPERTY(QString Desktop READ desktop) + QString desktop() const; + + Q_PROPERTY(QString Display READ display) + QString display() const; + + Q_PROPERTY(QString Id READ id) + QString id() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + +public Q_SLOTS: // METHODS + void Activate(); + void Lock(); + void Terminate(); + void Unlock(); +Q_SIGNALS: // SIGNALS +}; + +#endif