feat: Add files generated by qdbusXML2cpp and DCONG2cpp

Add files generated by qdbusXML2cpp and DCONG2cpp

Log: Add files generated by qdbusXML2cpp and DCONG2cpp
This commit is contained in:
jingshenghao 2025-01-13 17:45:48 +08:00 committed by deepin-admin-bot
parent 13c4162b5e
commit a90f386ddc
43 changed files with 6584 additions and 0 deletions

View File

@ -63,3 +63,8 @@ License: CC0-1.0
Files: plugins/overlay-warning/org.deepin.dde.dock.overlay.policy
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
Files: toolGenerate/**/*
Copyright: None
License: CC0-1.0

View File

@ -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-14T10:55:02
* 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 <QThread>
#include <QVariant>
#include <QDebug>
#include <QAtomicPointer>
#include <QAtomicInteger>
#include <DConfig>
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<QVariant> Dock_Quick_Plugins READ Dock_Quick_Plugins WRITE setDock_Quick_Plugins NOTIFY Dock_Quick_PluginsChanged)
Q_PROPERTY(QList<QVariant> 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<QVariant> 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<QVariant> 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<QVariant> 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<QVariant> Dock_Quick_Plugins() const {
return p_Dock_Quick_Plugins;
}
void setDock_Quick_Plugins(const QList<QVariant> &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<QVariant> Dock_Quick_Tray_Name() const {
return p_Dock_Quick_Tray_Name;
}
void setDock_Quick_Tray_Name(const QList<QVariant> &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<QVariant> Docked_Apps() const {
return p_Docked_Apps;
}
void setDocked_Apps(const QList<QVariant> &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<QVariant> Recent_App() const {
return p_Recent_App;
}
void setRecent_App(const QList<QVariant> &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<QVariant> Win_Icon_Preferred_Apps() const {
return p_Win_Icon_Preferred_Apps;
}
void setWin_Icon_Preferred_Apps(const QList<QVariant> &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<double>(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<QString>(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<QList<QVariant>>(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<QList<QVariant>>(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<double>(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<QList<QVariant>>(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<QString>(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<QString>(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<double>(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<double>(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<QString>(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<QString>(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<QList<QVariant>>(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<bool>(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<bool>(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<double>(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<QList<QVariant>>(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<double>(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<double>(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<DTK_CORE_NAMESPACE::DConfig> m_config = nullptr;
double p_Delay_Plugins_Time { 0 };
QString p_Display_Mode { QStringLiteral("fashion") };
QList<QVariant> p_Dock_Quick_Plugins { QList<QVariant>{QVariant(QStringLiteral("power")), QVariant(QStringLiteral("network")), QVariant(QStringLiteral("shutdown")), QVariant(QStringLiteral("show-desktop")), QVariant(QStringLiteral("multitasking")), QVariant(QStringLiteral("notification")), QVariant(QStringLiteral("uosai"))} };
QList<QVariant> p_Dock_Quick_Tray_Name { QList<QVariant>{QVariant(QStringLiteral("fcitx")), QVariant(QStringLiteral("indicator:keybord_layout"))} };
double p_Dock_Show_Window_name { 0 };
QList<QVariant> p_Docked_Apps { QList<QVariant>{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<QVariant> p_Recent_App { QList<QVariant>{} };
bool p_Show_MultiWindow { false };
bool p_Show_Recent { false };
double p_Show_Timeout { 100 };
QList<QVariant> p_Win_Icon_Preferred_Apps { QList<QVariant>{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<quint32> m_propertySetStatus0 = 0;
};
#endif // COM_DEEPIN_DDE_DOCK_H

View File

@ -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-14T10:55:02
* 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 <QThread>
#include <QVariant>
#include <QDebug>
#include <QAtomicPointer>
#include <QAtomicInteger>
#include <DConfig>
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<bool>(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<bool>(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<bool>(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<bool>(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<DTK_CORE_NAMESPACE::DConfig> m_config = nullptr;
bool p_control { false };
bool p_enable { true };
bool p_menu-enable { true };
bool p_showtimetofull { true };
QAtomicInteger<quint32> m_propertySetStatus0 = 0;
};
#endif // ORG_DEEPIN_DDE_DOCK_POWER_H

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.dde.dock.module.gschema.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
QT_END_NAMESPACE
#endif

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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<uint> &xids)
{
// handle method call com.deepin.wm.PresentWindows
QMetaObject::invokeMethod(parent(), "PresentWindows", Q_ARG(QList<uint>, 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;
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/com.deepin.wm.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"com.deepin.wm\">\n"
" <property access=\"readwrite\" type=\"b\" name=\"compositingEnabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"compositingPossible\"/>\n"
" <property access=\"read\" type=\"b\" name=\"compositingAllowSwitch\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"zoneEnabled\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"cursorTheme\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"cursorSize\"/>\n"
" <method name=\"SwitchApplication\">\n"
" <arg direction=\"in\" type=\"b\" name=\"backward\"/>\n"
" </method>\n"
" <method name=\"TileActiveWindow\">\n"
" <arg direction=\"in\" type=\"u\" name=\"side\"/>\n"
" </method>\n"
" <method name=\"BeginToMoveActiveWindow\"/>\n"
" <method name=\"ToggleActiveWindowMaximize\"/>\n"
" <method name=\"MinimizeActiveWindow\"/>\n"
" <method name=\"ShowWorkspace\"/>\n"
" <method name=\"ShowWindow\"/>\n"
" <method name=\"ShowAllWindow\"/>\n"
" <method name=\"PerformAction\">\n"
" <arg direction=\"in\" type=\"i\" name=\"type\"/>\n"
" </method>\n"
" <method name=\"PreviewWindow\">\n"
" <arg direction=\"in\" type=\"u\" name=\"xid\"/>\n"
" </method>\n"
" <method name=\"CancelPreviewWindow\"/>\n"
" <method name=\"GetCurrentWorkspaceBackground\">\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetCurrentWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"GetWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"SetTransientBackground\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetCurrentWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetCurrentWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" </method>\n"
" <method name=\"GetWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"SetWorkspaceBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"SetTransientBackgroundForMonitor\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"strMonitorName\"/>\n"
" </method>\n"
" <method name=\"GetCurrentWorkspace\">\n"
" <arg direction=\"out\" type=\"i\" name=\"index\"/>\n"
" </method>\n"
" <method name=\"WorkspaceCount\">\n"
" <arg direction=\"out\" type=\"i\" name=\"count\"/>\n"
" </method>\n"
" <method name=\"SetCurrentWorkspace\">\n"
" <arg direction=\"in\" type=\"i\" name=\"index\"/>\n"
" </method>\n"
" <method name=\"PreviousWorkspace\"/>\n"
" <method name=\"NextWorkspace\"/>\n"
" <method name=\"GetAllAccels\">\n"
" <arg direction=\"out\" type=\"s\" name=\"data\"/>\n"
" </method>\n"
" <method name=\"GetAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" <arg direction=\"out\" type=\"as\" name=\"data\"/>\n"
" </method>\n"
" <method name=\"GetDefaultAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" <arg direction=\"out\" type=\"as\" name=\"data\"/>\n"
" </method>\n"
" <method name=\"SetAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"data\"/>\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" </method>\n"
" <method name=\"RemoveAccel\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"SetDecorationTheme\">\n"
" <arg direction=\"in\" type=\"s\" name=\"themeType\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"themeName\"/>\n"
" </method>\n"
" <method name=\"SetDecorationDeepinTheme\">\n"
" <arg direction=\"in\" type=\"s\" name=\"deepinThemeName\"/>\n"
" </method>\n"
" <signal name=\"WorkspaceBackgroundChanged\">\n"
" <arg type=\"i\" name=\"index\"/>\n"
" <arg type=\"s\" name=\"newUri\"/>\n"
" </signal>\n"
" <signal name=\"WorkspaceBackgroundChangedForMonitor\">\n"
" <arg type=\"i\" name=\"index\"/>\n"
" <arg type=\"s\" name=\"strMonitorName\"/>\n"
" <arg type=\"s\" name=\"uri\"/>\n"
" </signal>\n"
" <signal name=\"compositingEnabledChanged\">\n"
" <arg type=\"b\" name=\"enabled\"/>\n"
" </signal>\n"
" <signal name=\"wmCompositingEnabledChanged\">\n"
" <arg type=\"b\" name=\"enabled\"/>\n"
" </signal>\n"
" <signal name=\"workspaceCountChanged\">\n"
" <arg type=\"i\" name=\"count\"/>\n"
" </signal>\n"
" <signal name=\"BeginToMoveActiveWindowChanged\"/>\n"
" <signal name=\"SwitchApplicationChanged\">\n"
" <arg type=\"b\" name=\"backward\"/>\n"
" </signal>\n"
" <signal name=\"TileActiveWindowChanged\">\n"
" <arg type=\"i\" name=\"side\"/>\n"
" </signal>\n"
" <signal name=\"ToggleActiveWindowMaximizeChanged\"/>\n"
" <signal name=\"ShowAllWindowChanged\"/>\n"
" <signal name=\"ShowWindowChanged\"/>\n"
" <signal name=\"ShowWorkspaceChanged\"/>\n"
" <signal name=\"ResumeCompositorChanged\">\n"
" <arg type=\"i\" name=\"reason\"/>\n"
" </signal>\n"
" <signal name=\"SuspendCompositorChanged\">\n"
" <arg type=\"i\" name=\"reason\"/>\n"
" </signal>\n"
" <method name=\"ChangeCurrentWorkspaceBackground\">\n"
" <arg direction=\"in\" type=\"s\" name=\"uri\"/>\n"
" </method>\n"
" <method name=\"SwitchToWorkspace\">\n"
" <arg direction=\"in\" type=\"b\" name=\"backward\"/>\n"
" </method>\n"
" <method name=\"PresentWindows\">\n"
" <arg direction=\"in\" type=\"au\" name=\"xids\"/>\n"
" <annotation value=\"QList&lt;uint&gt;\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" </method>\n"
" <method name=\"EnableZoneDetected\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <signal name=\"WorkspaceSwitched\">\n"
" <arg type=\"i\" name=\"from\"/>\n"
" <arg type=\"i\" name=\"to\"/>\n"
" </signal>\n"
" <method name=\"GetMultiTaskingStatus\">\n"
" <arg direction=\"out\" type=\"b\" name=\"isActive\"/>\n"
" </method>\n"
" <method name=\"SetMultiTaskingStatus\">\n"
" <arg direction=\"in\" type=\"b\" name=\"isActive\"/>\n"
" </method>\n"
" <method name=\"GetIsShowDesktop\">\n"
" <arg direction=\"out\" type=\"b\" name=\"isShowDesktop\"/>\n"
" </method>\n"
" <method name=\"SetShowDesktop\">\n"
" <arg direction=\"in\" type=\"b\" name=\"isShowDesktop\"/>\n"
" </method>\n"
" </interface>\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<uint> &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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.AirplaneMode1\">\n"
" <method name=\"DumpState\"/>\n"
" <method name=\"Enable\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <method name=\"EnableBluetooth\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <method name=\"EnableWifi\">\n"
" <arg direction=\"in\" type=\"b\" name=\"enabled\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"b\" name=\"BluetoothEnabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"Enabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"WifiEnabled\"/>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Appearance1\">\n"
" <property access=\"readwrite\" type=\"d\" name=\"FontSize\"/>\n"
" <property access=\"readwrite\" type=\"d\" name=\"Opacity\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"WindowRadius\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Background\"/>\n"
" <property access=\"read\" type=\"s\" name=\"GlobalTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"GtkTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"IconTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"CursorTheme\"/>\n"
" <property access=\"read\" type=\"s\" name=\"MonospaceFont\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"QtActiveColor\"/>\n"
" <property access=\"read\" type=\"s\" name=\"StandardFont\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"WallpaperSlideShow\"/>\n"
" <property access=\"read\" type=\"s\" name=\"WallpaperURls\"/>\n"
" <signal name=\"Changed\">\n"
" <arg type=\"s\" name=\"ty\"/>\n"
" <arg type=\"s\" name=\"value\"/>\n"
" </signal>\n"
" <signal name=\"Refreshed\">\n"
" <arg type=\"s\" name=\"type\"/>\n"
" </signal>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Audio1.Sink\">\n"
" <method name=\"GetMeter\">\n"
" <arg direction=\"out\" type=\"o\"/>\n"
" </method>\n"
" <method name=\"SetBalance\">\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetFade\">\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" </method>\n"
" <method name=\"SetMute\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetPort\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetVolume\">\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"s\" name=\"Name\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Description\"/>\n"
" <property access=\"read\" type=\"d\" name=\"BaseVolume\"/>\n"
" <property access=\"read\" type=\"b\" name=\"Mute\"/>\n"
" <property access=\"read\" type=\"d\" name=\"Volume\"/>\n"
" <property access=\"read\" type=\"d\" name=\"Balance\"/>\n"
" <property access=\"read\" type=\"b\" name=\"SupportBalance\"/>\n"
" <property access=\"read\" type=\"d\" name=\"Fade\"/>\n"
" <property access=\"read\" type=\"b\" name=\"SupportFade\"/>\n"
" <property access=\"read\" type=\"a(ssy)\" name=\"Ports\">\n"
" <annotation value=\"AudioPortList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"(ssy)\" name=\"ActivePort\">\n"
" <annotation value=\"AudioPort\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"u\" name=\"Card\"/>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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<QDBusObjectPath> Audio1Adaptor::sinkInputs() const
{
// get the value of property SinkInputs
return qvariant_cast< QList<QDBusObjectPath> >(parent()->property("SinkInputs"));
}
QList<QDBusObjectPath> Audio1Adaptor::sinks() const
{
// get the value of property Sinks
return qvariant_cast< QList<QDBusObjectPath> >(parent()->property("Sinks"));
}
QList<QDBusObjectPath> Audio1Adaptor::sources() const
{
// get the value of property Sources
return qvariant_cast< QList<QDBusObjectPath> >(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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Audio1\">\n"
" <method name=\"Reset\"/>\n"
" <method name=\"SetDefaultSink\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetDefaultSource\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetBluetoothAudioMode\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetPort\">\n"
" <arg direction=\"in\" type=\"u\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <method name=\"SetPortEnabled\">\n"
" <arg direction=\"in\" type=\"u\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsPortEnabled\">\n"
" <arg direction=\"in\" type=\"u\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <signal name=\"PortEnabledChanged\">\n"
" <arg type=\"u\"/>\n"
" <arg type=\"s\"/>\n"
" <arg type=\"b\"/>\n"
" </signal>\n"
" <property access=\"read\" type=\"ao\" name=\"SinkInputs\"/>\n"
" <property access=\"read\" type=\"ao\" name=\"Sinks\"/>\n"
" <property access=\"read\" type=\"ao\" name=\"Sources\"/>\n"
" <property access=\"read\" type=\"as\" name=\"BluetoothAudioModeOpts\">\n"
" <annotation value=\"QStringList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"BluetoothAudioMode\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Cards\"/>\n"
" <property access=\"read\" type=\"s\" name=\"CardsWithoutUnavailable\"/>\n"
" <property access=\"read\" type=\"o\" name=\"DefaultSink\"/>\n"
" <property access=\"read\" type=\"o\" name=\"DefaultSource\"/>\n"
" <property access=\"read\" type=\"d\" name=\"MaxUIVolume\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"IncreaseVolume\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"ReduceNoise\"/>\n"
" </interface>\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<QDBusObjectPath> SinkInputs READ sinkInputs)
QList<QDBusObjectPath> sinkInputs() const;
Q_PROPERTY(QList<QDBusObjectPath> Sinks READ sinks)
QList<QDBusObjectPath> sinks() const;
Q_PROPERTY(QList<QDBusObjectPath> Sources READ sources)
QList<QDBusObjectPath> 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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Bluetooth1\">\n"
" <method name=\"CancelTransferSession\">\n"
" <arg direction=\"in\" type=\"o\" name=\"sessionPath\"/>\n"
" </method>\n"
" <method name=\"ClearUnpairedDevice\"/>\n"
" <method name=\"Confirm\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"accept\"/>\n"
" </method>\n"
" <method name=\"ConnectDevice\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" </method>\n"
" <method name=\"DebugInfo\">\n"
" <arg direction=\"out\" type=\"s\" name=\"info\"/>\n"
" </method>\n"
" <method name=\"DisconnectDevice\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" </method>\n"
" <method name=\"FeedPasskey\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"accept\"/>\n"
" <arg direction=\"in\" type=\"u\" name=\"passkey\"/>\n"
" </method>\n"
" <method name=\"FeedPinCode\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"accept\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"pinCode\"/>\n"
" </method>\n"
" <method name=\"GetAdapters\">\n"
" <arg direction=\"out\" type=\"s\" name=\"adaptersJSON\"/>\n"
" </method>\n"
" <method name=\"GetDevices\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"devicesJSON\"/>\n"
" </method>\n"
" <method name=\"RemoveDevice\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" </method>\n"
" <method name=\"RequestDiscovery\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" </method>\n"
" <method name=\"SendFiles\">\n"
" <arg direction=\"in\" type=\"s\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"as\" name=\"files\"/>\n"
" <arg direction=\"out\" type=\"o\" name=\"sessionPath\"/>\n"
" </method>\n"
" <method name=\"SetAdapterAlias\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"alias\"/>\n"
" </method>\n"
" <method name=\"SetAdapterDiscoverable\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"discoverable\"/>\n"
" </method>\n"
" <method name=\"SetAdapterDiscoverableTimeout\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"u\" name=\"timeout\"/>\n"
" </method>\n"
" <method name=\"SetAdapterDiscovering\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"discovering\"/>\n"
" </method>\n"
" <method name=\"SetAdapterPowered\">\n"
" <arg direction=\"in\" type=\"o\" name=\"adapter\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"powered\"/>\n"
" </method>\n"
" <method name=\"SetDeviceAlias\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"alias\"/>\n"
" </method>\n"
" <method name=\"SetDeviceTrusted\">\n"
" <arg direction=\"in\" type=\"o\" name=\"device\"/>\n"
" <arg direction=\"in\" type=\"b\" name=\"trusted\"/>\n"
" </method>\n"
" <signal name=\"AdapterAdded\">\n"
" <arg type=\"s\" name=\"adapterJSON\"/>\n"
" </signal>\n"
" <signal name=\"AdapterRemoved\">\n"
" <arg type=\"s\" name=\"adapterJSON\"/>\n"
" </signal>\n"
" <signal name=\"AdapterPropertiesChanged\">\n"
" <arg type=\"s\" name=\"adapterJSON\"/>\n"
" </signal>\n"
" <signal name=\"DeviceAdded\">\n"
" <arg type=\"s\" name=\"devJSON\"/>\n"
" </signal>\n"
" <signal name=\"DeviceRemoved\">\n"
" <arg type=\"s\" name=\"devJSON\"/>\n"
" </signal>\n"
" <signal name=\"DevicePropertiesChanged\">\n"
" <arg type=\"s\" name=\"devJSON\"/>\n"
" </signal>\n"
" <signal name=\"DisplayPinCode\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" <arg type=\"s\" name=\"pinCode\"/>\n"
" </signal>\n"
" <signal name=\"DisplayPasskey\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" <arg type=\"u\" name=\"passkey\"/>\n"
" <arg type=\"u\" name=\"entered\"/>\n"
" </signal>\n"
" <signal name=\"RequestConfirmation\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" <arg type=\"s\" name=\"passkey\"/>\n"
" </signal>\n"
" <signal name=\"RequestAuthorization\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"RequestPinCode\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"RequestPasskey\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"Cancelled\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <signal name=\"ObexSessionCreated\">\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" </signal>\n"
" <signal name=\"ObexSessionRemoved\">\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" </signal>\n"
" <signal name=\"ObexSessionProgress\">\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" <arg type=\"t\" name=\"totalSize\"/>\n"
" <arg type=\"t\" name=\"transferred\"/>\n"
" <arg type=\"i\" name=\"currentIdx\"/>\n"
" </signal>\n"
" <signal name=\"TransferCreated\">\n"
" <arg type=\"s\" name=\"file\"/>\n"
" <arg type=\"o\" name=\"transferPath\"/>\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" </signal>\n"
" <signal name=\"TransferRemoved\">\n"
" <arg type=\"s\" name=\"file\"/>\n"
" <arg type=\"o\" name=\"transferPath\"/>\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" <arg type=\"b\" name=\"done\"/>\n"
" </signal>\n"
" <signal name=\"TransferFailed\">\n"
" <arg type=\"s\" name=\"file\"/>\n"
" <arg type=\"o\" name=\"sessionPath\"/>\n"
" <arg type=\"s\" name=\"errInfo\"/>\n"
" </signal>\n"
" <signal name=\"ConnectFailed\">\n"
" <arg type=\"o\" name=\"device\"/>\n"
" </signal>\n"
" <property access=\"read\" type=\"u\" name=\"State\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"DisplaySwitch\"/>\n"
" <property access=\"read\" type=\"b\" name=\"Transportable\"/>\n"
" <property access=\"read\" type=\"b\" name=\"CanSendFile\"/>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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<QDBusObjectPath> Display1Adaptor::monitors() const
{
// get the value of property Monitors
return qvariant_cast< QList<QDBusObjectPath> >(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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Display1\">\n"
" <method name=\"ApplyChanges\"/>\n"
" <method name=\"AssociateTouch\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"AssociateTouchByUUID\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"ChangeBrightness\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"DeleteCustomMode\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetRealDisplayMode\">\n"
" <arg direction=\"out\" type=\"y\"/>\n"
" </method>\n"
" <method name=\"ListOutputNames\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"ListOutputsCommonModes\">\n"
" <arg direction=\"out\" type=\"a(uqqd)\"/>\n"
" <annotation value=\"ResolutionList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"ModifyConfigName\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"RefreshBrightness\"/>\n"
" <method name=\"Reset\"/>\n"
" <method name=\"ResetChanges\"/>\n"
" <method name=\"Save\"/>\n"
" <method name=\"SetAndSaveBrightness\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" </method>\n"
" <method name=\"SetBrightness\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"in\" type=\"d\"/>\n"
" </method>\n"
" <method name=\"SetPrimary\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SwitchMode\">\n"
" <arg direction=\"in\" type=\"y\"/>\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetMethodAdjustCCT\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <method name=\"SetColorTemperature\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"b\" name=\"HasChanged\"/>\n"
" <property access=\"read\" type=\"y\" name=\"DisplayMode\"/>\n"
" <property access=\"read\" type=\"q\" name=\"ScreenWidth\"/>\n"
" <property access=\"read\" type=\"q\" name=\"ScreenHeight\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Primary\"/>\n"
" <property access=\"read\" type=\"s\" name=\"CurrentCustomId\"/>\n"
" <property access=\"read\" type=\"as\" name=\"CustomIdList\"/>\n"
" <property access=\"read\" type=\"u\" name=\"MaxBacklightBrightness\"/>\n"
" <property access=\"read\" type=\"(nnqq)\" name=\"PrimaryRect\">\n"
" <annotation value=\"ScreenRect\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"ao\" name=\"Monitors\"/>\n"
" <property access=\"read\" type=\"a{sd}\" name=\"Brightness\">\n"
" <annotation value=\"BrightnessMap\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"a(isss)\" name=\"Touchscreens\">\n"
" <annotation value=\"TouchscreenInfoList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"a(issss)\" name=\"TouchscreensV2\">\n"
" <annotation value=\"TouchscreenInfoList_V2\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"a{ss}\" name=\"TouchMap\">\n"
" <annotation value=\"TouchscreenMap\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"i\" name=\"ColorTemperatureMode\"/>\n"
" <property access=\"read\" type=\"i\" name=\"ColorTemperatureManual\"/>\n"
" </interface>\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<QDBusObjectPath> Monitors READ monitors)
QList<QDBusObjectPath> 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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class Gesture1Adaptor
*/
Gesture1Adaptor::Gesture1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
Gesture1Adaptor::~Gesture1Adaptor()
{
// destructor
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Gesture1\">\n"
" <signal name=\"TouchSinglePressTimeout\">\n"
" <arg type=\"i\" name=\"time\"/>\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchUpOrCancel\">\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchMoving\">\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchPressTimeout\">\n"
" <arg type=\"i\" name=\"fingers\"/>\n"
" <arg type=\"i\" name=\"time\"/>\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" <signal name=\"TouchEdgeEvent\">\n"
" <arg type=\"s\" name=\"direction\"/>\n"
" <arg type=\"d\" name=\"scalex\"/>\n"
" <arg type=\"d\" name=\"scaley\"/>\n"
" </signal>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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");
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.InputDevice1.Keyboard\">\n"
" <method name=\"AddLayoutOption\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"AddUserLayout\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"ClearLayoutOption\"/>\n"
" <method name=\"DeleteLayoutOption\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"DeleteUserLayout\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetLayoutDesc\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"LayoutList\">\n"
" <arg direction=\"out\" type=\"a{ss}\"/>\n"
" <annotation value=\"KeyboardLayoutList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"Reset\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"RepeatEnabled\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"CapslockToggle\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"CursorBlink\"/>\n"
" <property access=\"readwrite\" type=\"u\" name=\"RepeatInterval\"/>\n"
" <property access=\"readwrite\" type=\"u\" name=\"RepeatDelay\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"LayoutScope\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"CurrentLayout\"/>\n"
" <property access=\"read\" type=\"as\" name=\"UserLayoutList\"/>\n"
" <property access=\"read\" type=\"as\" name=\"UserOptionList\"/>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Launcher1\">\n"
" <property access=\"read\" type=\"b\" name=\"Visible\"/>\n"
" <signal name=\"Closed\"/>\n"
" <signal name=\"Shown\"/>\n"
" <signal name=\"VisibleChanged\">\n"
" <arg direction=\"out\" type=\"b\" name=\"visible\"/>\n"
" </signal>\n"
" <method name=\"Exit\"/>\n"
" <method name=\"Hide\"/>\n"
" <method name=\"Show\"/>\n"
" <method name=\"ShowByMode\">\n"
" <arg direction=\"in\" type=\"x\" name=\"in0\"/>\n"
" </method>\n"
" <method name=\"UninstallApp\">\n"
" <arg direction=\"in\" type=\"s\" name=\"appKey\"/>\n"
" </method>\n"
" <method name=\"Toggle\"/>\n"
" <method name=\"IsVisible\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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"));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Power1\">\n"
" <property access=\"read\" type=\"a{sd}\" name=\"BatteryPercentage\">\n"
" <annotation value=\"BatteryPercentageMap\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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<QDBusObjectPath> Power1Adaptor::GetBatteries()
{
// handle method call org.deepin.dde.Power1.GetBatteries
QList<QDBusObjectPath> batteries;
QMetaObject::invokeMethod(parent(), "GetBatteries", Q_RETURN_ARG(QList<QDBusObjectPath>, 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemPower1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Power1\">\n"
" <method name=\"GetBatteries\">\n"
" <arg direction=\"out\" type=\"ao\" name=\"batteries\"/>\n"
" </method>\n"
" <method name=\"Refresh\"/>\n"
" <method name=\"SetMode\">\n"
" <arg direction=\"in\" type=\"s\" name=\"mode\"/>\n"
" </method>\n"
" <method name=\"RefreshBatteries\"/>\n"
" <method name=\"RefreshMains\"/>\n"
" <signal name=\"BatteryDisplayUpdate\">\n"
" <arg type=\"x\" name=\"timestamp\"/>\n"
" </signal>\n"
" <signal name=\"BatteryAdded\">\n"
" <arg type=\"o\" name=\"objpath\"/>\n"
" </signal>\n"
" <signal name=\"BatteryRemoved\">\n"
" <arg type=\"o\" name=\"objpath\"/>\n"
" </signal>\n"
" <signal name=\"LidClosed\"/>\n"
" <signal name=\"LidOpened\"/>\n"
" <property access=\"read\" type=\"b\" name=\"OnBattery\"/>\n"
" <property access=\"read\" type=\"t\" name=\"BatteryTimeToEmpty\"/>\n"
" <property access=\"read\" type=\"t\" name=\"BatteryTimeToFull\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSavingModeEnabled\"/>\n"
" <property access=\"read\" type=\"b\" name=\"HasLidSwitch\"/>\n"
" <property access=\"read\" type=\"b\" name=\"HasBattery\"/>\n"
" <property access=\"read\" type=\"d\" name=\"BatteryPercentage\"/>\n"
" <property access=\"read\" type=\"u\" name=\"BatteryStatus\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSavingModeAuto\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSystemAutoToSleepWhenFree\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"PowerSavingModeAutoWhenBatteryLow\"/>\n"
" <property access=\"readwrite\" type=\"u\" name=\"PowerSavingModeBrightnessDropPercent\"/>\n"
" <property access=\"read\" type=\"b\" name=\"IsHighPerformanceSupported\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Mode\"/>\n"
" </interface>\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<QDBusObjectPath> 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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.Timedate1\">\n"
" <signal name=\"TimeUpdate\"/>\n"
" <method name=\"AddUserTimezone\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"DeleteUserTimezone\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"GetZoneInfo\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"(ssi(xxi))\"/>\n"
" <annotation value=\"ZoneInfo\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"GetZoneList\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"GetSampleNTPServers\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"SetDate\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" </method>\n"
" <method name=\"SetLocalRTC\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetNTP\">\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetNTPServer\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"SetTime\">\n"
" <arg direction=\"in\" type=\"x\"/>\n"
" <arg direction=\"in\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetTimezone\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" </method>\n"
" <property access=\"read\" type=\"b\" name=\"CanNTP\"/>\n"
" <property access=\"read\" type=\"b\" name=\"NTP\"/>\n"
" <property access=\"read\" type=\"b\" name=\"LocalRTC\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Timezone\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"Use24HourFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"DSTOffset\"/>\n"
" <property access=\"read\" type=\"as\" name=\"UserTimezones\"/>\n"
" <property access=\"read\" type=\"s\" name=\"NTPServer\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"WeekdayFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"ShortDateFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"LongDateFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"ShortTimeFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"LongTimeFormat\"/>\n"
" <property access=\"readwrite\" type=\"i\" name=\"WeekBegins\"/>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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");
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.WMSwitcher1\">\n"
" <method name=\"AllowSwitch\">\n"
" <arg direction=\"out\" type=\"b\" name=\"outArg0\"/>\n"
" </method>\n"
" <method name=\"CurrentWM\">\n"
" <arg direction=\"out\" type=\"s\" name=\"outArg0\"/>\n"
" </method>\n"
" <method name=\"RequestSwitchWM\"/>\n"
" <signal name=\"WMChanged\">\n"
" <arg type=\"s\" name=\"wmName\"/>\n"
" </signal>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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;
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.XEventMonitor1\">\n"
" <method name=\"RegisterArea\">\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"RegisterAreas\">\n"
" <arg direction=\"in\" type=\"a(iiii)\"/>\n"
" <arg direction=\"in\" type=\"i\"/>\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" <annotation value=\"AreaList\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" </method>\n"
" <method name=\"RegisterFullScreen\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"UnregisterArea\">\n"
" <arg direction=\"in\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <signal name=\"CursorInto\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"CursorOut\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"CursorMove\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"ButtonPress\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"ButtonRelease\">\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"KeyPress\">\n"
" <arg type=\"s\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"KeyRelease\">\n"
" <arg type=\"s\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"i\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"CancelAllArea\"/>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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;
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.PlasmaWindow.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.KWayland1.PlasmaWindow\">\n"
" <signal name=\"ActiveChanged\"/>\n"
" <signal name=\"AppIdChanged\"/>\n"
" <signal name=\"CloseableChanged\"/>\n"
" <signal name=\"DemandsAttentionChanged\"/>\n"
" <signal name=\"FullscreenableChanged\"/>\n"
" <signal name=\"FullscreenChanged\"/>\n"
" <signal name=\"GeometryChanged\"/>\n"
" <signal name=\"IconChanged\"/>\n"
" <signal name=\"KeepAboveChanged\"/>\n"
" <signal name=\"KeepBelowChanged\"/>\n"
" <signal name=\"MaximizeableChanged\"/>\n"
" <signal name=\"MaximizedChanged\"/>\n"
" <signal name=\"MinimizeableChanged\"/>\n"
" <signal name=\"MinimizedChanged\"/>\n"
" <signal name=\"MovableChanged\"/>\n"
" <signal name=\"OnAllDesktopsChanged\"/>\n"
" <signal name=\"ParentWindowChanged\"/>\n"
" <signal name=\"PlasmaVirtualDesktopEntered\">\n"
" <arg direction=\"out\" type=\"s\" name=\"id\"/>\n"
" </signal>\n"
" <signal name=\"PlasmaVirtualDesktopLeft\">\n"
" <arg direction=\"out\" type=\"s\" name=\"id\"/>\n"
" </signal>\n"
" <signal name=\"ResizableChanged\"/>\n"
" <signal name=\"ShadeableChanged\"/>\n"
" <signal name=\"ShadedChanged\"/>\n"
" <signal name=\"SkipSwitcherChanged\"/>\n"
" <signal name=\"SkipTaskbarChanged\"/>\n"
" <signal name=\"TitleChanged\"/>\n"
" <signal name=\"Unmapped\"/>\n"
" <signal name=\"VirtualDesktopChangeableChanged\"/>\n"
" <signal name=\"VirtualDesktopChanged\"/>\n"
" <method name=\"AppId\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"Destroy\"/>\n"
" <method name=\"Geometry\">\n"
" <arg direction=\"out\" type=\"(iiii)\"/>\n"
" <annotation value=\"DockRect\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </method>\n"
" <method name=\"Icon\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"InternalId\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"IsActive\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsCloseable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsDemandingAttention\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsFullscreen\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsFullscreenable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsKeepAbove\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsKeepBelow\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMaximizeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMaximized\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMinimizeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMinimized\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsMovable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsOnAllDesktops\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsResizable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsShadeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsShaded\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsValid\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsVirtualDesktopChangeable\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"Pid\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"PlasmaVirtualDesktops\">\n"
" <arg direction=\"out\" type=\"as\"/>\n"
" </method>\n"
" <method name=\"Release\"/>\n"
" <method name=\"RequestActivate\"/>\n"
" <method name=\"RequestClose\"/>\n"
" <method name=\"RequestEnterNewVirtualDesktop\"/>\n"
" <method name=\"RequestEnterVirtualDesktop\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"RequestLeaveVirtualDesktop\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"RequestMove\"/>\n"
" <method name=\"RequestResize\"/>\n"
" <method name=\"RequestToggleKeepAbove\"/>\n"
" <method name=\"RequestToggleKeepBelow\"/>\n"
" <method name=\"RequestToggleMaximized\"/>\n"
" <method name=\"RequestToggleMinimized\"/>\n"
" <method name=\"RequestToggleShaded\"/>\n"
" <method name=\"RequestVirtualDesktop\">\n"
" <arg direction=\"in\" type=\"u\" name=\"desktop\"/>\n"
" </method>\n"
" <method name=\"SkipSwitcher\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SkipTaskbar\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"Title\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"VirtualDesktop\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"WindowId\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" <method name=\"uuid\">\n"
" <arg direction=\"out\" type=\"ay\"/>\n"
" </method>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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;
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.deepin.dde.kwayland.WindowManager.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.deepin.dde.KWayland1.WindowManager\">\n"
" <signal name=\"InterfaceAboutToBeReleased\"/>\n"
" <signal name=\"InterfaceAboutToBeDestroyed\"/>\n"
" <signal name=\"ShowingDesktopChanged\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </signal>\n"
" <signal name=\"WindowCreated\">\n"
" <arg direction=\"out\" type=\"s\" name=\"dbus\"/>\n"
" </signal>\n"
" <signal name=\"WindowRemove\">\n"
" <arg direction=\"out\" type=\"s\" name=\"dbus\"/>\n"
" </signal>\n"
" <signal name=\"ActiveWindowChanged\"/>\n"
" <method name=\"IsValid\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"IsShowingDesktop\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
" <method name=\"SetShowingDesktop\">\n"
" <arg direction=\"in\" type=\"b\" name=\"show\"/>\n"
" </method>\n"
" <method name=\"ShowDesktop\"/>\n"
" <method name=\"HideDesktop\"/>\n"
" <method name=\"Windows\">\n"
" <arg direction=\"out\" type=\"av\"/>\n"
" </method>\n"
" <method name=\"ActiveWindow\">\n"
" <arg direction=\"out\" type=\"u\"/>\n"
" </method>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.freedesktop.FileManager.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.freedesktop.FileManager1\">\n"
" <method name=\"ShowFolders\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"StartupId\"/>\n"
" </method>\n"
" <method name=\"ShowItems\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"StartupId\"/>\n"
" </method>\n"
" <method name=\"ShowItemProperties\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"StartupId\"/>\n"
" </method>\n"
" <method name=\"Trash\">\n"
" <arg direction=\"in\" type=\"as\" name=\"URIs\"/>\n"
" </method>\n"
" </interface>\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

View File

@ -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 <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* 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));
}

View File

@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-dock/toolGenerate/qdbusxml2cpp/org.kde.StatusNotifierItem.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> 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", ""
" <interface name=\"org.kde.StatusNotifierItem\">\n"
" <property access=\"read\" type=\"s\" name=\"Category\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Id\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Title\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Status\"/>\n"
" <property access=\"read\" type=\"i\" name=\"WindowId\"/>\n"
" <property access=\"read\" type=\"s\" name=\"IconThemePath\"/>\n"
" <property access=\"read\" type=\"o\" name=\"Menu\"/>\n"
" <property access=\"read\" type=\"b\" name=\"ItemIsMenu\"/>\n"
" <property access=\"read\" type=\"s\" name=\"IconName\"/>\n"
" <property access=\"read\" type=\"a(iiay)\" name=\"IconPixmap\">\n"
" <annotation value=\"DBusImageList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"OverlayIconName\"/>\n"
" <property access=\"read\" type=\"a(iiay)\" name=\"OverlayIconPixmap\">\n"
" <annotation value=\"DBusImageList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"AttentionIconName\"/>\n"
" <property access=\"read\" type=\"a(iiay)\" name=\"AttentionIconPixmap\">\n"
" <annotation value=\"DBusImageList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"s\" name=\"AttentionMovieName\"/>\n"
" <property access=\"read\" type=\"(sa(iiay)ss)\" name=\"ToolTip\">\n"
" <annotation value=\"DBusToolTip\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <method name=\"ContextMenu\">\n"
" <arg direction=\"in\" type=\"i\" name=\"x\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"y\"/>\n"
" </method>\n"
" <method name=\"Activate\">\n"
" <arg direction=\"in\" type=\"i\" name=\"x\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"y\"/>\n"
" </method>\n"
" <method name=\"SecondaryActivate\">\n"
" <arg direction=\"in\" type=\"i\" name=\"x\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"y\"/>\n"
" </method>\n"
" <method name=\"Scroll\">\n"
" <arg direction=\"in\" type=\"i\" name=\"delta\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"orientation\"/>\n"
" </method>\n"
" <signal name=\"NewTitle\"/>\n"
" <signal name=\"NewIcon\"/>\n"
" <signal name=\"NewAttentionIcon\"/>\n"
" <signal name=\"NewOverlayIcon\"/>\n"
" <signal name=\"NewToolTip\"/>\n"
" <signal name=\"NewStatus\">\n"
" <arg type=\"s\" name=\"status\"/>\n"
" </signal>\n"
" </interface>\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