diff --git a/toolGenerate/dconfig2cpp/com_deepin_dde_dock.hpp b/toolGenerate/dconfig2cpp/com_deepin_dde_dock.hpp new file mode 100644 index 000000000..1161a445e --- /dev/null +++ b/toolGenerate/dconfig2cpp/com_deepin_dde_dock.hpp @@ -0,0 +1,792 @@ +/** + * This file is generated by dconfig2cpp. + * Command line arguments: ./dconfig2cpp -p ./dde-dock/toolGenerate/dconfig2cpp ./dde-dock/configs/com.deepin.dde.dock.json + * Generation time: 2025-01-13T17:45:34 + * 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 COM_DEEPIN_DDE_DOCK_H +#define COM_DEEPIN_DDE_DOCK_H + +#include +#include +#include +#include +#include +#include + +class com_deepin_dde_dock : public QObject { + Q_OBJECT + + Q_PROPERTY(double Delay_Plugins_Time READ Delay_Plugins_Time WRITE setDelay_Plugins_Time NOTIFY Delay_Plugins_TimeChanged) + Q_PROPERTY(QString Display_Mode READ Display_Mode WRITE setDisplay_Mode NOTIFY Display_ModeChanged) + Q_PROPERTY(QList Dock_Quick_Plugins READ Dock_Quick_Plugins WRITE setDock_Quick_Plugins NOTIFY Dock_Quick_PluginsChanged) + Q_PROPERTY(QList Dock_Quick_Tray_Name READ Dock_Quick_Tray_Name WRITE setDock_Quick_Tray_Name NOTIFY Dock_Quick_Tray_NameChanged) + Q_PROPERTY(double Dock_Show_Window_name READ Dock_Show_Window_name WRITE setDock_Show_Window_name NOTIFY Dock_Show_Window_nameChanged) + Q_PROPERTY(QList Docked_Apps READ Docked_Apps WRITE setDocked_Apps NOTIFY Docked_AppsChanged) + Q_PROPERTY(QString Force_Quit_App READ Force_Quit_App WRITE setForce_Quit_App NOTIFY Force_Quit_AppChanged) + Q_PROPERTY(QString Hide_Mode READ Hide_Mode WRITE setHide_Mode NOTIFY Hide_ModeChanged) + Q_PROPERTY(double Hide_Timeout READ Hide_Timeout WRITE setHide_Timeout NOTIFY Hide_TimeoutChanged) + Q_PROPERTY(double Icon_Size READ Icon_Size WRITE setIcon_Size NOTIFY Icon_SizeChanged) + Q_PROPERTY(QString Plugin_Settings READ Plugin_Settings WRITE setPlugin_Settings NOTIFY Plugin_SettingsChanged) + Q_PROPERTY(QString Position READ Position WRITE setPosition NOTIFY PositionChanged) + Q_PROPERTY(QList Recent_App READ Recent_App WRITE setRecent_App NOTIFY Recent_AppChanged) + Q_PROPERTY(bool Show_MultiWindow READ Show_MultiWindow WRITE setShow_MultiWindow NOTIFY Show_MultiWindowChanged) + Q_PROPERTY(bool Show_Recent READ Show_Recent WRITE setShow_Recent NOTIFY Show_RecentChanged) + Q_PROPERTY(double Show_Timeout READ Show_Timeout WRITE setShow_Timeout NOTIFY Show_TimeoutChanged) + Q_PROPERTY(QList Win_Icon_Preferred_Apps READ Win_Icon_Preferred_Apps WRITE setWin_Icon_Preferred_Apps NOTIFY Win_Icon_Preferred_AppsChanged) + Q_PROPERTY(double Window_Size_Efficient READ Window_Size_Efficient WRITE setWindow_Size_Efficient NOTIFY Window_Size_EfficientChanged) + Q_PROPERTY(double Window_Size_Fashion READ Window_Size_Fashion WRITE setWindow_Size_Fashion NOTIFY Window_Size_FashionChanged) +public: + explicit com_deepin_dde_dock(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 com_deepin_dde_dock(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 com_deepin_dde_dock(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 com_deepin_dde_dock(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(); + }); + } + ~com_deepin_dde_dock() { + if (m_config.loadRelaxed()) { + m_config.loadRelaxed()->deleteLater(); + } + } + + double Delay_Plugins_Time() const { + return p_Delay_Plugins_Time; + } + void setDelay_Plugins_Time(const double &value) { + auto oldValue = p_Delay_Plugins_Time; + p_Delay_Plugins_Time = value; + markPropertySet(0); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Delay_Plugins_Time"), value); + }); + } + if (p_Delay_Plugins_Time != oldValue) { + Q_EMIT Delay_Plugins_TimeChanged(); + } + } + QString Display_Mode() const { + return p_Display_Mode; + } + void setDisplay_Mode(const QString &value) { + auto oldValue = p_Display_Mode; + p_Display_Mode = value; + markPropertySet(1); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Display_Mode"), value); + }); + } + if (p_Display_Mode != oldValue) { + Q_EMIT Display_ModeChanged(); + } + } + QList Dock_Quick_Plugins() const { + return p_Dock_Quick_Plugins; + } + void setDock_Quick_Plugins(const QList &value) { + auto oldValue = p_Dock_Quick_Plugins; + p_Dock_Quick_Plugins = value; + markPropertySet(2); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Dock_Quick_Plugins"), value); + }); + } + if (p_Dock_Quick_Plugins != oldValue) { + Q_EMIT Dock_Quick_PluginsChanged(); + } + } + QList Dock_Quick_Tray_Name() const { + return p_Dock_Quick_Tray_Name; + } + void setDock_Quick_Tray_Name(const QList &value) { + auto oldValue = p_Dock_Quick_Tray_Name; + p_Dock_Quick_Tray_Name = value; + markPropertySet(3); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Dock_Quick_Tray_Name"), value); + }); + } + if (p_Dock_Quick_Tray_Name != oldValue) { + Q_EMIT Dock_Quick_Tray_NameChanged(); + } + } + double Dock_Show_Window_name() const { + return p_Dock_Show_Window_name; + } + void setDock_Show_Window_name(const double &value) { + auto oldValue = p_Dock_Show_Window_name; + p_Dock_Show_Window_name = value; + markPropertySet(4); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Dock_Show_Window_name"), value); + }); + } + if (p_Dock_Show_Window_name != oldValue) { + Q_EMIT Dock_Show_Window_nameChanged(); + } + } + QList Docked_Apps() const { + return p_Docked_Apps; + } + void setDocked_Apps(const QList &value) { + auto oldValue = p_Docked_Apps; + p_Docked_Apps = value; + markPropertySet(5); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Docked_Apps"), value); + }); + } + if (p_Docked_Apps != oldValue) { + Q_EMIT Docked_AppsChanged(); + } + } + QString Force_Quit_App() const { + return p_Force_Quit_App; + } + void setForce_Quit_App(const QString &value) { + auto oldValue = p_Force_Quit_App; + p_Force_Quit_App = value; + markPropertySet(6); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Force_Quit_App"), value); + }); + } + if (p_Force_Quit_App != oldValue) { + Q_EMIT Force_Quit_AppChanged(); + } + } + QString Hide_Mode() const { + return p_Hide_Mode; + } + void setHide_Mode(const QString &value) { + auto oldValue = p_Hide_Mode; + p_Hide_Mode = value; + markPropertySet(7); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Hide_Mode"), value); + }); + } + if (p_Hide_Mode != oldValue) { + Q_EMIT Hide_ModeChanged(); + } + } + double Hide_Timeout() const { + return p_Hide_Timeout; + } + void setHide_Timeout(const double &value) { + auto oldValue = p_Hide_Timeout; + p_Hide_Timeout = value; + markPropertySet(8); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Hide_Timeout"), value); + }); + } + if (p_Hide_Timeout != oldValue) { + Q_EMIT Hide_TimeoutChanged(); + } + } + double Icon_Size() const { + return p_Icon_Size; + } + void setIcon_Size(const double &value) { + auto oldValue = p_Icon_Size; + p_Icon_Size = value; + markPropertySet(9); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Icon_Size"), value); + }); + } + if (p_Icon_Size != oldValue) { + Q_EMIT Icon_SizeChanged(); + } + } + QString Plugin_Settings() const { + return p_Plugin_Settings; + } + void setPlugin_Settings(const QString &value) { + auto oldValue = p_Plugin_Settings; + p_Plugin_Settings = value; + markPropertySet(10); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Plugin_Settings"), value); + }); + } + if (p_Plugin_Settings != oldValue) { + Q_EMIT Plugin_SettingsChanged(); + } + } + QString Position() const { + return p_Position; + } + void setPosition(const QString &value) { + auto oldValue = p_Position; + p_Position = value; + markPropertySet(11); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Position"), value); + }); + } + if (p_Position != oldValue) { + Q_EMIT PositionChanged(); + } + } + QList Recent_App() const { + return p_Recent_App; + } + void setRecent_App(const QList &value) { + auto oldValue = p_Recent_App; + p_Recent_App = value; + markPropertySet(12); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Recent_App"), value); + }); + } + if (p_Recent_App != oldValue) { + Q_EMIT Recent_AppChanged(); + } + } + bool Show_MultiWindow() const { + return p_Show_MultiWindow; + } + void setShow_MultiWindow(const bool &value) { + auto oldValue = p_Show_MultiWindow; + p_Show_MultiWindow = value; + markPropertySet(13); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Show_MultiWindow"), value); + }); + } + if (p_Show_MultiWindow != oldValue) { + Q_EMIT Show_MultiWindowChanged(); + } + } + bool Show_Recent() const { + return p_Show_Recent; + } + void setShow_Recent(const bool &value) { + auto oldValue = p_Show_Recent; + p_Show_Recent = value; + markPropertySet(14); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Show_Recent"), value); + }); + } + if (p_Show_Recent != oldValue) { + Q_EMIT Show_RecentChanged(); + } + } + double Show_Timeout() const { + return p_Show_Timeout; + } + void setShow_Timeout(const double &value) { + auto oldValue = p_Show_Timeout; + p_Show_Timeout = value; + markPropertySet(15); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Show_Timeout"), value); + }); + } + if (p_Show_Timeout != oldValue) { + Q_EMIT Show_TimeoutChanged(); + } + } + QList Win_Icon_Preferred_Apps() const { + return p_Win_Icon_Preferred_Apps; + } + void setWin_Icon_Preferred_Apps(const QList &value) { + auto oldValue = p_Win_Icon_Preferred_Apps; + p_Win_Icon_Preferred_Apps = value; + markPropertySet(16); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Win_Icon_Preferred_Apps"), value); + }); + } + if (p_Win_Icon_Preferred_Apps != oldValue) { + Q_EMIT Win_Icon_Preferred_AppsChanged(); + } + } + double Window_Size_Efficient() const { + return p_Window_Size_Efficient; + } + void setWindow_Size_Efficient(const double &value) { + auto oldValue = p_Window_Size_Efficient; + p_Window_Size_Efficient = value; + markPropertySet(17); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Window_Size_Efficient"), value); + }); + } + if (p_Window_Size_Efficient != oldValue) { + Q_EMIT Window_Size_EfficientChanged(); + } + } + double Window_Size_Fashion() const { + return p_Window_Size_Fashion; + } + void setWindow_Size_Fashion(const double &value) { + auto oldValue = p_Window_Size_Fashion; + p_Window_Size_Fashion = value; + markPropertySet(18); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("Window_Size_Fashion"), value); + }); + } + if (p_Window_Size_Fashion != oldValue) { + Q_EMIT Window_Size_FashionChanged(); + } + } +Q_SIGNALS: + void Delay_Plugins_TimeChanged(); + void Display_ModeChanged(); + void Dock_Quick_PluginsChanged(); + void Dock_Quick_Tray_NameChanged(); + void Dock_Show_Window_nameChanged(); + void Docked_AppsChanged(); + void Force_Quit_AppChanged(); + void Hide_ModeChanged(); + void Hide_TimeoutChanged(); + void Icon_SizeChanged(); + void Plugin_SettingsChanged(); + void PositionChanged(); + void Recent_AppChanged(); + void Show_MultiWindowChanged(); + void Show_RecentChanged(); + void Show_TimeoutChanged(); + void Win_Icon_Preferred_AppsChanged(); + void Window_Size_EfficientChanged(); + void Window_Size_FashionChanged(); +private: + void initialize(DTK_CORE_NAMESPACE::DConfig *config) { + Q_ASSERT(!m_config.loadRelaxed()); + m_config.storeRelaxed(config); + if (testPropertySet(0)) { + config->setValue(QStringLiteral("Delay_Plugins_Time"), QVariant::fromValue(p_Delay_Plugins_Time)); + } else { + updateValue(QStringLiteral("Delay_Plugins_Time"), QVariant::fromValue(p_Delay_Plugins_Time)); + } + if (testPropertySet(1)) { + config->setValue(QStringLiteral("Display_Mode"), QVariant::fromValue(p_Display_Mode)); + } else { + updateValue(QStringLiteral("Display_Mode"), QVariant::fromValue(p_Display_Mode)); + } + if (testPropertySet(2)) { + config->setValue(QStringLiteral("Dock_Quick_Plugins"), QVariant::fromValue(p_Dock_Quick_Plugins)); + } else { + updateValue(QStringLiteral("Dock_Quick_Plugins"), QVariant::fromValue(p_Dock_Quick_Plugins)); + } + if (testPropertySet(3)) { + config->setValue(QStringLiteral("Dock_Quick_Tray_Name"), QVariant::fromValue(p_Dock_Quick_Tray_Name)); + } else { + updateValue(QStringLiteral("Dock_Quick_Tray_Name"), QVariant::fromValue(p_Dock_Quick_Tray_Name)); + } + if (testPropertySet(4)) { + config->setValue(QStringLiteral("Dock_Show_Window_name"), QVariant::fromValue(p_Dock_Show_Window_name)); + } else { + updateValue(QStringLiteral("Dock_Show_Window_name"), QVariant::fromValue(p_Dock_Show_Window_name)); + } + if (testPropertySet(5)) { + config->setValue(QStringLiteral("Docked_Apps"), QVariant::fromValue(p_Docked_Apps)); + } else { + updateValue(QStringLiteral("Docked_Apps"), QVariant::fromValue(p_Docked_Apps)); + } + if (testPropertySet(6)) { + config->setValue(QStringLiteral("Force_Quit_App"), QVariant::fromValue(p_Force_Quit_App)); + } else { + updateValue(QStringLiteral("Force_Quit_App"), QVariant::fromValue(p_Force_Quit_App)); + } + if (testPropertySet(7)) { + config->setValue(QStringLiteral("Hide_Mode"), QVariant::fromValue(p_Hide_Mode)); + } else { + updateValue(QStringLiteral("Hide_Mode"), QVariant::fromValue(p_Hide_Mode)); + } + if (testPropertySet(8)) { + config->setValue(QStringLiteral("Hide_Timeout"), QVariant::fromValue(p_Hide_Timeout)); + } else { + updateValue(QStringLiteral("Hide_Timeout"), QVariant::fromValue(p_Hide_Timeout)); + } + if (testPropertySet(9)) { + config->setValue(QStringLiteral("Icon_Size"), QVariant::fromValue(p_Icon_Size)); + } else { + updateValue(QStringLiteral("Icon_Size"), QVariant::fromValue(p_Icon_Size)); + } + if (testPropertySet(10)) { + config->setValue(QStringLiteral("Plugin_Settings"), QVariant::fromValue(p_Plugin_Settings)); + } else { + updateValue(QStringLiteral("Plugin_Settings"), QVariant::fromValue(p_Plugin_Settings)); + } + if (testPropertySet(11)) { + config->setValue(QStringLiteral("Position"), QVariant::fromValue(p_Position)); + } else { + updateValue(QStringLiteral("Position"), QVariant::fromValue(p_Position)); + } + if (testPropertySet(12)) { + config->setValue(QStringLiteral("Recent_App"), QVariant::fromValue(p_Recent_App)); + } else { + updateValue(QStringLiteral("Recent_App"), QVariant::fromValue(p_Recent_App)); + } + if (testPropertySet(13)) { + config->setValue(QStringLiteral("Show_MultiWindow"), QVariant::fromValue(p_Show_MultiWindow)); + } else { + updateValue(QStringLiteral("Show_MultiWindow"), QVariant::fromValue(p_Show_MultiWindow)); + } + if (testPropertySet(14)) { + config->setValue(QStringLiteral("Show_Recent"), QVariant::fromValue(p_Show_Recent)); + } else { + updateValue(QStringLiteral("Show_Recent"), QVariant::fromValue(p_Show_Recent)); + } + if (testPropertySet(15)) { + config->setValue(QStringLiteral("Show_Timeout"), QVariant::fromValue(p_Show_Timeout)); + } else { + updateValue(QStringLiteral("Show_Timeout"), QVariant::fromValue(p_Show_Timeout)); + } + if (testPropertySet(16)) { + config->setValue(QStringLiteral("Win_Icon_Preferred_Apps"), QVariant::fromValue(p_Win_Icon_Preferred_Apps)); + } else { + updateValue(QStringLiteral("Win_Icon_Preferred_Apps"), QVariant::fromValue(p_Win_Icon_Preferred_Apps)); + } + if (testPropertySet(17)) { + config->setValue(QStringLiteral("Window_Size_Efficient"), QVariant::fromValue(p_Window_Size_Efficient)); + } else { + updateValue(QStringLiteral("Window_Size_Efficient"), QVariant::fromValue(p_Window_Size_Efficient)); + } + if (testPropertySet(18)) { + config->setValue(QStringLiteral("Window_Size_Fashion"), QVariant::fromValue(p_Window_Size_Fashion)); + } else { + updateValue(QStringLiteral("Window_Size_Fashion"), QVariant::fromValue(p_Window_Size_Fashion)); + } + + 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("Delay_Plugins_Time")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Delay_Plugins_Time != newValue) { + p_Delay_Plugins_Time = newValue; + Q_EMIT Delay_Plugins_TimeChanged(); + } + }); + return; + } + if (key == QStringLiteral("Display_Mode")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Display_Mode != newValue) { + p_Display_Mode = newValue; + Q_EMIT Display_ModeChanged(); + } + }); + return; + } + if (key == QStringLiteral("Dock_Quick_Plugins")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Dock_Quick_Plugins != newValue) { + p_Dock_Quick_Plugins = newValue; + Q_EMIT Dock_Quick_PluginsChanged(); + } + }); + return; + } + if (key == QStringLiteral("Dock_Quick_Tray_Name")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Dock_Quick_Tray_Name != newValue) { + p_Dock_Quick_Tray_Name = newValue; + Q_EMIT Dock_Quick_Tray_NameChanged(); + } + }); + return; + } + if (key == QStringLiteral("Dock_Show_Window_name")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Dock_Show_Window_name != newValue) { + p_Dock_Show_Window_name = newValue; + Q_EMIT Dock_Show_Window_nameChanged(); + } + }); + return; + } + if (key == QStringLiteral("Docked_Apps")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Docked_Apps != newValue) { + p_Docked_Apps = newValue; + Q_EMIT Docked_AppsChanged(); + } + }); + return; + } + if (key == QStringLiteral("Force_Quit_App")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Force_Quit_App != newValue) { + p_Force_Quit_App = newValue; + Q_EMIT Force_Quit_AppChanged(); + } + }); + return; + } + if (key == QStringLiteral("Hide_Mode")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Hide_Mode != newValue) { + p_Hide_Mode = newValue; + Q_EMIT Hide_ModeChanged(); + } + }); + return; + } + if (key == QStringLiteral("Hide_Timeout")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Hide_Timeout != newValue) { + p_Hide_Timeout = newValue; + Q_EMIT Hide_TimeoutChanged(); + } + }); + return; + } + if (key == QStringLiteral("Icon_Size")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Icon_Size != newValue) { + p_Icon_Size = newValue; + Q_EMIT Icon_SizeChanged(); + } + }); + return; + } + if (key == QStringLiteral("Plugin_Settings")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Plugin_Settings != newValue) { + p_Plugin_Settings = newValue; + Q_EMIT Plugin_SettingsChanged(); + } + }); + return; + } + if (key == QStringLiteral("Position")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Position != newValue) { + p_Position = newValue; + Q_EMIT PositionChanged(); + } + }); + return; + } + if (key == QStringLiteral("Recent_App")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Recent_App != newValue) { + p_Recent_App = newValue; + Q_EMIT Recent_AppChanged(); + } + }); + return; + } + if (key == QStringLiteral("Show_MultiWindow")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Show_MultiWindow != newValue) { + p_Show_MultiWindow = newValue; + Q_EMIT Show_MultiWindowChanged(); + } + }); + return; + } + if (key == QStringLiteral("Show_Recent")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Show_Recent != newValue) { + p_Show_Recent = newValue; + Q_EMIT Show_RecentChanged(); + } + }); + return; + } + if (key == QStringLiteral("Show_Timeout")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Show_Timeout != newValue) { + p_Show_Timeout = newValue; + Q_EMIT Show_TimeoutChanged(); + } + }); + return; + } + if (key == QStringLiteral("Win_Icon_Preferred_Apps")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Win_Icon_Preferred_Apps != newValue) { + p_Win_Icon_Preferred_Apps = newValue; + Q_EMIT Win_Icon_Preferred_AppsChanged(); + } + }); + return; + } + if (key == QStringLiteral("Window_Size_Efficient")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Window_Size_Efficient != newValue) { + p_Window_Size_Efficient = newValue; + Q_EMIT Window_Size_EfficientChanged(); + } + }); + return; + } + if (key == QStringLiteral("Window_Size_Fashion")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_Window_Size_Fashion != newValue) { + p_Window_Size_Fashion = newValue; + Q_EMIT Window_Size_FashionChanged(); + } + }); + 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; + double p_Delay_Plugins_Time { 0 }; + QString p_Display_Mode { QStringLiteral("fashion") }; + QList p_Dock_Quick_Plugins { QList{QVariant(QStringLiteral("power")), QVariant(QStringLiteral("network")), QVariant(QStringLiteral("shutdown")), QVariant(QStringLiteral("show-desktop")), QVariant(QStringLiteral("multitasking")), QVariant(QStringLiteral("notification")), QVariant(QStringLiteral("uosai"))} }; + QList p_Dock_Quick_Tray_Name { QList{QVariant(QStringLiteral("fcitx")), QVariant(QStringLiteral("indicator:keybord_layout"))} }; + double p_Dock_Show_Window_name { 0 }; + QList p_Docked_Apps { QList{QVariant(QStringLiteral("/usr/share/applications/dde-file-manager")), QVariant(QStringLiteral("/usr/share/applications/uos-browser")), QVariant(QStringLiteral("/usr/share/applications/org.deepin.browser")), QVariant(QStringLiteral("/usr/share/applications/deepin-appstore")), QVariant(QStringLiteral("/usr/share/applications/deepin-app-store")), QVariant(QStringLiteral("/usr/share/applications/com.deepin.store.intranet")), QVariant(QStringLiteral("/usr/share/applications/deepin-album")), QVariant(QStringLiteral("/usr/share/applications/deepin-music")), QVariant(QStringLiteral("/usr/share/applications/deepin-contacts")), QVariant(QStringLiteral("/usr/share/applications/dde-calendar")), QVariant(QStringLiteral("/usr/share/applications/dde-control-center"))} }; + QString p_Force_Quit_App { QStringLiteral("enabled") }; + QString p_Hide_Mode { QStringLiteral("keep-showing") }; + double p_Hide_Timeout { 0 }; + double p_Icon_Size { 36 }; + QString p_Plugin_Settings { QStringLiteral("{}") }; + QString p_Position { QStringLiteral("bottom") }; + QList p_Recent_App { QList{} }; + bool p_Show_MultiWindow { false }; + bool p_Show_Recent { false }; + double p_Show_Timeout { 100 }; + QList p_Win_Icon_Preferred_Apps { QList{QVariant(QStringLiteral("apps.com.qq.im")), QVariant(QStringLiteral("deepin.com.qq.im")), QVariant(QStringLiteral("apps.com.qq.im.light")), QVariant(QStringLiteral("apps.com.qq.b.eim")), QVariant(QStringLiteral("apps.com.qq.rtxclient"))} }; + double p_Window_Size_Efficient { 40 }; + double p_Window_Size_Fashion { 48 }; + QAtomicInteger m_propertySetStatus0 = 0; +}; + +#endif // COM_DEEPIN_DDE_DOCK_H diff --git a/toolGenerate/dconfig2cpp/org_deepin_dde_dock_power.hpp b/toolGenerate/dconfig2cpp/org_deepin_dde_dock_power.hpp new file mode 100644 index 000000000..ac3feaad5 --- /dev/null +++ b/toolGenerate/dconfig2cpp/org_deepin_dde_dock_power.hpp @@ -0,0 +1,282 @@ +/** + * This file is generated by dconfig2cpp. + * Command line arguments: ./dconfig2cpp -p ./dde-dock/toolGenerate/dconfig2cpp ./dde-dock/configs/org.deepin.dde.dock.power.json + * Generation time: 2025-01-13T17:45:34 + * 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_DOCK_POWER_H +#define ORG_DEEPIN_DDE_DOCK_POWER_H + +#include +#include +#include +#include +#include +#include + +class org_deepin_dde_dock_power : public QObject { + Q_OBJECT + + Q_PROPERTY(bool control READ control WRITE setControl NOTIFY controlChanged) + Q_PROPERTY(bool enable READ enable WRITE setEnable NOTIFY enableChanged) + Q_PROPERTY(bool menu-enable READ menu-enable WRITE setMenu-enable NOTIFY menu-enableChanged) + Q_PROPERTY(bool showtimetofull READ showtimetofull WRITE setShowtimetofull NOTIFY showtimetofullChanged) +public: + explicit org_deepin_dde_dock_power(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_dock_power(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_dock_power(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_dock_power(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_dock_power() { + if (m_config.loadRelaxed()) { + m_config.loadRelaxed()->deleteLater(); + } + } + + bool control() const { + return p_control; + } + void setControl(const bool &value) { + auto oldValue = p_control; + p_control = value; + markPropertySet(0); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("control"), value); + }); + } + if (p_control != oldValue) { + Q_EMIT controlChanged(); + } + } + bool enable() const { + return p_enable; + } + void setEnable(const bool &value) { + auto oldValue = p_enable; + p_enable = value; + markPropertySet(1); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("enable"), value); + }); + } + if (p_enable != oldValue) { + Q_EMIT enableChanged(); + } + } + bool menu-enable() const { + return p_menu-enable; + } + void setMenu-enable(const bool &value) { + auto oldValue = p_menu-enable; + p_menu-enable = value; + markPropertySet(2); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("menu-enable"), value); + }); + } + if (p_menu-enable != oldValue) { + Q_EMIT menu-enableChanged(); + } + } + bool showtimetofull() const { + return p_showtimetofull; + } + void setShowtimetofull(const bool &value) { + auto oldValue = p_showtimetofull; + p_showtimetofull = value; + markPropertySet(3); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("showtimetofull"), value); + }); + } + if (p_showtimetofull != oldValue) { + Q_EMIT showtimetofullChanged(); + } + } +Q_SIGNALS: + void controlChanged(); + void enableChanged(); + void menu-enableChanged(); + void showtimetofullChanged(); +private: + void initialize(DTK_CORE_NAMESPACE::DConfig *config) { + Q_ASSERT(!m_config.loadRelaxed()); + m_config.storeRelaxed(config); + if (testPropertySet(0)) { + config->setValue(QStringLiteral("control"), QVariant::fromValue(p_control)); + } else { + updateValue(QStringLiteral("control"), QVariant::fromValue(p_control)); + } + if (testPropertySet(1)) { + config->setValue(QStringLiteral("enable"), QVariant::fromValue(p_enable)); + } else { + updateValue(QStringLiteral("enable"), QVariant::fromValue(p_enable)); + } + if (testPropertySet(2)) { + config->setValue(QStringLiteral("menu-enable"), QVariant::fromValue(p_menu-enable)); + } else { + updateValue(QStringLiteral("menu-enable"), QVariant::fromValue(p_menu-enable)); + } + if (testPropertySet(3)) { + config->setValue(QStringLiteral("showtimetofull"), QVariant::fromValue(p_showtimetofull)); + } else { + updateValue(QStringLiteral("showtimetofull"), QVariant::fromValue(p_showtimetofull)); + } + + 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("control")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_control != newValue) { + p_control = newValue; + Q_EMIT controlChanged(); + } + }); + return; + } + if (key == QStringLiteral("enable")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_enable != newValue) { + p_enable = newValue; + Q_EMIT enableChanged(); + } + }); + return; + } + if (key == QStringLiteral("menu-enable")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_menu-enable != newValue) { + p_menu-enable = newValue; + Q_EMIT menu-enableChanged(); + } + }); + return; + } + if (key == QStringLiteral("showtimetofull")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_showtimetofull != newValue) { + p_showtimetofull = newValue; + Q_EMIT showtimetofullChanged(); + } + }); + 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_control { false }; + bool p_enable { true }; + bool p_menu-enable { true }; + bool p_showtimetofull { true }; + QAtomicInteger m_propertySetStatus0 = 0; +}; + +#endif // ORG_DEEPIN_DDE_DOCK_POWER_H diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.cpp new file mode 100644 index 000000000..227e9ffaa --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.cpp @@ -0,0 +1,19 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/gschema/com.deepin.dde.dock.module.gschema.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschema.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-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.h new file mode 100644 index 000000000..10f8362b3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor.h @@ -0,0 +1,27 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/gschema/com.deepin.dde.dock.module.gschema.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschemaAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschema.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_DDE_DOCK_MODULE_GSCHEMAADAPTOR_H +#define COM_DEEPIN_DDE_DOCK_MODULE_GSCHEMAADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschema.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp new file mode 100644 index 000000000..0e7e18dc3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp @@ -0,0 +1,365 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/com.deepin.wm.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-dock/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-dock/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::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; +} + +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; +} + +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::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"); +} + +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 000000000..64dfac64e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h @@ -0,0 +1,289 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/com.deepin.wm.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-dock/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-dock/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" +" \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 EnableZoneDetected(bool enabled); + QStringList GetAccel(const QString &id); + QString GetAllAccels(); + int GetCurrentWorkspace(); + QString GetCurrentWorkspaceBackground(); + QString GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName); + QStringList GetDefaultAccel(const QString &id); + bool GetIsShowDesktop(); + bool GetMultiTaskingStatus(); + 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 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(); + int WorkspaceCount(); +Q_SIGNALS: // SIGNALS + void BeginToMoveActiveWindowChanged(); + void ResumeCompositorChanged(int reason); + void ShowAllWindowChanged(); + void ShowWindowChanged(); + void ShowWorkspaceChanged(); + void SuspendCompositorChanged(int reason); + void SwitchApplicationChanged(bool backward); + void TileActiveWindowChanged(int side); + void ToggleActiveWindowMaximizeChanged(); + 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/org.deepin.dde.AirplaneMode1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.cpp new file mode 100644 index 000000000..b2d120cbd --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.cpp @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/airplane-mode/dbusinterface/xml/org.deepin.dde.AirplaneMode1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class AirplaneMode1Adaptor + */ + +AirplaneMode1Adaptor::AirplaneMode1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +AirplaneMode1Adaptor::~AirplaneMode1Adaptor() +{ + // destructor +} + +bool AirplaneMode1Adaptor::bluetoothEnabled() const +{ + // get the value of property BluetoothEnabled + return qvariant_cast< bool >(parent()->property("BluetoothEnabled")); +} + +bool AirplaneMode1Adaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +bool AirplaneMode1Adaptor::wifiEnabled() const +{ + // get the value of property WifiEnabled + return qvariant_cast< bool >(parent()->property("WifiEnabled")); +} + +void AirplaneMode1Adaptor::DumpState() +{ + // handle method call org.deepin.dde.AirplaneMode1.DumpState + QMetaObject::invokeMethod(parent(), "DumpState"); +} + +void AirplaneMode1Adaptor::Enable(bool enabled) +{ + // handle method call org.deepin.dde.AirplaneMode1.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, enabled)); +} + +void AirplaneMode1Adaptor::EnableBluetooth(bool enabled) +{ + // handle method call org.deepin.dde.AirplaneMode1.EnableBluetooth + QMetaObject::invokeMethod(parent(), "EnableBluetooth", Q_ARG(bool, enabled)); +} + +void AirplaneMode1Adaptor::EnableWifi(bool enabled) +{ + // handle method call org.deepin.dde.AirplaneMode1.EnableWifi + QMetaObject::invokeMethod(parent(), "EnableWifi", Q_ARG(bool, enabled)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h new file mode 100644 index 000000000..dde384aa5 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h @@ -0,0 +1,73 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/airplane-mode/dbusinterface/xml/org.deepin.dde.AirplaneMode1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.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_AIRPLANEMODE1ADAPTOR_H +#define ORG_DEEPIN_DDE_AIRPLANEMODE1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.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.AirplaneMode1 + */ +class AirplaneMode1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.AirplaneMode1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + AirplaneMode1Adaptor(QObject *parent); + virtual ~AirplaneMode1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool BluetoothEnabled READ bluetoothEnabled) + bool bluetoothEnabled() const; + + Q_PROPERTY(bool Enabled READ enabled) + bool enabled() const; + + Q_PROPERTY(bool WifiEnabled READ wifiEnabled) + bool wifiEnabled() const; + +public Q_SLOTS: // METHODS + void DumpState(); + void Enable(bool enabled); + void EnableBluetooth(bool enabled); + void EnableWifi(bool enabled); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp new file mode 100644 index 000000000..058511d33 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp @@ -0,0 +1,143 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Appearance1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Appearance1Adaptor + */ + +Appearance1Adaptor::Appearance1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Appearance1Adaptor::~Appearance1Adaptor() +{ + // destructor +} + +QString Appearance1Adaptor::background() const +{ + // get the value of property Background + return qvariant_cast< QString >(parent()->property("Background")); +} + +QString Appearance1Adaptor::cursorTheme() const +{ + // get the value of property CursorTheme + return qvariant_cast< QString >(parent()->property("CursorTheme")); +} + +double Appearance1Adaptor::fontSize() const +{ + // get the value of property FontSize + return qvariant_cast< double >(parent()->property("FontSize")); +} + +void Appearance1Adaptor::setFontSize(double value) +{ + // set the value of property FontSize + parent()->setProperty("FontSize", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::globalTheme() const +{ + // get the value of property GlobalTheme + return qvariant_cast< QString >(parent()->property("GlobalTheme")); +} + +QString Appearance1Adaptor::gtkTheme() const +{ + // get the value of property GtkTheme + return qvariant_cast< QString >(parent()->property("GtkTheme")); +} + +QString Appearance1Adaptor::iconTheme() const +{ + // get the value of property IconTheme + return qvariant_cast< QString >(parent()->property("IconTheme")); +} + +QString Appearance1Adaptor::monospaceFont() const +{ + // get the value of property MonospaceFont + return qvariant_cast< QString >(parent()->property("MonospaceFont")); +} + +double Appearance1Adaptor::opacity() const +{ + // get the value of property Opacity + return qvariant_cast< double >(parent()->property("Opacity")); +} + +void Appearance1Adaptor::setOpacity(double value) +{ + // set the value of property Opacity + parent()->setProperty("Opacity", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::qtActiveColor() const +{ + // get the value of property QtActiveColor + return qvariant_cast< QString >(parent()->property("QtActiveColor")); +} + +void Appearance1Adaptor::setQtActiveColor(const QString &value) +{ + // set the value of property QtActiveColor + parent()->setProperty("QtActiveColor", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::standardFont() const +{ + // get the value of property StandardFont + return qvariant_cast< QString >(parent()->property("StandardFont")); +} + +QString Appearance1Adaptor::wallpaperSlideShow() const +{ + // get the value of property WallpaperSlideShow + return qvariant_cast< QString >(parent()->property("WallpaperSlideShow")); +} + +void Appearance1Adaptor::setWallpaperSlideShow(const QString &value) +{ + // set the value of property WallpaperSlideShow + parent()->setProperty("WallpaperSlideShow", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::wallpaperURls() const +{ + // get the value of property WallpaperURls + return qvariant_cast< QString >(parent()->property("WallpaperURls")); +} + +int Appearance1Adaptor::windowRadius() const +{ + // get the value of property WindowRadius + return qvariant_cast< int >(parent()->property("WindowRadius")); +} + +void Appearance1Adaptor::setWindowRadius(int value) +{ + // set the value of property WindowRadius + parent()->setProperty("WindowRadius", QVariant::fromValue(value)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h new file mode 100644 index 000000000..23bb45304 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h @@ -0,0 +1,113 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Appearance1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.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_APPEARANCE1ADAPTOR_H +#define ORG_DEEPIN_DDE_APPEARANCE1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.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.Appearance1 + */ +class Appearance1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Appearance1") + 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: + Appearance1Adaptor(QObject *parent); + virtual ~Appearance1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString Background READ background) + QString background() const; + + Q_PROPERTY(QString CursorTheme READ cursorTheme) + QString cursorTheme() const; + + Q_PROPERTY(double FontSize READ fontSize WRITE setFontSize) + double fontSize() const; + void setFontSize(double value); + + Q_PROPERTY(QString GlobalTheme READ globalTheme) + QString globalTheme() const; + + Q_PROPERTY(QString GtkTheme READ gtkTheme) + QString gtkTheme() const; + + Q_PROPERTY(QString IconTheme READ iconTheme) + QString iconTheme() const; + + Q_PROPERTY(QString MonospaceFont READ monospaceFont) + QString monospaceFont() const; + + Q_PROPERTY(double Opacity READ opacity WRITE setOpacity) + double opacity() const; + void setOpacity(double value); + + Q_PROPERTY(QString QtActiveColor READ qtActiveColor WRITE setQtActiveColor) + QString qtActiveColor() const; + void setQtActiveColor(const QString &value); + + Q_PROPERTY(QString StandardFont READ standardFont) + QString standardFont() const; + + Q_PROPERTY(QString WallpaperSlideShow READ wallpaperSlideShow WRITE setWallpaperSlideShow) + QString wallpaperSlideShow() const; + void setWallpaperSlideShow(const QString &value); + + Q_PROPERTY(QString WallpaperURls READ wallpaperURls) + QString wallpaperURls() const; + + Q_PROPERTY(int WindowRadius READ windowRadius WRITE setWindowRadius) + int windowRadius() const; + void setWindowRadius(int value); + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS + void Changed(const QString &ty, const QString &value); + void Refreshed(const QString &type); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp new file mode 100644 index 000000000..f4fd553a8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp @@ -0,0 +1,145 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.Sink.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SinkAdaptor + */ + +SinkAdaptor::SinkAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SinkAdaptor::~SinkAdaptor() +{ + // destructor +} + +AudioPort SinkAdaptor::activePort() const +{ + // get the value of property ActivePort + return qvariant_cast< AudioPort >(parent()->property("ActivePort")); +} + +double SinkAdaptor::balance() const +{ + // get the value of property Balance + return qvariant_cast< double >(parent()->property("Balance")); +} + +double SinkAdaptor::baseVolume() const +{ + // get the value of property BaseVolume + return qvariant_cast< double >(parent()->property("BaseVolume")); +} + +uint SinkAdaptor::card() const +{ + // get the value of property Card + return qvariant_cast< uint >(parent()->property("Card")); +} + +QString SinkAdaptor::description() const +{ + // get the value of property Description + return qvariant_cast< QString >(parent()->property("Description")); +} + +double SinkAdaptor::fade() const +{ + // get the value of property Fade + return qvariant_cast< double >(parent()->property("Fade")); +} + +bool SinkAdaptor::mute() const +{ + // get the value of property Mute + return qvariant_cast< bool >(parent()->property("Mute")); +} + +QString SinkAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +AudioPortList SinkAdaptor::ports() const +{ + // get the value of property Ports + return qvariant_cast< AudioPortList >(parent()->property("Ports")); +} + +bool SinkAdaptor::supportBalance() const +{ + // get the value of property SupportBalance + return qvariant_cast< bool >(parent()->property("SupportBalance")); +} + +bool SinkAdaptor::supportFade() const +{ + // get the value of property SupportFade + return qvariant_cast< bool >(parent()->property("SupportFade")); +} + +double SinkAdaptor::volume() const +{ + // get the value of property Volume + return qvariant_cast< double >(parent()->property("Volume")); +} + +QDBusObjectPath SinkAdaptor::GetMeter() +{ + // handle method call org.deepin.dde.Audio1.Sink.GetMeter + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetMeter", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +void SinkAdaptor::SetBalance(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetBalance + QMetaObject::invokeMethod(parent(), "SetBalance", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + +void SinkAdaptor::SetFade(double in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetFade + QMetaObject::invokeMethod(parent(), "SetFade", Q_ARG(double, in0)); +} + +void SinkAdaptor::SetMute(bool in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetMute + QMetaObject::invokeMethod(parent(), "SetMute", Q_ARG(bool, in0)); +} + +void SinkAdaptor::SetPort(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(QString, in0)); +} + +void SinkAdaptor::SetVolume(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetVolume + QMetaObject::invokeMethod(parent(), "SetVolume", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h new file mode 100644 index 000000000..47588f070 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h @@ -0,0 +1,125 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.Sink.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.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_AUDIO1_SINKADAPTOR_H +#define ORG_DEEPIN_DDE_AUDIO1_SINKADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.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.Audio1.Sink + */ +class SinkAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1.Sink") + 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" + "") +public: + SinkAdaptor(QObject *parent); + virtual ~SinkAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(AudioPort ActivePort READ activePort) + AudioPort activePort() const; + + Q_PROPERTY(double Balance READ balance) + double balance() const; + + Q_PROPERTY(double BaseVolume READ baseVolume) + double baseVolume() const; + + Q_PROPERTY(uint Card READ card) + uint card() const; + + Q_PROPERTY(QString Description READ description) + QString description() const; + + Q_PROPERTY(double Fade READ fade) + double fade() const; + + Q_PROPERTY(bool Mute READ mute) + bool mute() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(AudioPortList Ports READ ports) + AudioPortList ports() const; + + Q_PROPERTY(bool SupportBalance READ supportBalance) + bool supportBalance() const; + + Q_PROPERTY(bool SupportFade READ supportFade) + bool supportFade() const; + + Q_PROPERTY(double Volume READ volume) + double volume() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath GetMeter(); + void SetBalance(double in0, bool in1); + void SetFade(double in0); + void SetMute(bool in0); + void SetPort(const QString &in0); + void SetVolume(double in0, bool in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp new file mode 100644 index 000000000..e82f44199 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp @@ -0,0 +1,163 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Audio1Adaptor + */ + +Audio1Adaptor::Audio1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Audio1Adaptor::~Audio1Adaptor() +{ + // destructor +} + +QString Audio1Adaptor::bluetoothAudioMode() const +{ + // get the value of property BluetoothAudioMode + return qvariant_cast< QString >(parent()->property("BluetoothAudioMode")); +} + +QStringList Audio1Adaptor::bluetoothAudioModeOpts() const +{ + // get the value of property BluetoothAudioModeOpts + return qvariant_cast< QStringList >(parent()->property("BluetoothAudioModeOpts")); +} + +QString Audio1Adaptor::cards() const +{ + // get the value of property Cards + return qvariant_cast< QString >(parent()->property("Cards")); +} + +QString Audio1Adaptor::cardsWithoutUnavailable() const +{ + // get the value of property CardsWithoutUnavailable + return qvariant_cast< QString >(parent()->property("CardsWithoutUnavailable")); +} + +QDBusObjectPath Audio1Adaptor::defaultSink() const +{ + // get the value of property DefaultSink + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSink")); +} + +QDBusObjectPath Audio1Adaptor::defaultSource() const +{ + // get the value of property DefaultSource + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSource")); +} + +bool Audio1Adaptor::increaseVolume() const +{ + // get the value of property IncreaseVolume + return qvariant_cast< bool >(parent()->property("IncreaseVolume")); +} + +void Audio1Adaptor::setIncreaseVolume(bool value) +{ + // set the value of property IncreaseVolume + parent()->setProperty("IncreaseVolume", QVariant::fromValue(value)); +} + +double Audio1Adaptor::maxUIVolume() const +{ + // get the value of property MaxUIVolume + return qvariant_cast< double >(parent()->property("MaxUIVolume")); +} + +bool Audio1Adaptor::reduceNoise() const +{ + // get the value of property ReduceNoise + return qvariant_cast< bool >(parent()->property("ReduceNoise")); +} + +void Audio1Adaptor::setReduceNoise(bool value) +{ + // set the value of property ReduceNoise + parent()->setProperty("ReduceNoise", QVariant::fromValue(value)); +} + +QList Audio1Adaptor::sinkInputs() const +{ + // get the value of property SinkInputs + return qvariant_cast< QList >(parent()->property("SinkInputs")); +} + +QList Audio1Adaptor::sinks() const +{ + // get the value of property Sinks + return qvariant_cast< QList >(parent()->property("Sinks")); +} + +QList Audio1Adaptor::sources() const +{ + // get the value of property Sources + return qvariant_cast< QList >(parent()->property("Sources")); +} + +bool Audio1Adaptor::IsPortEnabled(uint in0, const QString &in1) +{ + // handle method call org.deepin.dde.Audio1.IsPortEnabled + bool out0; + QMetaObject::invokeMethod(parent(), "IsPortEnabled", Q_RETURN_ARG(bool, out0), Q_ARG(uint, in0), Q_ARG(QString, in1)); + return out0; +} + +void Audio1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Audio1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Audio1Adaptor::SetBluetoothAudioMode(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetBluetoothAudioMode + QMetaObject::invokeMethod(parent(), "SetBluetoothAudioMode", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetDefaultSink(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetDefaultSink + QMetaObject::invokeMethod(parent(), "SetDefaultSink", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetDefaultSource(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetDefaultSource + QMetaObject::invokeMethod(parent(), "SetDefaultSource", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetPort(uint in0, const QString &in1, int in2) +{ + // handle method call org.deepin.dde.Audio1.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); +} + +void Audio1Adaptor::SetPortEnabled(uint in0, const QString &in1, bool in2) +{ + // handle method call org.deepin.dde.Audio1.SetPortEnabled + QMetaObject::invokeMethod(parent(), "SetPortEnabled", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(bool, in2)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h new file mode 100644 index 000000000..54c3f12d5 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h @@ -0,0 +1,137 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Audio1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.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_AUDIO1ADAPTOR_H +#define ORG_DEEPIN_DDE_AUDIO1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.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.Audio1 + */ +class Audio1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1") + 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" + "") +public: + Audio1Adaptor(QObject *parent); + virtual ~Audio1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString BluetoothAudioMode READ bluetoothAudioMode) + QString bluetoothAudioMode() const; + + Q_PROPERTY(QStringList BluetoothAudioModeOpts READ bluetoothAudioModeOpts) + QStringList bluetoothAudioModeOpts() const; + + Q_PROPERTY(QString Cards READ cards) + QString cards() const; + + Q_PROPERTY(QString CardsWithoutUnavailable READ cardsWithoutUnavailable) + QString cardsWithoutUnavailable() const; + + Q_PROPERTY(QDBusObjectPath DefaultSink READ defaultSink) + QDBusObjectPath defaultSink() const; + + Q_PROPERTY(QDBusObjectPath DefaultSource READ defaultSource) + QDBusObjectPath defaultSource() const; + + Q_PROPERTY(bool IncreaseVolume READ increaseVolume WRITE setIncreaseVolume) + bool increaseVolume() const; + void setIncreaseVolume(bool value); + + Q_PROPERTY(double MaxUIVolume READ maxUIVolume) + double maxUIVolume() const; + + Q_PROPERTY(bool ReduceNoise READ reduceNoise WRITE setReduceNoise) + bool reduceNoise() const; + void setReduceNoise(bool value); + + Q_PROPERTY(QList SinkInputs READ sinkInputs) + QList sinkInputs() const; + + Q_PROPERTY(QList Sinks READ sinks) + QList sinks() const; + + Q_PROPERTY(QList Sources READ sources) + QList sources() const; + +public Q_SLOTS: // METHODS + bool IsPortEnabled(uint in0, const QString &in1); + void Reset(); + void SetBluetoothAudioMode(const QString &in0); + void SetDefaultSink(const QString &in0); + void SetDefaultSource(const QString &in0); + void SetPort(uint in0, const QString &in1, int in2); + void SetPortEnabled(uint in0, const QString &in1, bool in2); +Q_SIGNALS: // SIGNALS + void PortEnabledChanged(uint in0, const QString &in1, bool in2); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp new file mode 100644 index 000000000..cc5d4a18b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp @@ -0,0 +1,193 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/bluetooth/dbusinterface/xml/org.deepin.dde.Bluetooth1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Bluetooth1Adaptor + */ + +Bluetooth1Adaptor::Bluetooth1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Bluetooth1Adaptor::~Bluetooth1Adaptor() +{ + // destructor +} + +bool Bluetooth1Adaptor::canSendFile() const +{ + // get the value of property CanSendFile + return qvariant_cast< bool >(parent()->property("CanSendFile")); +} + +bool Bluetooth1Adaptor::displaySwitch() const +{ + // get the value of property DisplaySwitch + return qvariant_cast< bool >(parent()->property("DisplaySwitch")); +} + +void Bluetooth1Adaptor::setDisplaySwitch(bool value) +{ + // set the value of property DisplaySwitch + parent()->setProperty("DisplaySwitch", QVariant::fromValue(value)); +} + +uint Bluetooth1Adaptor::state() const +{ + // get the value of property State + return qvariant_cast< uint >(parent()->property("State")); +} + +bool Bluetooth1Adaptor::transportable() const +{ + // get the value of property Transportable + return qvariant_cast< bool >(parent()->property("Transportable")); +} + +void Bluetooth1Adaptor::CancelTransferSession(const QDBusObjectPath &sessionPath) +{ + // handle method call org.deepin.dde.Bluetooth1.CancelTransferSession + QMetaObject::invokeMethod(parent(), "CancelTransferSession", Q_ARG(QDBusObjectPath, sessionPath)); +} + +void Bluetooth1Adaptor::ClearUnpairedDevice() +{ + // handle method call org.deepin.dde.Bluetooth1.ClearUnpairedDevice + QMetaObject::invokeMethod(parent(), "ClearUnpairedDevice"); +} + +void Bluetooth1Adaptor::Confirm(const QDBusObjectPath &device, bool accept) +{ + // handle method call org.deepin.dde.Bluetooth1.Confirm + QMetaObject::invokeMethod(parent(), "Confirm", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept)); +} + +void Bluetooth1Adaptor::ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.ConnectDevice + QMetaObject::invokeMethod(parent(), "ConnectDevice", Q_ARG(QDBusObjectPath, device), Q_ARG(QDBusObjectPath, adapter)); +} + +QString Bluetooth1Adaptor::DebugInfo() +{ + // handle method call org.deepin.dde.Bluetooth1.DebugInfo + QString info; + QMetaObject::invokeMethod(parent(), "DebugInfo", Q_RETURN_ARG(QString, info)); + return info; +} + +void Bluetooth1Adaptor::DisconnectDevice(const QDBusObjectPath &device) +{ + // handle method call org.deepin.dde.Bluetooth1.DisconnectDevice + QMetaObject::invokeMethod(parent(), "DisconnectDevice", Q_ARG(QDBusObjectPath, device)); +} + +void Bluetooth1Adaptor::FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey) +{ + // handle method call org.deepin.dde.Bluetooth1.FeedPasskey + QMetaObject::invokeMethod(parent(), "FeedPasskey", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(uint, passkey)); +} + +void Bluetooth1Adaptor::FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode) +{ + // handle method call org.deepin.dde.Bluetooth1.FeedPinCode + QMetaObject::invokeMethod(parent(), "FeedPinCode", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(QString, pinCode)); +} + +QString Bluetooth1Adaptor::GetAdapters() +{ + // handle method call org.deepin.dde.Bluetooth1.GetAdapters + QString adaptersJSON; + QMetaObject::invokeMethod(parent(), "GetAdapters", Q_RETURN_ARG(QString, adaptersJSON)); + return adaptersJSON; +} + +QString Bluetooth1Adaptor::GetDevices(const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.GetDevices + QString devicesJSON; + QMetaObject::invokeMethod(parent(), "GetDevices", Q_RETURN_ARG(QString, devicesJSON), Q_ARG(QDBusObjectPath, adapter)); + return devicesJSON; +} + +void Bluetooth1Adaptor::RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device) +{ + // handle method call org.deepin.dde.Bluetooth1.RemoveDevice + QMetaObject::invokeMethod(parent(), "RemoveDevice", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QDBusObjectPath, device)); +} + +void Bluetooth1Adaptor::RequestDiscovery(const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.RequestDiscovery + QMetaObject::invokeMethod(parent(), "RequestDiscovery", Q_ARG(QDBusObjectPath, adapter)); +} + +QDBusObjectPath Bluetooth1Adaptor::SendFiles(const QString &device, const QStringList &files) +{ + // handle method call org.deepin.dde.Bluetooth1.SendFiles + QDBusObjectPath sessionPath; + QMetaObject::invokeMethod(parent(), "SendFiles", Q_RETURN_ARG(QDBusObjectPath, sessionPath), Q_ARG(QString, device), Q_ARG(QStringList, files)); + return sessionPath; +} + +void Bluetooth1Adaptor::SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterAlias + QMetaObject::invokeMethod(parent(), "SetAdapterAlias", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QString, alias)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverable + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverable", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discoverable)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverableTimeout + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverableTimeout", Q_ARG(QDBusObjectPath, adapter), Q_ARG(uint, timeout)); +} + +void Bluetooth1Adaptor::SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscovering + QMetaObject::invokeMethod(parent(), "SetAdapterDiscovering", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discovering)); +} + +void Bluetooth1Adaptor::SetAdapterPowered(const QDBusObjectPath &adapter, bool powered) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterPowered + QMetaObject::invokeMethod(parent(), "SetAdapterPowered", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, powered)); +} + +void Bluetooth1Adaptor::SetDeviceAlias(const QDBusObjectPath &device, const QString &alias) +{ + // handle method call org.deepin.dde.Bluetooth1.SetDeviceAlias + QMetaObject::invokeMethod(parent(), "SetDeviceAlias", Q_ARG(QDBusObjectPath, device), Q_ARG(QString, alias)); +} + +void Bluetooth1Adaptor::SetDeviceTrusted(const QDBusObjectPath &device, bool trusted) +{ + // handle method call org.deepin.dde.Bluetooth1.SetDeviceTrusted + QMetaObject::invokeMethod(parent(), "SetDeviceTrusted", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, trusted)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h new file mode 100644 index 000000000..fd3bc3063 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h @@ -0,0 +1,253 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/bluetooth/dbusinterface/xml/org.deepin.dde.Bluetooth1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.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_BLUETOOTH1ADAPTOR_H +#define ORG_DEEPIN_DDE_BLUETOOTH1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.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.Bluetooth1 + */ +class Bluetooth1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Bluetooth1") + 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" + "") +public: + Bluetooth1Adaptor(QObject *parent); + virtual ~Bluetooth1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CanSendFile READ canSendFile) + bool canSendFile() const; + + Q_PROPERTY(bool DisplaySwitch READ displaySwitch WRITE setDisplaySwitch) + bool displaySwitch() const; + void setDisplaySwitch(bool value); + + Q_PROPERTY(uint State READ state) + uint state() const; + + Q_PROPERTY(bool Transportable READ transportable) + bool transportable() const; + +public Q_SLOTS: // METHODS + void CancelTransferSession(const QDBusObjectPath &sessionPath); + void ClearUnpairedDevice(); + void Confirm(const QDBusObjectPath &device, bool accept); + void ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter); + QString DebugInfo(); + void DisconnectDevice(const QDBusObjectPath &device); + void FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey); + void FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode); + QString GetAdapters(); + QString GetDevices(const QDBusObjectPath &adapter); + void RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device); + void RequestDiscovery(const QDBusObjectPath &adapter); + QDBusObjectPath SendFiles(const QString &device, const QStringList &files); + void SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias); + void SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable); + void SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout); + void SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering); + void SetAdapterPowered(const QDBusObjectPath &adapter, bool powered); + void SetDeviceAlias(const QDBusObjectPath &device, const QString &alias); + void SetDeviceTrusted(const QDBusObjectPath &device, bool trusted); +Q_SIGNALS: // SIGNALS + void AdapterAdded(const QString &adapterJSON); + void AdapterPropertiesChanged(const QString &adapterJSON); + void AdapterRemoved(const QString &adapterJSON); + void Cancelled(const QDBusObjectPath &device); + void ConnectFailed(const QDBusObjectPath &device); + void DeviceAdded(const QString &devJSON); + void DevicePropertiesChanged(const QString &devJSON); + void DeviceRemoved(const QString &devJSON); + void DisplayPasskey(const QDBusObjectPath &device, uint passkey, uint entered); + void DisplayPinCode(const QDBusObjectPath &device, const QString &pinCode); + void ObexSessionCreated(const QDBusObjectPath &sessionPath); + void ObexSessionProgress(const QDBusObjectPath &sessionPath, qulonglong totalSize, qulonglong transferred, int currentIdx); + void ObexSessionRemoved(const QDBusObjectPath &sessionPath); + void RequestAuthorization(const QDBusObjectPath &device); + void RequestConfirmation(const QDBusObjectPath &device, const QString &passkey); + void RequestPasskey(const QDBusObjectPath &device); + void RequestPinCode(const QDBusObjectPath &device); + void TransferCreated(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath); + void TransferFailed(const QString &file, const QDBusObjectPath &sessionPath, const QString &errInfo); + void TransferRemoved(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath, bool done); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp new file mode 100644 index 000000000..62f0fe5ae --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp @@ -0,0 +1,251 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Display1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.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 +} + +BrightnessMap Display1Adaptor::brightness() const +{ + // get the value of property Brightness + return qvariant_cast< BrightnessMap >(parent()->property("Brightness")); +} + +int Display1Adaptor::colorTemperatureManual() const +{ + // get the value of property ColorTemperatureManual + return qvariant_cast< int >(parent()->property("ColorTemperatureManual")); +} + +int Display1Adaptor::colorTemperatureMode() const +{ + // get the value of property ColorTemperatureMode + return qvariant_cast< int >(parent()->property("ColorTemperatureMode")); +} + +QString Display1Adaptor::currentCustomId() const +{ + // get the value of property CurrentCustomId + return qvariant_cast< QString >(parent()->property("CurrentCustomId")); +} + +QStringList Display1Adaptor::customIdList() const +{ + // get the value of property CustomIdList + return qvariant_cast< QStringList >(parent()->property("CustomIdList")); +} + +uchar Display1Adaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< uchar >(parent()->property("DisplayMode")); +} + +bool Display1Adaptor::hasChanged() const +{ + // get the value of property HasChanged + return qvariant_cast< bool >(parent()->property("HasChanged")); +} + +uint Display1Adaptor::maxBacklightBrightness() const +{ + // get the value of property MaxBacklightBrightness + return qvariant_cast< uint >(parent()->property("MaxBacklightBrightness")); +} + +QList Display1Adaptor::monitors() const +{ + // get the value of property Monitors + return qvariant_cast< QList >(parent()->property("Monitors")); +} + +QString Display1Adaptor::primary() const +{ + // get the value of property Primary + return qvariant_cast< QString >(parent()->property("Primary")); +} + +ScreenRect Display1Adaptor::primaryRect() const +{ + // get the value of property PrimaryRect + return qvariant_cast< ScreenRect >(parent()->property("PrimaryRect")); +} + +ushort Display1Adaptor::screenHeight() const +{ + // get the value of property ScreenHeight + return qvariant_cast< ushort >(parent()->property("ScreenHeight")); +} + +ushort Display1Adaptor::screenWidth() const +{ + // get the value of property ScreenWidth + return qvariant_cast< ushort >(parent()->property("ScreenWidth")); +} + +TouchscreenMap Display1Adaptor::touchMap() const +{ + // get the value of property TouchMap + return qvariant_cast< TouchscreenMap >(parent()->property("TouchMap")); +} + +TouchscreenInfoList Display1Adaptor::touchscreens() const +{ + // get the value of property Touchscreens + return qvariant_cast< TouchscreenInfoList >(parent()->property("Touchscreens")); +} + +TouchscreenInfoList_V2 Display1Adaptor::touchscreensV2() const +{ + // get the value of property TouchscreensV2 + return qvariant_cast< TouchscreenInfoList_V2 >(parent()->property("TouchscreensV2")); +} + +void Display1Adaptor::ApplyChanges() +{ + // handle method call org.deepin.dde.Display1.ApplyChanges + QMetaObject::invokeMethod(parent(), "ApplyChanges"); +} + +void Display1Adaptor::AssociateTouch(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.AssociateTouch + QMetaObject::invokeMethod(parent(), "AssociateTouch", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::AssociateTouchByUUID(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.AssociateTouchByUUID + QMetaObject::invokeMethod(parent(), "AssociateTouchByUUID", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::ChangeBrightness(bool in0) +{ + // handle method call org.deepin.dde.Display1.ChangeBrightness + QMetaObject::invokeMethod(parent(), "ChangeBrightness", Q_ARG(bool, in0)); +} + +void Display1Adaptor::DeleteCustomMode(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.DeleteCustomMode + QMetaObject::invokeMethod(parent(), "DeleteCustomMode", Q_ARG(QString, in0)); +} + +uchar Display1Adaptor::GetRealDisplayMode() +{ + // handle method call org.deepin.dde.Display1.GetRealDisplayMode + uchar out0; + QMetaObject::invokeMethod(parent(), "GetRealDisplayMode", Q_RETURN_ARG(uchar, out0)); + return out0; +} + +QStringList Display1Adaptor::ListOutputNames() +{ + // handle method call org.deepin.dde.Display1.ListOutputNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListOutputNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +ResolutionList Display1Adaptor::ListOutputsCommonModes() +{ + // handle method call org.deepin.dde.Display1.ListOutputsCommonModes + ResolutionList out0; + QMetaObject::invokeMethod(parent(), "ListOutputsCommonModes", Q_RETURN_ARG(ResolutionList, out0)); + return out0; +} + +void Display1Adaptor::ModifyConfigName(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.ModifyConfigName + QMetaObject::invokeMethod(parent(), "ModifyConfigName", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::RefreshBrightness() +{ + // handle method call org.deepin.dde.Display1.RefreshBrightness + QMetaObject::invokeMethod(parent(), "RefreshBrightness"); +} + +void Display1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Display1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Display1Adaptor::ResetChanges() +{ + // handle method call org.deepin.dde.Display1.ResetChanges + QMetaObject::invokeMethod(parent(), "ResetChanges"); +} + +void Display1Adaptor::Save() +{ + // handle method call org.deepin.dde.Display1.Save + QMetaObject::invokeMethod(parent(), "Save"); +} + +void Display1Adaptor::SetAndSaveBrightness(const QString &in0, double in1) +{ + // handle method call org.deepin.dde.Display1.SetAndSaveBrightness + QMetaObject::invokeMethod(parent(), "SetAndSaveBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void Display1Adaptor::SetBrightness(const QString &in0, double in1) +{ + // handle method call org.deepin.dde.Display1.SetBrightness + QMetaObject::invokeMethod(parent(), "SetBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void Display1Adaptor::SetColorTemperature(int in0) +{ + // handle method call org.deepin.dde.Display1.SetColorTemperature + QMetaObject::invokeMethod(parent(), "SetColorTemperature", Q_ARG(int, in0)); +} + +void Display1Adaptor::SetMethodAdjustCCT(int in0) +{ + // handle method call org.deepin.dde.Display1.SetMethodAdjustCCT + QMetaObject::invokeMethod(parent(), "SetMethodAdjustCCT", Q_ARG(int, in0)); +} + +void Display1Adaptor::SetPrimary(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.SetPrimary + QMetaObject::invokeMethod(parent(), "SetPrimary", Q_ARG(QString, in0)); +} + +void Display1Adaptor::SwitchMode(uchar in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.SwitchMode + QMetaObject::invokeMethod(parent(), "SwitchMode", Q_ARG(uchar, in0), Q_ARG(QString, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h new file mode 100644 index 000000000..dbc602ab8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h @@ -0,0 +1,194 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Display1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.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_DISPLAY1ADAPTOR_H +#define ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.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" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \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: + Display1Adaptor(QObject *parent); + virtual ~Display1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(BrightnessMap Brightness READ brightness) + BrightnessMap brightness() const; + + Q_PROPERTY(int ColorTemperatureManual READ colorTemperatureManual) + int colorTemperatureManual() const; + + Q_PROPERTY(int ColorTemperatureMode READ colorTemperatureMode) + int colorTemperatureMode() const; + + Q_PROPERTY(QString CurrentCustomId READ currentCustomId) + QString currentCustomId() const; + + Q_PROPERTY(QStringList CustomIdList READ customIdList) + QStringList customIdList() const; + + Q_PROPERTY(uchar DisplayMode READ displayMode) + uchar displayMode() const; + + Q_PROPERTY(bool HasChanged READ hasChanged) + bool hasChanged() const; + + Q_PROPERTY(uint MaxBacklightBrightness READ maxBacklightBrightness) + uint maxBacklightBrightness() const; + + Q_PROPERTY(QList Monitors READ monitors) + QList monitors() const; + + Q_PROPERTY(QString Primary READ primary) + QString primary() const; + + Q_PROPERTY(ScreenRect PrimaryRect READ primaryRect) + ScreenRect primaryRect() const; + + Q_PROPERTY(ushort ScreenHeight READ screenHeight) + ushort screenHeight() const; + + Q_PROPERTY(ushort ScreenWidth READ screenWidth) + ushort screenWidth() const; + + Q_PROPERTY(TouchscreenMap TouchMap READ touchMap) + TouchscreenMap touchMap() const; + + Q_PROPERTY(TouchscreenInfoList Touchscreens READ touchscreens) + TouchscreenInfoList touchscreens() const; + + Q_PROPERTY(TouchscreenInfoList_V2 TouchscreensV2 READ touchscreensV2) + TouchscreenInfoList_V2 touchscreensV2() const; + +public Q_SLOTS: // METHODS + void ApplyChanges(); + void AssociateTouch(const QString &in0, const QString &in1); + void AssociateTouchByUUID(const QString &in0, const QString &in1); + void ChangeBrightness(bool in0); + void DeleteCustomMode(const QString &in0); + uchar GetRealDisplayMode(); + QStringList ListOutputNames(); + ResolutionList ListOutputsCommonModes(); + void ModifyConfigName(const QString &in0, const QString &in1); + void RefreshBrightness(); + void Reset(); + void ResetChanges(); + void Save(); + void SetAndSaveBrightness(const QString &in0, double in1); + void SetBrightness(const QString &in0, double in1); + void SetColorTemperature(int in0); + void SetMethodAdjustCCT(int in0); + void SetPrimary(const QString &in0); + void SwitchMode(uchar in0, const QString &in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp new file mode 100644 index 000000000..ceec33ba2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp @@ -0,0 +1,35 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Gesture1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Gesture1Adaptor + */ + +Gesture1Adaptor::Gesture1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Gesture1Adaptor::~Gesture1Adaptor() +{ + // destructor +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h new file mode 100644 index 000000000..8eda89d2d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Gesture1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.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_GESTURE1ADAPTOR_H +#define ORG_DEEPIN_DDE_GESTURE1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.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.Gesture1 + */ +class Gesture1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Gesture1") + 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" + "") +public: + Gesture1Adaptor(QObject *parent); + virtual ~Gesture1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS + void TouchEdgeEvent(const QString &direction, double scalex, double scaley); + void TouchMoving(double scalex, double scaley); + void TouchPressTimeout(int fingers, int time, double scalex, double scaley); + void TouchSinglePressTimeout(int time, double scalex, double scaley); + void TouchUpOrCancel(double scalex, double scaley); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp new file mode 100644 index 000000000..91f8e3608 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp @@ -0,0 +1,183 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/keyboard-layout/dbusinterface/xml/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class KeyboardAdaptor + */ + +KeyboardAdaptor::KeyboardAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +KeyboardAdaptor::~KeyboardAdaptor() +{ + // destructor +} + +bool KeyboardAdaptor::capslockToggle() const +{ + // get the value of property CapslockToggle + return qvariant_cast< bool >(parent()->property("CapslockToggle")); +} + +void KeyboardAdaptor::setCapslockToggle(bool value) +{ + // set the value of property CapslockToggle + parent()->setProperty("CapslockToggle", QVariant::fromValue(value)); +} + +QString KeyboardAdaptor::currentLayout() const +{ + // get the value of property CurrentLayout + return qvariant_cast< QString >(parent()->property("CurrentLayout")); +} + +void KeyboardAdaptor::setCurrentLayout(const QString &value) +{ + // set the value of property CurrentLayout + parent()->setProperty("CurrentLayout", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::cursorBlink() const +{ + // get the value of property CursorBlink + return qvariant_cast< int >(parent()->property("CursorBlink")); +} + +void KeyboardAdaptor::setCursorBlink(int value) +{ + // set the value of property CursorBlink + parent()->setProperty("CursorBlink", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::layoutScope() const +{ + // get the value of property LayoutScope + return qvariant_cast< int >(parent()->property("LayoutScope")); +} + +void KeyboardAdaptor::setLayoutScope(int value) +{ + // set the value of property LayoutScope + parent()->setProperty("LayoutScope", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatDelay() const +{ + // get the value of property RepeatDelay + return qvariant_cast< uint >(parent()->property("RepeatDelay")); +} + +void KeyboardAdaptor::setRepeatDelay(uint value) +{ + // set the value of property RepeatDelay + parent()->setProperty("RepeatDelay", QVariant::fromValue(value)); +} + +bool KeyboardAdaptor::repeatEnabled() const +{ + // get the value of property RepeatEnabled + return qvariant_cast< bool >(parent()->property("RepeatEnabled")); +} + +void KeyboardAdaptor::setRepeatEnabled(bool value) +{ + // set the value of property RepeatEnabled + parent()->setProperty("RepeatEnabled", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatInterval() const +{ + // get the value of property RepeatInterval + return qvariant_cast< uint >(parent()->property("RepeatInterval")); +} + +void KeyboardAdaptor::setRepeatInterval(uint value) +{ + // set the value of property RepeatInterval + parent()->setProperty("RepeatInterval", QVariant::fromValue(value)); +} + +QStringList KeyboardAdaptor::userLayoutList() const +{ + // get the value of property UserLayoutList + return qvariant_cast< QStringList >(parent()->property("UserLayoutList")); +} + +QStringList KeyboardAdaptor::userOptionList() const +{ + // get the value of property UserOptionList + return qvariant_cast< QStringList >(parent()->property("UserOptionList")); +} + +void KeyboardAdaptor::AddLayoutOption(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.AddLayoutOption + QMetaObject::invokeMethod(parent(), "AddLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::AddUserLayout(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.AddUserLayout + QMetaObject::invokeMethod(parent(), "AddUserLayout", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::ClearLayoutOption() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.ClearLayoutOption + QMetaObject::invokeMethod(parent(), "ClearLayoutOption"); +} + +void KeyboardAdaptor::DeleteLayoutOption(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteLayoutOption + QMetaObject::invokeMethod(parent(), "DeleteLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::DeleteUserLayout(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteUserLayout + QMetaObject::invokeMethod(parent(), "DeleteUserLayout", Q_ARG(QString, in0)); +} + +QString KeyboardAdaptor::GetLayoutDesc(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.GetLayoutDesc + QString out0; + QMetaObject::invokeMethod(parent(), "GetLayoutDesc", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +KeyboardLayoutList KeyboardAdaptor::LayoutList() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.LayoutList + KeyboardLayoutList out0; + QMetaObject::invokeMethod(parent(), "LayoutList", Q_RETURN_ARG(KeyboardLayoutList, out0)); + return out0; +} + +void KeyboardAdaptor::Reset() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h new file mode 100644 index 000000000..6d9fd4734 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h @@ -0,0 +1,120 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/keyboard-layout/dbusinterface/xml/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.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_INPUTDEVICE1_KEYBOARDADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICE1_KEYBOARDADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.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.InputDevice1.Keyboard + */ +class KeyboardAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.Keyboard") + 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" + "") +public: + KeyboardAdaptor(QObject *parent); + virtual ~KeyboardAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CapslockToggle READ capslockToggle WRITE setCapslockToggle) + bool capslockToggle() const; + void setCapslockToggle(bool value); + + Q_PROPERTY(QString CurrentLayout READ currentLayout WRITE setCurrentLayout) + QString currentLayout() const; + void setCurrentLayout(const QString &value); + + Q_PROPERTY(int CursorBlink READ cursorBlink WRITE setCursorBlink) + int cursorBlink() const; + void setCursorBlink(int value); + + Q_PROPERTY(int LayoutScope READ layoutScope WRITE setLayoutScope) + int layoutScope() const; + void setLayoutScope(int value); + + Q_PROPERTY(uint RepeatDelay READ repeatDelay WRITE setRepeatDelay) + uint repeatDelay() const; + void setRepeatDelay(uint value); + + Q_PROPERTY(bool RepeatEnabled READ repeatEnabled WRITE setRepeatEnabled) + bool repeatEnabled() const; + void setRepeatEnabled(bool value); + + Q_PROPERTY(uint RepeatInterval READ repeatInterval WRITE setRepeatInterval) + uint repeatInterval() const; + void setRepeatInterval(uint value); + + Q_PROPERTY(QStringList UserLayoutList READ userLayoutList) + QStringList userLayoutList() const; + + Q_PROPERTY(QStringList UserOptionList READ userOptionList) + QStringList userOptionList() const; + +public Q_SLOTS: // METHODS + void AddLayoutOption(const QString &in0); + void AddUserLayout(const QString &in0); + void ClearLayoutOption(); + void DeleteLayoutOption(const QString &in0); + void DeleteUserLayout(const QString &in0); + QString GetLayoutDesc(const QString &in0); + KeyboardLayoutList LayoutList(); + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.cpp new file mode 100644 index 000000000..072e7f027 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.cpp @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Launcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Launcher1Adaptor + */ + +Launcher1Adaptor::Launcher1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Launcher1Adaptor::~Launcher1Adaptor() +{ + // destructor +} + +bool Launcher1Adaptor::visible() const +{ + // get the value of property Visible + return qvariant_cast< bool >(parent()->property("Visible")); +} + +void Launcher1Adaptor::Exit() +{ + // handle method call org.deepin.dde.Launcher1.Exit + QMetaObject::invokeMethod(parent(), "Exit"); +} + +void Launcher1Adaptor::Hide() +{ + // handle method call org.deepin.dde.Launcher1.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +bool Launcher1Adaptor::IsVisible() +{ + // handle method call org.deepin.dde.Launcher1.IsVisible + bool out0; + QMetaObject::invokeMethod(parent(), "IsVisible", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void Launcher1Adaptor::Show() +{ + // handle method call org.deepin.dde.Launcher1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void Launcher1Adaptor::ShowByMode(qlonglong in0) +{ + // handle method call org.deepin.dde.Launcher1.ShowByMode + QMetaObject::invokeMethod(parent(), "ShowByMode", Q_ARG(qlonglong, in0)); +} + +void Launcher1Adaptor::Toggle() +{ + // handle method call org.deepin.dde.Launcher1.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +void Launcher1Adaptor::UninstallApp(const QString &appKey) +{ + // handle method call org.deepin.dde.Launcher1.UninstallApp + QMetaObject::invokeMethod(parent(), "UninstallApp", Q_ARG(QString, appKey)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h new file mode 100644 index 000000000..3aea9f6f3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h @@ -0,0 +1,79 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Launcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.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_LAUNCHER1ADAPTOR_H +#define ORG_DEEPIN_DDE_LAUNCHER1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.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.Launcher1 + */ +class Launcher1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Launcher1") + 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" + "") +public: + Launcher1Adaptor(QObject *parent); + virtual ~Launcher1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Visible READ visible) + bool visible() const; + +public Q_SLOTS: // METHODS + void Exit(); + void Hide(); + bool IsVisible(); + void Show(); + void ShowByMode(qlonglong in0); + void Toggle(); + void UninstallApp(const QString &appKey); +Q_SIGNALS: // SIGNALS + void Closed(); + void Shown(); + void VisibleChanged(bool visible); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.cpp new file mode 100644 index 000000000..20a455e5e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.cpp @@ -0,0 +1,41 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/power/dbus/org.deepin.dde.Power1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.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 +} + +BatteryPercentageMap Power1Adaptor::batteryPercentage() const +{ + // get the value of property BatteryPercentage + return qvariant_cast< BatteryPercentageMap >(parent()->property("BatteryPercentage")); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h new file mode 100644 index 000000000..ede4b48a7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/plugins/power/dbus/org.deepin.dde.Power1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.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_POWER1ADAPTOR_H +#define ORG_DEEPIN_DDE_POWER1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.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" + "") +public: + Power1Adaptor(QObject *parent); + virtual ~Power1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(BatteryPercentageMap BatteryPercentage READ batteryPercentage) + BatteryPercentageMap batteryPercentage() const; + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor.cpp new file mode 100644 index 000000000..5d9bb02b9 --- /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-dock/plugins/power/dbusinterface/xml/org.deepin.dde.SystemPower1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor -i ./dde-dock/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-dock/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 000000000..49553e99a --- /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-dock/plugins/power/dbusinterface/xml/org.deepin.dde.SystemPower1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1Adaptor -i ./dde-dock/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-dock/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.deepin.dde.Timedate1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.cpp new file mode 100644 index 000000000..e8d90ec0e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.cpp @@ -0,0 +1,239 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Timedate1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Timedate1Adaptor + */ + +Timedate1Adaptor::Timedate1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Timedate1Adaptor::~Timedate1Adaptor() +{ + // destructor +} + +bool Timedate1Adaptor::canNTP() const +{ + // get the value of property CanNTP + return qvariant_cast< bool >(parent()->property("CanNTP")); +} + +int Timedate1Adaptor::dSTOffset() const +{ + // get the value of property DSTOffset + return qvariant_cast< int >(parent()->property("DSTOffset")); +} + +void Timedate1Adaptor::setDSTOffset(int value) +{ + // set the value of property DSTOffset + parent()->setProperty("DSTOffset", QVariant::fromValue(value)); +} + +bool Timedate1Adaptor::localRTC() const +{ + // get the value of property LocalRTC + return qvariant_cast< bool >(parent()->property("LocalRTC")); +} + +int Timedate1Adaptor::longDateFormat() const +{ + // get the value of property LongDateFormat + return qvariant_cast< int >(parent()->property("LongDateFormat")); +} + +void Timedate1Adaptor::setLongDateFormat(int value) +{ + // set the value of property LongDateFormat + parent()->setProperty("LongDateFormat", QVariant::fromValue(value)); +} + +int Timedate1Adaptor::longTimeFormat() const +{ + // get the value of property LongTimeFormat + return qvariant_cast< int >(parent()->property("LongTimeFormat")); +} + +void Timedate1Adaptor::setLongTimeFormat(int value) +{ + // set the value of property LongTimeFormat + parent()->setProperty("LongTimeFormat", QVariant::fromValue(value)); +} + +bool Timedate1Adaptor::nTP() const +{ + // get the value of property NTP + return qvariant_cast< bool >(parent()->property("NTP")); +} + +QString Timedate1Adaptor::nTPServer() const +{ + // get the value of property NTPServer + return qvariant_cast< QString >(parent()->property("NTPServer")); +} + +int Timedate1Adaptor::shortDateFormat() const +{ + // get the value of property ShortDateFormat + return qvariant_cast< int >(parent()->property("ShortDateFormat")); +} + +void Timedate1Adaptor::setShortDateFormat(int value) +{ + // set the value of property ShortDateFormat + parent()->setProperty("ShortDateFormat", QVariant::fromValue(value)); +} + +int Timedate1Adaptor::shortTimeFormat() const +{ + // get the value of property ShortTimeFormat + return qvariant_cast< int >(parent()->property("ShortTimeFormat")); +} + +void Timedate1Adaptor::setShortTimeFormat(int value) +{ + // set the value of property ShortTimeFormat + parent()->setProperty("ShortTimeFormat", QVariant::fromValue(value)); +} + +QString Timedate1Adaptor::timezone() const +{ + // get the value of property Timezone + return qvariant_cast< QString >(parent()->property("Timezone")); +} + +bool Timedate1Adaptor::use24HourFormat() const +{ + // get the value of property Use24HourFormat + return qvariant_cast< bool >(parent()->property("Use24HourFormat")); +} + +void Timedate1Adaptor::setUse24HourFormat(bool value) +{ + // set the value of property Use24HourFormat + parent()->setProperty("Use24HourFormat", QVariant::fromValue(value)); +} + +QStringList Timedate1Adaptor::userTimezones() const +{ + // get the value of property UserTimezones + return qvariant_cast< QStringList >(parent()->property("UserTimezones")); +} + +int Timedate1Adaptor::weekBegins() const +{ + // get the value of property WeekBegins + return qvariant_cast< int >(parent()->property("WeekBegins")); +} + +void Timedate1Adaptor::setWeekBegins(int value) +{ + // set the value of property WeekBegins + parent()->setProperty("WeekBegins", QVariant::fromValue(value)); +} + +int Timedate1Adaptor::weekdayFormat() const +{ + // get the value of property WeekdayFormat + return qvariant_cast< int >(parent()->property("WeekdayFormat")); +} + +void Timedate1Adaptor::setWeekdayFormat(int value) +{ + // set the value of property WeekdayFormat + parent()->setProperty("WeekdayFormat", QVariant::fromValue(value)); +} + +void Timedate1Adaptor::AddUserTimezone(const QString &in0) +{ + // handle method call org.deepin.dde.Timedate1.AddUserTimezone + QMetaObject::invokeMethod(parent(), "AddUserTimezone", Q_ARG(QString, in0)); +} + +void Timedate1Adaptor::DeleteUserTimezone(const QString &in0) +{ + // handle method call org.deepin.dde.Timedate1.DeleteUserTimezone + QMetaObject::invokeMethod(parent(), "DeleteUserTimezone", Q_ARG(QString, in0)); +} + +QStringList Timedate1Adaptor::GetSampleNTPServers() +{ + // handle method call org.deepin.dde.Timedate1.GetSampleNTPServers + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetSampleNTPServers", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +ZoneInfo Timedate1Adaptor::GetZoneInfo(const QString &in0) +{ + // handle method call org.deepin.dde.Timedate1.GetZoneInfo + ZoneInfo out0; + QMetaObject::invokeMethod(parent(), "GetZoneInfo", Q_RETURN_ARG(ZoneInfo, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList Timedate1Adaptor::GetZoneList() +{ + // handle method call org.deepin.dde.Timedate1.GetZoneList + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetZoneList", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +void Timedate1Adaptor::SetDate(int in0, int in1, int in2, int in3, int in4, int in5, int in6) +{ + // handle method call org.deepin.dde.Timedate1.SetDate + QMetaObject::invokeMethod(parent(), "SetDate", Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3), Q_ARG(int, in4), Q_ARG(int, in5), Q_ARG(int, in6)); +} + +void Timedate1Adaptor::SetLocalRTC(bool in0, bool in1) +{ + // handle method call org.deepin.dde.Timedate1.SetLocalRTC + QMetaObject::invokeMethod(parent(), "SetLocalRTC", Q_ARG(bool, in0), Q_ARG(bool, in1)); +} + +void Timedate1Adaptor::SetNTP(bool in0) +{ + // handle method call org.deepin.dde.Timedate1.SetNTP + QMetaObject::invokeMethod(parent(), "SetNTP", Q_ARG(bool, in0)); +} + +void Timedate1Adaptor::SetNTPServer(const QString &in0) +{ + // handle method call org.deepin.dde.Timedate1.SetNTPServer + QMetaObject::invokeMethod(parent(), "SetNTPServer", Q_ARG(QString, in0)); +} + +void Timedate1Adaptor::SetTime(qlonglong in0, bool in1) +{ + // handle method call org.deepin.dde.Timedate1.SetTime + QMetaObject::invokeMethod(parent(), "SetTime", Q_ARG(qlonglong, in0), Q_ARG(bool, in1)); +} + +void Timedate1Adaptor::SetTimezone(const QString &in0) +{ + // handle method call org.deepin.dde.Timedate1.SetTimezone + QMetaObject::invokeMethod(parent(), "SetTimezone", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h new file mode 100644 index 000000000..2059c6293 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h @@ -0,0 +1,167 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.Timedate1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.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_TIMEDATE1ADAPTOR_H +#define ORG_DEEPIN_DDE_TIMEDATE1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.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.Timedate1 + */ +class Timedate1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Timedate1") + 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" + "") +public: + Timedate1Adaptor(QObject *parent); + virtual ~Timedate1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CanNTP READ canNTP) + bool canNTP() const; + + Q_PROPERTY(int DSTOffset READ dSTOffset WRITE setDSTOffset) + int dSTOffset() const; + void setDSTOffset(int value); + + Q_PROPERTY(bool LocalRTC READ localRTC) + bool localRTC() const; + + Q_PROPERTY(int LongDateFormat READ longDateFormat WRITE setLongDateFormat) + int longDateFormat() const; + void setLongDateFormat(int value); + + Q_PROPERTY(int LongTimeFormat READ longTimeFormat WRITE setLongTimeFormat) + int longTimeFormat() const; + void setLongTimeFormat(int value); + + Q_PROPERTY(bool NTP READ nTP) + bool nTP() const; + + Q_PROPERTY(QString NTPServer READ nTPServer) + QString nTPServer() const; + + Q_PROPERTY(int ShortDateFormat READ shortDateFormat WRITE setShortDateFormat) + int shortDateFormat() const; + void setShortDateFormat(int value); + + Q_PROPERTY(int ShortTimeFormat READ shortTimeFormat WRITE setShortTimeFormat) + int shortTimeFormat() const; + void setShortTimeFormat(int value); + + Q_PROPERTY(QString Timezone READ timezone) + QString timezone() const; + + Q_PROPERTY(bool Use24HourFormat READ use24HourFormat WRITE setUse24HourFormat) + bool use24HourFormat() const; + void setUse24HourFormat(bool value); + + Q_PROPERTY(QStringList UserTimezones READ userTimezones) + QStringList userTimezones() const; + + Q_PROPERTY(int WeekBegins READ weekBegins WRITE setWeekBegins) + int weekBegins() const; + void setWeekBegins(int value); + + Q_PROPERTY(int WeekdayFormat READ weekdayFormat WRITE setWeekdayFormat) + int weekdayFormat() const; + void setWeekdayFormat(int value); + +public Q_SLOTS: // METHODS + void AddUserTimezone(const QString &in0); + void DeleteUserTimezone(const QString &in0); + QStringList GetSampleNTPServers(); + ZoneInfo GetZoneInfo(const QString &in0); + QStringList GetZoneList(); + void SetDate(int in0, int in1, int in2, int in3, int in4, int in5, int in6); + void SetLocalRTC(bool in0, bool in1); + void SetNTP(bool in0); + void SetNTPServer(const QString &in0); + void SetTime(qlonglong in0, bool in1); + void SetTimezone(const QString &in0); +Q_SIGNALS: // SIGNALS + void TimeUpdate(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp new file mode 100644 index 000000000..8ec5391ba --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp @@ -0,0 +1,57 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.WMSwitcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WMSwitcher1Adaptor + */ + +WMSwitcher1Adaptor::WMSwitcher1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WMSwitcher1Adaptor::~WMSwitcher1Adaptor() +{ + // destructor +} + +bool WMSwitcher1Adaptor::AllowSwitch() +{ + // handle method call org.deepin.dde.WMSwitcher1.AllowSwitch + bool outArg0; + QMetaObject::invokeMethod(parent(), "AllowSwitch", Q_RETURN_ARG(bool, outArg0)); + return outArg0; +} + +QString WMSwitcher1Adaptor::CurrentWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.CurrentWM + QString outArg0; + QMetaObject::invokeMethod(parent(), "CurrentWM", Q_RETURN_ARG(QString, outArg0)); + return outArg0; +} + +void WMSwitcher1Adaptor::RequestSwitchWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.RequestSwitchWM + QMetaObject::invokeMethod(parent(), "RequestSwitchWM"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h new file mode 100644 index 000000000..53a998760 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h @@ -0,0 +1,61 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.WMSwitcher1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.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_WMSWITCHER1ADAPTOR_H +#define ORG_DEEPIN_DDE_WMSWITCHER1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.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.WMSwitcher1 + */ +class WMSwitcher1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.WMSwitcher1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WMSwitcher1Adaptor(QObject *parent); + virtual ~WMSwitcher1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool AllowSwitch(); + QString CurrentWM(); + void RequestSwitchWM(); +Q_SIGNALS: // SIGNALS + void WMChanged(const QString &wmName); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.cpp new file mode 100644 index 000000000..c8a98aa17 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.cpp @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.XEventMonitor1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class XEventMonitor1Adaptor + */ + +XEventMonitor1Adaptor::XEventMonitor1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +XEventMonitor1Adaptor::~XEventMonitor1Adaptor() +{ + // destructor +} + +QString XEventMonitor1Adaptor::RegisterArea(int in0, int in1, int in2, int in3, int in4) +{ + // handle method call org.deepin.dde.XEventMonitor1.RegisterArea + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterArea", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3), Q_ARG(int, in4)); + return out0; +} + +QString XEventMonitor1Adaptor::RegisterAreas(AreaList in0, int in1) +{ + // handle method call org.deepin.dde.XEventMonitor1.RegisterAreas + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterAreas", Q_RETURN_ARG(QString, out0), Q_ARG(AreaList, in0), Q_ARG(int, in1)); + return out0; +} + +QString XEventMonitor1Adaptor::RegisterFullScreen() +{ + // handle method call org.deepin.dde.XEventMonitor1.RegisterFullScreen + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterFullScreen", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool XEventMonitor1Adaptor::UnregisterArea(const QString &in0) +{ + // handle method call org.deepin.dde.XEventMonitor1.UnregisterArea + bool out0; + QMetaObject::invokeMethod(parent(), "UnregisterArea", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h new file mode 100644 index 000000000..d14fd7db1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h @@ -0,0 +1,120 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.XEventMonitor1.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.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_XEVENTMONITOR1ADAPTOR_H +#define ORG_DEEPIN_DDE_XEVENTMONITOR1ADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.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.XEventMonitor1 + */ +class XEventMonitor1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.XEventMonitor1") + 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" + "") +public: + XEventMonitor1Adaptor(QObject *parent); + virtual ~XEventMonitor1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString RegisterArea(int in0, int in1, int in2, int in3, int in4); + QString RegisterAreas(AreaList in0, int in1); + QString RegisterFullScreen(); + bool UnregisterArea(const QString &in0); +Q_SIGNALS: // SIGNALS + void ButtonPress(int in0, int in1, int in2, const QString &in3); + void ButtonRelease(int in0, int in1, int in2, const QString &in3); + void CancelAllArea(); + void CursorInto(int in0, int in1, const QString &in2); + void CursorMove(int in0, int in1, const QString &in2); + void CursorOut(int in0, int in1, const QString &in2); + void KeyPress(const QString &in0, int in1, int in2, const QString &in3); + void KeyRelease(const QString &in0, int in1, int in2, const QString &in3); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.cpp new file mode 100644 index 000000000..1d9bc7248 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.cpp @@ -0,0 +1,365 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.PlasmaWindow.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindow.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PlasmaWindowAdaptor + */ + +PlasmaWindowAdaptor::PlasmaWindowAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PlasmaWindowAdaptor::~PlasmaWindowAdaptor() +{ + // destructor +} + +QString PlasmaWindowAdaptor::AppId() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.AppId + QString out0; + QMetaObject::invokeMethod(parent(), "AppId", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void PlasmaWindowAdaptor::Destroy() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.Destroy + QMetaObject::invokeMethod(parent(), "Destroy"); +} + +DockRect PlasmaWindowAdaptor::Geometry() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.Geometry + DockRect out0; + QMetaObject::invokeMethod(parent(), "Geometry", Q_RETURN_ARG(DockRect, out0)); + return out0; +} + +QString PlasmaWindowAdaptor::Icon() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.Icon + QString out0; + QMetaObject::invokeMethod(parent(), "Icon", Q_RETURN_ARG(QString, out0)); + return out0; +} + +uint PlasmaWindowAdaptor::InternalId() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.InternalId + uint out0; + QMetaObject::invokeMethod(parent(), "InternalId", Q_RETURN_ARG(uint, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsActive() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsActive + bool out0; + QMetaObject::invokeMethod(parent(), "IsActive", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsCloseable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsCloseable + bool out0; + QMetaObject::invokeMethod(parent(), "IsCloseable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsDemandingAttention() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsDemandingAttention + bool out0; + QMetaObject::invokeMethod(parent(), "IsDemandingAttention", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsFullscreen() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsFullscreen + bool out0; + QMetaObject::invokeMethod(parent(), "IsFullscreen", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsFullscreenable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsFullscreenable + bool out0; + QMetaObject::invokeMethod(parent(), "IsFullscreenable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsKeepAbove() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsKeepAbove + bool out0; + QMetaObject::invokeMethod(parent(), "IsKeepAbove", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsKeepBelow() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsKeepBelow + bool out0; + QMetaObject::invokeMethod(parent(), "IsKeepBelow", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsMaximizeable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMaximizeable + bool out0; + QMetaObject::invokeMethod(parent(), "IsMaximizeable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsMaximized() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMaximized + bool out0; + QMetaObject::invokeMethod(parent(), "IsMaximized", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsMinimizeable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMinimizeable + bool out0; + QMetaObject::invokeMethod(parent(), "IsMinimizeable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsMinimized() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMinimized + bool out0; + QMetaObject::invokeMethod(parent(), "IsMinimized", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsMovable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsMovable + bool out0; + QMetaObject::invokeMethod(parent(), "IsMovable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsOnAllDesktops() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsOnAllDesktops + bool out0; + QMetaObject::invokeMethod(parent(), "IsOnAllDesktops", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsResizable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsResizable + bool out0; + QMetaObject::invokeMethod(parent(), "IsResizable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsShadeable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsShadeable + bool out0; + QMetaObject::invokeMethod(parent(), "IsShadeable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsShaded() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsShaded + bool out0; + QMetaObject::invokeMethod(parent(), "IsShaded", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsValid() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsValid + bool out0; + QMetaObject::invokeMethod(parent(), "IsValid", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::IsVirtualDesktopChangeable() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.IsVirtualDesktopChangeable + bool out0; + QMetaObject::invokeMethod(parent(), "IsVirtualDesktopChangeable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +uint PlasmaWindowAdaptor::Pid() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.Pid + uint out0; + QMetaObject::invokeMethod(parent(), "Pid", Q_RETURN_ARG(uint, out0)); + return out0; +} + +QStringList PlasmaWindowAdaptor::PlasmaVirtualDesktops() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.PlasmaVirtualDesktops + QStringList out0; + QMetaObject::invokeMethod(parent(), "PlasmaVirtualDesktops", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +void PlasmaWindowAdaptor::Release() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.Release + QMetaObject::invokeMethod(parent(), "Release"); +} + +void PlasmaWindowAdaptor::RequestActivate() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestActivate + QMetaObject::invokeMethod(parent(), "RequestActivate"); +} + +void PlasmaWindowAdaptor::RequestClose() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestClose + QMetaObject::invokeMethod(parent(), "RequestClose"); +} + +void PlasmaWindowAdaptor::RequestEnterNewVirtualDesktop() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestEnterNewVirtualDesktop + QMetaObject::invokeMethod(parent(), "RequestEnterNewVirtualDesktop"); +} + +void PlasmaWindowAdaptor::RequestEnterVirtualDesktop(const QString &id) +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestEnterVirtualDesktop + QMetaObject::invokeMethod(parent(), "RequestEnterVirtualDesktop", Q_ARG(QString, id)); +} + +void PlasmaWindowAdaptor::RequestLeaveVirtualDesktop(const QString &id) +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestLeaveVirtualDesktop + QMetaObject::invokeMethod(parent(), "RequestLeaveVirtualDesktop", Q_ARG(QString, id)); +} + +void PlasmaWindowAdaptor::RequestMove() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestMove + QMetaObject::invokeMethod(parent(), "RequestMove"); +} + +void PlasmaWindowAdaptor::RequestResize() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestResize + QMetaObject::invokeMethod(parent(), "RequestResize"); +} + +void PlasmaWindowAdaptor::RequestToggleKeepAbove() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleKeepAbove + QMetaObject::invokeMethod(parent(), "RequestToggleKeepAbove"); +} + +void PlasmaWindowAdaptor::RequestToggleKeepBelow() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleKeepBelow + QMetaObject::invokeMethod(parent(), "RequestToggleKeepBelow"); +} + +void PlasmaWindowAdaptor::RequestToggleMaximized() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleMaximized + QMetaObject::invokeMethod(parent(), "RequestToggleMaximized"); +} + +void PlasmaWindowAdaptor::RequestToggleMinimized() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleMinimized + QMetaObject::invokeMethod(parent(), "RequestToggleMinimized"); +} + +void PlasmaWindowAdaptor::RequestToggleShaded() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestToggleShaded + QMetaObject::invokeMethod(parent(), "RequestToggleShaded"); +} + +void PlasmaWindowAdaptor::RequestVirtualDesktop(uint desktop) +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.RequestVirtualDesktop + QMetaObject::invokeMethod(parent(), "RequestVirtualDesktop", Q_ARG(uint, desktop)); +} + +bool PlasmaWindowAdaptor::SkipSwitcher() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.SkipSwitcher + bool out0; + QMetaObject::invokeMethod(parent(), "SkipSwitcher", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PlasmaWindowAdaptor::SkipTaskbar() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.SkipTaskbar + bool out0; + QMetaObject::invokeMethod(parent(), "SkipTaskbar", Q_RETURN_ARG(bool, out0)); + return out0; +} + +QString PlasmaWindowAdaptor::Title() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.Title + QString out0; + QMetaObject::invokeMethod(parent(), "Title", Q_RETURN_ARG(QString, out0)); + return out0; +} + +uint PlasmaWindowAdaptor::VirtualDesktop() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.VirtualDesktop + uint out0; + QMetaObject::invokeMethod(parent(), "VirtualDesktop", Q_RETURN_ARG(uint, out0)); + return out0; +} + +uint PlasmaWindowAdaptor::WindowId() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.WindowId + uint out0; + QMetaObject::invokeMethod(parent(), "WindowId", Q_RETURN_ARG(uint, out0)); + return out0; +} + +QByteArray PlasmaWindowAdaptor::uuid() +{ + // handle method call org.deepin.dde.KWayland1.PlasmaWindow.uuid + QByteArray out0; + QMetaObject::invokeMethod(parent(), "uuid", Q_RETURN_ARG(QByteArray, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.h new file mode 100644 index 000000000..f556bd725 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor.h @@ -0,0 +1,264 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.PlasmaWindow.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindowAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindow.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_KWAYLAND_PLASMAWINDOWADAPTOR_H +#define ORG_DEEPIN_DDE_KWAYLAND_PLASMAWINDOWADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindow.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.KWayland1.PlasmaWindow + */ +class PlasmaWindowAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.KWayland1.PlasmaWindow") + 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" + "") +public: + PlasmaWindowAdaptor(QObject *parent); + virtual ~PlasmaWindowAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString AppId(); + void Destroy(); + DockRect Geometry(); + QString Icon(); + uint InternalId(); + bool IsActive(); + bool IsCloseable(); + bool IsDemandingAttention(); + bool IsFullscreen(); + bool IsFullscreenable(); + bool IsKeepAbove(); + bool IsKeepBelow(); + bool IsMaximizeable(); + bool IsMaximized(); + bool IsMinimizeable(); + bool IsMinimized(); + bool IsMovable(); + bool IsOnAllDesktops(); + bool IsResizable(); + bool IsShadeable(); + bool IsShaded(); + bool IsValid(); + bool IsVirtualDesktopChangeable(); + uint Pid(); + QStringList PlasmaVirtualDesktops(); + void Release(); + void RequestActivate(); + void RequestClose(); + void RequestEnterNewVirtualDesktop(); + void RequestEnterVirtualDesktop(const QString &id); + void RequestLeaveVirtualDesktop(const QString &id); + void RequestMove(); + void RequestResize(); + void RequestToggleKeepAbove(); + void RequestToggleKeepBelow(); + void RequestToggleMaximized(); + void RequestToggleMinimized(); + void RequestToggleShaded(); + void RequestVirtualDesktop(uint desktop); + bool SkipSwitcher(); + bool SkipTaskbar(); + QString Title(); + uint VirtualDesktop(); + uint WindowId(); + QByteArray uuid(); +Q_SIGNALS: // SIGNALS + void ActiveChanged(); + void AppIdChanged(); + void CloseableChanged(); + void DemandsAttentionChanged(); + void FullscreenChanged(); + void FullscreenableChanged(); + void GeometryChanged(); + void IconChanged(); + void KeepAboveChanged(); + void KeepBelowChanged(); + void MaximizeableChanged(); + void MaximizedChanged(); + void MinimizeableChanged(); + void MinimizedChanged(); + void MovableChanged(); + void OnAllDesktopsChanged(); + void ParentWindowChanged(); + void PlasmaVirtualDesktopEntered(const QString &id); + void PlasmaVirtualDesktopLeft(const QString &id); + void ResizableChanged(); + void ShadeableChanged(); + void ShadedChanged(); + void SkipSwitcherChanged(); + void SkipTaskbarChanged(); + void TitleChanged(); + void Unmapped(); + void VirtualDesktopChangeableChanged(); + void VirtualDesktopChanged(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.cpp new file mode 100644 index 000000000..51983e1f1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.cpp @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.WindowManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManager.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-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WindowManagerAdaptor + */ + +WindowManagerAdaptor::WindowManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WindowManagerAdaptor::~WindowManagerAdaptor() +{ + // destructor +} + +uint WindowManagerAdaptor::ActiveWindow() +{ + // handle method call org.deepin.dde.KWayland1.WindowManager.ActiveWindow + uint out0; + QMetaObject::invokeMethod(parent(), "ActiveWindow", Q_RETURN_ARG(uint, out0)); + return out0; +} + +void WindowManagerAdaptor::HideDesktop() +{ + // handle method call org.deepin.dde.KWayland1.WindowManager.HideDesktop + QMetaObject::invokeMethod(parent(), "HideDesktop"); +} + +bool WindowManagerAdaptor::IsShowingDesktop() +{ + // handle method call org.deepin.dde.KWayland1.WindowManager.IsShowingDesktop + bool out0; + QMetaObject::invokeMethod(parent(), "IsShowingDesktop", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool WindowManagerAdaptor::IsValid() +{ + // handle method call org.deepin.dde.KWayland1.WindowManager.IsValid + bool out0; + QMetaObject::invokeMethod(parent(), "IsValid", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void WindowManagerAdaptor::SetShowingDesktop(bool show) +{ + // handle method call org.deepin.dde.KWayland1.WindowManager.SetShowingDesktop + QMetaObject::invokeMethod(parent(), "SetShowingDesktop", Q_ARG(bool, show)); +} + +void WindowManagerAdaptor::ShowDesktop() +{ + // handle method call org.deepin.dde.KWayland1.WindowManager.ShowDesktop + QMetaObject::invokeMethod(parent(), "ShowDesktop"); +} + +QVariantList WindowManagerAdaptor::Windows() +{ + // handle method call org.deepin.dde.KWayland1.WindowManager.Windows + QVariantList out0; + QMetaObject::invokeMethod(parent(), "Windows", Q_RETURN_ARG(QVariantList, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.h new file mode 100644 index 000000000..a9871bf53 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor.h @@ -0,0 +1,89 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.deepin.dde.kwayland.WindowManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManager.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_KWAYLAND_WINDOWMANAGERADAPTOR_H +#define ORG_DEEPIN_DDE_KWAYLAND_WINDOWMANAGERADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManager.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.KWayland1.WindowManager + */ +class WindowManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.KWayland1.WindowManager") + 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" + "") +public: + WindowManagerAdaptor(QObject *parent); + virtual ~WindowManagerAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + uint ActiveWindow(); + void HideDesktop(); + bool IsShowingDesktop(); + bool IsValid(); + void SetShowingDesktop(bool show); + void ShowDesktop(); + QVariantList Windows(); +Q_SIGNALS: // SIGNALS + void ActiveWindowChanged(); + void InterfaceAboutToBeDestroyed(); + void InterfaceAboutToBeReleased(); + void ShowingDesktopChanged(bool in0); + void WindowCreated(const QString &dbus); + void WindowRemove(const QString &dbus); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.cpp new file mode 100644 index 000000000..284d179a2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.freedesktop.FileManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManager.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-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class FileManager1Adaptor + */ + +FileManager1Adaptor::FileManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +FileManager1Adaptor::~FileManager1Adaptor() +{ + // destructor +} + +void FileManager1Adaptor::ShowFolders(const QStringList &URIs, const QString &StartupId) +{ + // handle method call org.freedesktop.FileManager1.ShowFolders + QMetaObject::invokeMethod(parent(), "ShowFolders", Q_ARG(QStringList, URIs), Q_ARG(QString, StartupId)); +} + +void FileManager1Adaptor::ShowItemProperties(const QStringList &URIs, const QString &StartupId) +{ + // handle method call org.freedesktop.FileManager1.ShowItemProperties + QMetaObject::invokeMethod(parent(), "ShowItemProperties", Q_ARG(QStringList, URIs), Q_ARG(QString, StartupId)); +} + +void FileManager1Adaptor::ShowItems(const QStringList &URIs, const QString &StartupId) +{ + // handle method call org.freedesktop.FileManager1.ShowItems + QMetaObject::invokeMethod(parent(), "ShowItems", Q_ARG(QStringList, URIs), Q_ARG(QString, StartupId)); +} + +void FileManager1Adaptor::Trash(const QStringList &URIs) +{ + // handle method call org.freedesktop.FileManager1.Trash + QMetaObject::invokeMethod(parent(), "Trash", Q_ARG(QStringList, URIs)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.h new file mode 100644 index 000000000..49e12ca49 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor.h @@ -0,0 +1,66 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.freedesktop.FileManager.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManagerAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManager.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_FILEMANAGERADAPTOR_H +#define ORG_FREEDESKTOP_FILEMANAGERADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManager.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.FileManager1 + */ +class FileManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.FileManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + FileManager1Adaptor(QObject *parent); + virtual ~FileManager1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void ShowFolders(const QStringList &URIs, const QString &StartupId); + void ShowItemProperties(const QStringList &URIs, const QString &StartupId); + void ShowItems(const QStringList &URIs, const QString &StartupId); + void Trash(const QStringList &URIs); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.cpp new file mode 100644 index 000000000..b25c61c49 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.cpp @@ -0,0 +1,155 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.kde.StatusNotifierItem.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItem.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-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class StatusNotifierItemAdaptor + */ + +StatusNotifierItemAdaptor::StatusNotifierItemAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +StatusNotifierItemAdaptor::~StatusNotifierItemAdaptor() +{ + // destructor +} + +QString StatusNotifierItemAdaptor::attentionIconName() const +{ + // get the value of property AttentionIconName + return qvariant_cast< QString >(parent()->property("AttentionIconName")); +} + +DBusImageList StatusNotifierItemAdaptor::attentionIconPixmap() const +{ + // get the value of property AttentionIconPixmap + return qvariant_cast< DBusImageList >(parent()->property("AttentionIconPixmap")); +} + +QString StatusNotifierItemAdaptor::attentionMovieName() const +{ + // get the value of property AttentionMovieName + return qvariant_cast< QString >(parent()->property("AttentionMovieName")); +} + +QString StatusNotifierItemAdaptor::category() const +{ + // get the value of property Category + return qvariant_cast< QString >(parent()->property("Category")); +} + +QString StatusNotifierItemAdaptor::iconName() const +{ + // get the value of property IconName + return qvariant_cast< QString >(parent()->property("IconName")); +} + +DBusImageList StatusNotifierItemAdaptor::iconPixmap() const +{ + // get the value of property IconPixmap + return qvariant_cast< DBusImageList >(parent()->property("IconPixmap")); +} + +QString StatusNotifierItemAdaptor::iconThemePath() const +{ + // get the value of property IconThemePath + return qvariant_cast< QString >(parent()->property("IconThemePath")); +} + +QString StatusNotifierItemAdaptor::id() const +{ + // get the value of property Id + return qvariant_cast< QString >(parent()->property("Id")); +} + +bool StatusNotifierItemAdaptor::itemIsMenu() const +{ + // get the value of property ItemIsMenu + return qvariant_cast< bool >(parent()->property("ItemIsMenu")); +} + +QDBusObjectPath StatusNotifierItemAdaptor::menu() const +{ + // get the value of property Menu + return qvariant_cast< QDBusObjectPath >(parent()->property("Menu")); +} + +QString StatusNotifierItemAdaptor::overlayIconName() const +{ + // get the value of property OverlayIconName + return qvariant_cast< QString >(parent()->property("OverlayIconName")); +} + +DBusImageList StatusNotifierItemAdaptor::overlayIconPixmap() const +{ + // get the value of property OverlayIconPixmap + return qvariant_cast< DBusImageList >(parent()->property("OverlayIconPixmap")); +} + +QString StatusNotifierItemAdaptor::status() const +{ + // get the value of property Status + return qvariant_cast< QString >(parent()->property("Status")); +} + +QString StatusNotifierItemAdaptor::title() const +{ + // get the value of property Title + return qvariant_cast< QString >(parent()->property("Title")); +} + +DBusToolTip StatusNotifierItemAdaptor::toolTip() const +{ + // get the value of property ToolTip + return qvariant_cast< DBusToolTip >(parent()->property("ToolTip")); +} + +int StatusNotifierItemAdaptor::windowId() const +{ + // get the value of property WindowId + return qvariant_cast< int >(parent()->property("WindowId")); +} + +void StatusNotifierItemAdaptor::Activate(int x, int y) +{ + // handle method call org.kde.StatusNotifierItem.Activate + QMetaObject::invokeMethod(parent(), "Activate", Q_ARG(int, x), Q_ARG(int, y)); +} + +void StatusNotifierItemAdaptor::ContextMenu(int x, int y) +{ + // handle method call org.kde.StatusNotifierItem.ContextMenu + QMetaObject::invokeMethod(parent(), "ContextMenu", Q_ARG(int, x), Q_ARG(int, y)); +} + +void StatusNotifierItemAdaptor::Scroll(int delta, const QString &orientation) +{ + // handle method call org.kde.StatusNotifierItem.Scroll + QMetaObject::invokeMethod(parent(), "Scroll", Q_ARG(int, delta), Q_ARG(QString, orientation)); +} + +void StatusNotifierItemAdaptor::SecondaryActivate(int x, int y) +{ + // handle method call org.kde.StatusNotifierItem.SecondaryActivate + QMetaObject::invokeMethod(parent(), "SecondaryActivate", Q_ARG(int, x), Q_ARG(int, y)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.h b/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.h new file mode 100644 index 000000000..b180d72ff --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor.h @@ -0,0 +1,153 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-dock/frame/dbusinterface/xml/org.kde.StatusNotifierItem.xml -a ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItemAdaptor -i ./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItem.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_KDE_STATUSNOTIFIERITEMADAPTOR_H +#define ORG_KDE_STATUSNOTIFIERITEMADAPTOR_H + +#include +#include +#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItem.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.kde.StatusNotifierItem + */ +class StatusNotifierItemAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.kde.StatusNotifierItem") + 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" + "") +public: + StatusNotifierItemAdaptor(QObject *parent); + virtual ~StatusNotifierItemAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString AttentionIconName READ attentionIconName) + QString attentionIconName() const; + + Q_PROPERTY(DBusImageList AttentionIconPixmap READ attentionIconPixmap) + DBusImageList attentionIconPixmap() const; + + Q_PROPERTY(QString AttentionMovieName READ attentionMovieName) + QString attentionMovieName() const; + + Q_PROPERTY(QString Category READ category) + QString category() const; + + Q_PROPERTY(QString IconName READ iconName) + QString iconName() const; + + Q_PROPERTY(DBusImageList IconPixmap READ iconPixmap) + DBusImageList iconPixmap() const; + + Q_PROPERTY(QString IconThemePath READ iconThemePath) + QString iconThemePath() const; + + Q_PROPERTY(QString Id READ id) + QString id() const; + + Q_PROPERTY(bool ItemIsMenu READ itemIsMenu) + bool itemIsMenu() const; + + Q_PROPERTY(QDBusObjectPath Menu READ menu) + QDBusObjectPath menu() const; + + Q_PROPERTY(QString OverlayIconName READ overlayIconName) + QString overlayIconName() const; + + Q_PROPERTY(DBusImageList OverlayIconPixmap READ overlayIconPixmap) + DBusImageList overlayIconPixmap() const; + + Q_PROPERTY(QString Status READ status) + QString status() const; + + Q_PROPERTY(QString Title READ title) + QString title() const; + + Q_PROPERTY(DBusToolTip ToolTip READ toolTip) + DBusToolTip toolTip() const; + + Q_PROPERTY(int WindowId READ windowId) + int windowId() const; + +public Q_SLOTS: // METHODS + void Activate(int x, int y); + void ContextMenu(int x, int y); + void Scroll(int delta, const QString &orientation); + void SecondaryActivate(int x, int y); +Q_SIGNALS: // SIGNALS + void NewAttentionIcon(); + void NewIcon(); + void NewOverlayIcon(); + void NewStatus(const QString &status); + void NewTitle(); + void NewToolTip(); +}; + +#endif