diff --git a/.reuse/dep5 b/.reuse/dep5 index d7dfe264..0cec0c48 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -61,6 +61,10 @@ Files: CMakeLists.txt tests/dde-lowpower/dde-lowpower.pro Copyright: None License: CC0-1.0 +Files: toolGenerate/**/* +Copyright: None +License: CC0-1.0 + # qss service Files: dde-osd/src/light.qss dde-osd/*.service dde-warning-dialog/*.service dde-welcome/*.service dmemory-warning-dialog/*.service @@ -76,3 +80,4 @@ License: GPL-3.0-or-later Files: dde-osd/src/notification/dbus* global_util/dbus/* Copyright: The Qt Company Ltd. License: CC0-1.0 + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor.cpp new file mode 100644 index 00000000..0b37a4db --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor.cpp @@ -0,0 +1,55 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/com.deepin.chromeExtension.TabsLimit.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimit.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TabsLimitAdaptor + */ + +TabsLimitAdaptor::TabsLimitAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TabsLimitAdaptor::~TabsLimitAdaptor() +{ + // destructor +} + +void TabsLimitAdaptor::CloseTab(int in0) +{ + // handle method call com.deepin.chromeExtension.TabsLimit.CloseTab + QMetaObject::invokeMethod(parent(), "CloseTab", Q_ARG(int, in0)); +} + +QString TabsLimitAdaptor::GetProcessInfo() +{ + // handle method call com.deepin.chromeExtension.TabsLimit.GetProcessInfo + QString out0; + QMetaObject::invokeMethod(parent(), "GetProcessInfo", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void TabsLimitAdaptor::OpenUrl(const QString &in0) +{ + // handle method call com.deepin.chromeExtension.TabsLimit.OpenUrl + QMetaObject::invokeMethod(parent(), "OpenUrl", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor.h new file mode 100644 index 00000000..d08f65ec --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/com.deepin.chromeExtension.TabsLimit.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimitAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimit.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_CHROMEEXTENSION_TABSLIMITADAPTOR_H +#define COM_DEEPIN_CHROMEEXTENSION_TABSLIMITADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/com.deepin.chromeExtension.TabsLimit.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.chromeExtension.TabsLimit + */ +class TabsLimitAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.chromeExtension.TabsLimit") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TabsLimitAdaptor(QObject *parent); + virtual ~TabsLimitAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void CloseTab(int in0); + QString GetProcessInfo(); + void OpenUrl(const QString &in0); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp new file mode 100644 index 00000000..95e0dbe0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp @@ -0,0 +1,361 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Accounts1.User.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class UserAdaptor + */ + +UserAdaptor::UserAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +UserAdaptor::~UserAdaptor() +{ + // destructor +} + +int UserAdaptor::accountType() const +{ + // get the value of property AccountType + return qvariant_cast< int >(parent()->property("AccountType")); +} + +bool UserAdaptor::automaticLogin() const +{ + // get the value of property AutomaticLogin + return qvariant_cast< bool >(parent()->property("AutomaticLogin")); +} + +qulonglong UserAdaptor::createdTime() const +{ + // get the value of property CreatedTime + return qvariant_cast< qulonglong >(parent()->property("CreatedTime")); +} + +QStringList UserAdaptor::desktopBackgrounds() const +{ + // get the value of property DesktopBackgrounds + return qvariant_cast< QStringList >(parent()->property("DesktopBackgrounds")); +} + +QString UserAdaptor::fullName() const +{ + // get the value of property FullName + return qvariant_cast< QString >(parent()->property("FullName")); +} + +QString UserAdaptor::gid() const +{ + // get the value of property Gid + return qvariant_cast< QString >(parent()->property("Gid")); +} + +QString UserAdaptor::greeterBackground() const +{ + // get the value of property GreeterBackground + return qvariant_cast< QString >(parent()->property("GreeterBackground")); +} + +QStringList UserAdaptor::groups() const +{ + // get the value of property Groups + return qvariant_cast< QStringList >(parent()->property("Groups")); +} + +QStringList UserAdaptor::historyLayout() const +{ + // get the value of property HistoryLayout + return qvariant_cast< QStringList >(parent()->property("HistoryLayout")); +} + +QString UserAdaptor::homeDir() const +{ + // get the value of property HomeDir + return qvariant_cast< QString >(parent()->property("HomeDir")); +} + +QString UserAdaptor::iconFile() const +{ + // get the value of property IconFile + return qvariant_cast< QString >(parent()->property("IconFile")); +} + +QStringList UserAdaptor::iconList() const +{ + // get the value of property IconList + return qvariant_cast< QStringList >(parent()->property("IconList")); +} + +QString UserAdaptor::layout() const +{ + // get the value of property Layout + return qvariant_cast< QString >(parent()->property("Layout")); +} + +QString UserAdaptor::locale() const +{ + // get the value of property Locale + return qvariant_cast< QString >(parent()->property("Locale")); +} + +bool UserAdaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +qulonglong UserAdaptor::loginTime() const +{ + // get the value of property LoginTime + return qvariant_cast< qulonglong >(parent()->property("LoginTime")); +} + +int UserAdaptor::longDateFormat() const +{ + // get the value of property LongDateFormat + return qvariant_cast< int >(parent()->property("LongDateFormat")); +} + +int UserAdaptor::longTimeFormat() const +{ + // get the value of property LongTimeFormat + return qvariant_cast< int >(parent()->property("LongTimeFormat")); +} + +int UserAdaptor::maxPasswordAge() const +{ + // get the value of property MaxPasswordAge + return qvariant_cast< int >(parent()->property("MaxPasswordAge")); +} + +bool UserAdaptor::noPasswdLogin() const +{ + // get the value of property NoPasswdLogin + return qvariant_cast< bool >(parent()->property("NoPasswdLogin")); +} + +QString UserAdaptor::passwordHint() const +{ + // get the value of property PasswordHint + return qvariant_cast< QString >(parent()->property("PasswordHint")); +} + +int UserAdaptor::passwordLastChange() const +{ + // get the value of property PasswordLastChange + return qvariant_cast< int >(parent()->property("PasswordLastChange")); +} + +QString UserAdaptor::passwordStatus() const +{ + // get the value of property PasswordStatus + return qvariant_cast< QString >(parent()->property("PasswordStatus")); +} + +QString UserAdaptor::shell() const +{ + // get the value of property Shell + return qvariant_cast< QString >(parent()->property("Shell")); +} + +int UserAdaptor::shortDateFormat() const +{ + // get the value of property ShortDateFormat + return qvariant_cast< int >(parent()->property("ShortDateFormat")); +} + +int UserAdaptor::shortTimeFormat() const +{ + // get the value of property ShortTimeFormat + return qvariant_cast< int >(parent()->property("ShortTimeFormat")); +} + +bool UserAdaptor::systemAccount() const +{ + // get the value of property SystemAccount + return qvariant_cast< bool >(parent()->property("SystemAccount")); +} + +QString UserAdaptor::uid() const +{ + // get the value of property Uid + return qvariant_cast< QString >(parent()->property("Uid")); +} + +bool UserAdaptor::use24HourFormat() const +{ + // get the value of property Use24HourFormat + return qvariant_cast< bool >(parent()->property("Use24HourFormat")); +} + +QString UserAdaptor::userName() const +{ + // get the value of property UserName + return qvariant_cast< QString >(parent()->property("UserName")); +} + +int UserAdaptor::weekBegins() const +{ + // get the value of property WeekBegins + return qvariant_cast< int >(parent()->property("WeekBegins")); +} + +int UserAdaptor::weekdayFormat() const +{ + // get the value of property WeekdayFormat + return qvariant_cast< int >(parent()->property("WeekdayFormat")); +} + +QString UserAdaptor::xSession() const +{ + // get the value of property XSession + return qvariant_cast< QString >(parent()->property("XSession")); +} + +void UserAdaptor::AddGroup(const QString &group) +{ + // handle method call org.deepin.dde.Accounts1.User.AddGroup + QMetaObject::invokeMethod(parent(), "AddGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteGroup(const QString &group) +{ + // handle method call org.deepin.dde.Accounts1.User.DeleteGroup + QMetaObject::invokeMethod(parent(), "DeleteGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteIconFile(const QString &iconFile) +{ + // handle method call org.deepin.dde.Accounts1.User.DeleteIconFile + QMetaObject::invokeMethod(parent(), "DeleteIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::EnableNoPasswdLogin(bool enabled) +{ + // handle method call org.deepin.dde.Accounts1.User.EnableNoPasswdLogin + QMetaObject::invokeMethod(parent(), "EnableNoPasswdLogin", Q_ARG(bool, enabled)); +} + +bool UserAdaptor::IsPasswordExpired() +{ + // handle method call org.deepin.dde.Accounts1.User.IsPasswordExpired + bool out0; + QMetaObject::invokeMethod(parent(), "IsPasswordExpired", Q_RETURN_ARG(bool, out0)); + return out0; +} + +int UserAdaptor::PasswordExpiredInfo(int &dayLeft) +{ + // handle method call org.deepin.dde.Accounts1.User.PasswordExpiredInfo + //return static_cast(parent())->PasswordExpiredInfo(dayLeft); +} + +void UserAdaptor::SetAutomaticLogin(bool enabled) +{ + // handle method call org.deepin.dde.Accounts1.User.SetAutomaticLogin + QMetaObject::invokeMethod(parent(), "SetAutomaticLogin", Q_ARG(bool, enabled)); +} + +void UserAdaptor::SetDesktopBackgrounds(const QStringList &backgrounds) +{ + // handle method call org.deepin.dde.Accounts1.User.SetDesktopBackgrounds + QMetaObject::invokeMethod(parent(), "SetDesktopBackgrounds", Q_ARG(QStringList, backgrounds)); +} + +void UserAdaptor::SetFullName(const QString &name) +{ + // handle method call org.deepin.dde.Accounts1.User.SetFullName + QMetaObject::invokeMethod(parent(), "SetFullName", Q_ARG(QString, name)); +} + +void UserAdaptor::SetGreeterBackground(const QString &background) +{ + // handle method call org.deepin.dde.Accounts1.User.SetGreeterBackground + QMetaObject::invokeMethod(parent(), "SetGreeterBackground", Q_ARG(QString, background)); +} + +void UserAdaptor::SetGroups(const QStringList &groups) +{ + // handle method call org.deepin.dde.Accounts1.User.SetGroups + QMetaObject::invokeMethod(parent(), "SetGroups", Q_ARG(QStringList, groups)); +} + +void UserAdaptor::SetHistoryLayout(const QStringList &layouts) +{ + // handle method call org.deepin.dde.Accounts1.User.SetHistoryLayout + QMetaObject::invokeMethod(parent(), "SetHistoryLayout", Q_ARG(QStringList, layouts)); +} + +void UserAdaptor::SetHomeDir(const QString &home) +{ + // handle method call org.deepin.dde.Accounts1.User.SetHomeDir + QMetaObject::invokeMethod(parent(), "SetHomeDir", Q_ARG(QString, home)); +} + +void UserAdaptor::SetIconFile(const QString &iconFile) +{ + // handle method call org.deepin.dde.Accounts1.User.SetIconFile + QMetaObject::invokeMethod(parent(), "SetIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::SetLayout(const QString &layout) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLayout + QMetaObject::invokeMethod(parent(), "SetLayout", Q_ARG(QString, layout)); +} + +void UserAdaptor::SetLocale(const QString &locale) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLocale + QMetaObject::invokeMethod(parent(), "SetLocale", Q_ARG(QString, locale)); +} + +void UserAdaptor::SetLocked(bool locked) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, locked)); +} + +void UserAdaptor::SetMaxPasswordAge(int nDays) +{ + // handle method call org.deepin.dde.Accounts1.User.SetMaxPasswordAge + QMetaObject::invokeMethod(parent(), "SetMaxPasswordAge", Q_ARG(int, nDays)); +} + +void UserAdaptor::SetPassword(const QString &password) +{ + // handle method call org.deepin.dde.Accounts1.User.SetPassword + QMetaObject::invokeMethod(parent(), "SetPassword", Q_ARG(QString, password)); +} + +void UserAdaptor::SetPasswordHint(const QString &hint) +{ + // handle method call org.deepin.dde.Accounts1.User.SetPasswordHint + QMetaObject::invokeMethod(parent(), "SetPasswordHint", Q_ARG(QString, hint)); +} + +void UserAdaptor::SetShell(const QString &shell) +{ + // handle method call org.deepin.dde.Accounts1.User.SetShell + QMetaObject::invokeMethod(parent(), "SetShell", Q_ARG(QString, shell)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h new file mode 100644 index 00000000..bfb30191 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h @@ -0,0 +1,264 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Accounts1.User.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_ACCOUNTS1_USERADAPTOR_H +#define ORG_DEEPIN_DDE_ACCOUNTS1_USERADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Accounts1.User + */ +class UserAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Accounts1.User") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + UserAdaptor(QObject *parent); + virtual ~UserAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int AccountType READ accountType) + int accountType() const; + + Q_PROPERTY(bool AutomaticLogin READ automaticLogin) + bool automaticLogin() const; + + Q_PROPERTY(qulonglong CreatedTime READ createdTime) + qulonglong createdTime() const; + + Q_PROPERTY(QStringList DesktopBackgrounds READ desktopBackgrounds) + QStringList desktopBackgrounds() const; + + Q_PROPERTY(QString FullName READ fullName) + QString fullName() const; + + Q_PROPERTY(QString Gid READ gid) + QString gid() const; + + Q_PROPERTY(QString GreeterBackground READ greeterBackground) + QString greeterBackground() const; + + Q_PROPERTY(QStringList Groups READ groups) + QStringList groups() const; + + Q_PROPERTY(QStringList HistoryLayout READ historyLayout) + QStringList historyLayout() const; + + Q_PROPERTY(QString HomeDir READ homeDir) + QString homeDir() const; + + Q_PROPERTY(QString IconFile READ iconFile) + QString iconFile() const; + + Q_PROPERTY(QStringList IconList READ iconList) + QStringList iconList() const; + + Q_PROPERTY(QString Layout READ layout) + QString layout() const; + + Q_PROPERTY(QString Locale READ locale) + QString locale() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(qulonglong LoginTime READ loginTime) + qulonglong loginTime() const; + + Q_PROPERTY(int LongDateFormat READ longDateFormat) + int longDateFormat() const; + + Q_PROPERTY(int LongTimeFormat READ longTimeFormat) + int longTimeFormat() const; + + Q_PROPERTY(int MaxPasswordAge READ maxPasswordAge) + int maxPasswordAge() const; + + Q_PROPERTY(bool NoPasswdLogin READ noPasswdLogin) + bool noPasswdLogin() const; + + Q_PROPERTY(QString PasswordHint READ passwordHint) + QString passwordHint() const; + + Q_PROPERTY(int PasswordLastChange READ passwordLastChange) + int passwordLastChange() const; + + Q_PROPERTY(QString PasswordStatus READ passwordStatus) + QString passwordStatus() const; + + Q_PROPERTY(QString Shell READ shell) + QString shell() const; + + Q_PROPERTY(int ShortDateFormat READ shortDateFormat) + int shortDateFormat() const; + + Q_PROPERTY(int ShortTimeFormat READ shortTimeFormat) + int shortTimeFormat() const; + + Q_PROPERTY(bool SystemAccount READ systemAccount) + bool systemAccount() const; + + Q_PROPERTY(QString Uid READ uid) + QString uid() const; + + Q_PROPERTY(bool Use24HourFormat READ use24HourFormat) + bool use24HourFormat() const; + + Q_PROPERTY(QString UserName READ userName) + QString userName() const; + + Q_PROPERTY(int WeekBegins READ weekBegins) + int weekBegins() const; + + Q_PROPERTY(int WeekdayFormat READ weekdayFormat) + int weekdayFormat() const; + + Q_PROPERTY(QString XSession READ xSession) + QString xSession() const; + +public Q_SLOTS: // METHODS + void AddGroup(const QString &group); + void DeleteGroup(const QString &group); + void DeleteIconFile(const QString &iconFile); + void EnableNoPasswdLogin(bool enabled); + bool IsPasswordExpired(); + int PasswordExpiredInfo(int &dayLeft); + void SetAutomaticLogin(bool enabled); + void SetDesktopBackgrounds(const QStringList &backgrounds); + void SetFullName(const QString &name); + void SetGreeterBackground(const QString &background); + void SetGroups(const QStringList &groups); + void SetHistoryLayout(const QStringList &layouts); + void SetHomeDir(const QString &home); + void SetIconFile(const QString &iconFile); + void SetLayout(const QString &layout); + void SetLocale(const QString &locale); + void SetLocked(bool locked); + void SetMaxPasswordAge(int nDays); + void SetPassword(const QString &password); + void SetPasswordHint(const QString &hint); + void SetShell(const QString &shell); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp new file mode 100644 index 00000000..f0cb7a97 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp @@ -0,0 +1,133 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Accounts1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Accounts1Adaptor + */ + +Accounts1Adaptor::Accounts1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Accounts1Adaptor::~Accounts1Adaptor() +{ + // destructor +} + +bool Accounts1Adaptor::allowGuest() const +{ + // get the value of property AllowGuest + return qvariant_cast< bool >(parent()->property("AllowGuest")); +} + +QString Accounts1Adaptor::guestIcon() const +{ + // get the value of property GuestIcon + return qvariant_cast< QString >(parent()->property("GuestIcon")); +} + +QStringList Accounts1Adaptor::userList() const +{ + // get the value of property UserList + return qvariant_cast< QStringList >(parent()->property("UserList")); +} + +void Accounts1Adaptor::AllowGuestAccount(bool in0) +{ + // handle method call org.deepin.dde.Accounts1.AllowGuestAccount + QMetaObject::invokeMethod(parent(), "AllowGuestAccount", Q_ARG(bool, in0)); +} + +QString Accounts1Adaptor::CreateGuestAccount() +{ + // handle method call org.deepin.dde.Accounts1.CreateGuestAccount + QString out0; + QMetaObject::invokeMethod(parent(), "CreateGuestAccount", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusObjectPath Accounts1Adaptor::CreateUser(const QString &in0, const QString &in1, int in2) +{ + // handle method call org.deepin.dde.Accounts1.CreateUser + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "CreateUser", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); + return out0; +} + +void Accounts1Adaptor::DeleteUser(const QString &in0, bool in1) +{ + // handle method call org.deepin.dde.Accounts1.DeleteUser + QMetaObject::invokeMethod(parent(), "DeleteUser", Q_ARG(QString, in0), Q_ARG(bool, in1)); +} + +QString Accounts1Adaptor::FindUserById(const QString &in0) +{ + // handle method call org.deepin.dde.Accounts1.FindUserById + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserById", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString Accounts1Adaptor::FindUserByName(const QString &in0) +{ + // handle method call org.deepin.dde.Accounts1.FindUserByName + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserByName", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList Accounts1Adaptor::GetGroups() +{ + // handle method call org.deepin.dde.Accounts1.GetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetGroups", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList Accounts1Adaptor::GetPresetGroups(int in0) +{ + // handle method call org.deepin.dde.Accounts1.GetPresetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetPresetGroups", Q_RETURN_ARG(QStringList, out0), Q_ARG(int, in0)); + return out0; +} + +bool Accounts1Adaptor::IsPasswordValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call org.deepin.dde.Accounts1.IsPasswordValid + //return static_cast(parent())->IsPasswordValid(in0, out1, out2); +} + +bool Accounts1Adaptor::IsUsernameValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call org.deepin.dde.Accounts1.IsUsernameValid + //return static_cast(parent())->IsUsernameValid(in0, out1, out2); +} + +QString Accounts1Adaptor::RandUserIcon() +{ + // handle method call org.deepin.dde.Accounts1.RandUserIcon + QString out0; + QMetaObject::invokeMethod(parent(), "RandUserIcon", Q_RETURN_ARG(QString, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h new file mode 100644 index 00000000..76e28e3f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h @@ -0,0 +1,124 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Accounts1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_ACCOUNTS1ADAPTOR_H +#define ORG_DEEPIN_DDE_ACCOUNTS1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Accounts1 + */ +class Accounts1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Accounts1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Accounts1Adaptor(QObject *parent); + virtual ~Accounts1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AllowGuest READ allowGuest) + bool allowGuest() const; + + Q_PROPERTY(QString GuestIcon READ guestIcon) + QString guestIcon() const; + + Q_PROPERTY(QStringList UserList READ userList) + QStringList userList() const; + +public Q_SLOTS: // METHODS + void AllowGuestAccount(bool in0); + QString CreateGuestAccount(); + QDBusObjectPath CreateUser(const QString &in0, const QString &in1, int in2); + void DeleteUser(const QString &in0, bool in1); + QString FindUserById(const QString &in0); + QString FindUserByName(const QString &in0); + QStringList GetGroups(); + QStringList GetPresetGroups(int in0); + bool IsPasswordValid(const QString &in0, QString &out1, int &out2); + bool IsUsernameValid(const QString &in0, QString &out1, int &out2); + QString RandUserIcon(); +Q_SIGNALS: // SIGNALS + void UserAdded(const QString &in0); + void UserDeleted(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp new file mode 100644 index 00000000..7a99d3bf --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp @@ -0,0 +1,219 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Appearance1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-session-ui/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-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Appearance1Adaptor + */ + +Appearance1Adaptor::Appearance1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Appearance1Adaptor::~Appearance1Adaptor() +{ + // destructor +} + +QString Appearance1Adaptor::background() const +{ + // get the value of property Background + return qvariant_cast< QString >(parent()->property("Background")); +} + +void Appearance1Adaptor::setBackground(const QString &value) +{ + // set the value of property Background + parent()->setProperty("Background", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::cursorTheme() const +{ + // get the value of property CursorTheme + return qvariant_cast< QString >(parent()->property("CursorTheme")); +} + +void Appearance1Adaptor::setCursorTheme(const QString &value) +{ + // set the value of property CursorTheme + parent()->setProperty("CursorTheme", QVariant::fromValue(value)); +} + +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::gtkTheme() const +{ + // get the value of property GtkTheme + return qvariant_cast< QString >(parent()->property("GtkTheme")); +} + +void Appearance1Adaptor::setGtkTheme(const QString &value) +{ + // set the value of property GtkTheme + parent()->setProperty("GtkTheme", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::iconTheme() const +{ + // get the value of property IconTheme + return qvariant_cast< QString >(parent()->property("IconTheme")); +} + +void Appearance1Adaptor::setIconTheme(const QString &value) +{ + // set the value of property IconTheme + parent()->setProperty("IconTheme", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::monospaceFont() const +{ + // get the value of property MonospaceFont + return qvariant_cast< QString >(parent()->property("MonospaceFont")); +} + +void Appearance1Adaptor::setMonospaceFont(const QString &value) +{ + // set the value of property MonospaceFont + parent()->setProperty("MonospaceFont", QVariant::fromValue(value)); +} + +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")); +} + +void Appearance1Adaptor::setStandardFont(const QString &value) +{ + // set the value of property StandardFont + parent()->setProperty("StandardFont", QVariant::fromValue(value)); +} + +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)); +} + +void Appearance1Adaptor::Delete(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Appearance1.Delete + QMetaObject::invokeMethod(parent(), "Delete", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +double Appearance1Adaptor::GetScaleFactor() +{ + // handle method call org.deepin.dde.Appearance1.GetScaleFactor + double out0; + QMetaObject::invokeMethod(parent(), "GetScaleFactor", Q_RETURN_ARG(double, out0)); + return out0; +} + +QMap Appearance1Adaptor::GetScreenScaleFactors() +{ + // handle method call org.deepin.dde.Appearance1.GetScreenScaleFactors + QMap scaleFactors; + QMetaObject::invokeMethod(parent(), "GetScreenScaleFactors", Q_RETURN_ARG(QMap, scaleFactors)); + return scaleFactors; +} + +QString Appearance1Adaptor::List(const QString &in0) +{ + // handle method call org.deepin.dde.Appearance1.List + QString out0; + QMetaObject::invokeMethod(parent(), "List", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +void Appearance1Adaptor::Set(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Appearance1.Set + QMetaObject::invokeMethod(parent(), "Set", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Appearance1Adaptor::SetScaleFactor(double in0) +{ + // handle method call org.deepin.dde.Appearance1.SetScaleFactor + QMetaObject::invokeMethod(parent(), "SetScaleFactor", Q_ARG(double, in0)); +} + +void Appearance1Adaptor::SetScreenScaleFactors(const QMap &scaleFactors) +{ + // handle method call org.deepin.dde.Appearance1.SetScreenScaleFactors + QMetaObject::invokeMethod(parent(), "SetScreenScaleFactors", Q_ARG(QMap, scaleFactors)); +} + +QString Appearance1Adaptor::Show(const QString &in0, const QStringList &in1) +{ + // handle method call org.deepin.dde.Appearance1.Show + QString out0; + QMetaObject::invokeMethod(parent(), "Show", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(QStringList, in1)); + return out0; +} + +QString Appearance1Adaptor::Thumbnail(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Appearance1.Thumbnail + QString out0; + QMetaObject::invokeMethod(parent(), "Thumbnail", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h new file mode 100644 index 00000000..d1be9e44 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h @@ -0,0 +1,151 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Appearance1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_APPEARANCE1ADAPTOR_H +#define ORG_DEEPIN_DDE_APPEARANCE1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Appearance1 + */ +class Appearance1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Appearance1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Appearance1Adaptor(QObject *parent); + virtual ~Appearance1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString Background READ background WRITE setBackground) + QString background() const; + void setBackground(const QString &value); + + Q_PROPERTY(QString CursorTheme READ cursorTheme WRITE setCursorTheme) + QString cursorTheme() const; + void setCursorTheme(const QString &value); + + Q_PROPERTY(double FontSize READ fontSize WRITE setFontSize) + double fontSize() const; + void setFontSize(double value); + + Q_PROPERTY(QString GtkTheme READ gtkTheme WRITE setGtkTheme) + QString gtkTheme() const; + void setGtkTheme(const QString &value); + + Q_PROPERTY(QString IconTheme READ iconTheme WRITE setIconTheme) + QString iconTheme() const; + void setIconTheme(const QString &value); + + Q_PROPERTY(QString MonospaceFont READ monospaceFont WRITE setMonospaceFont) + QString monospaceFont() const; + void setMonospaceFont(const QString &value); + + 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 WRITE setStandardFont) + QString standardFont() const; + void setStandardFont(const QString &value); + + Q_PROPERTY(QString WallpaperSlideShow READ wallpaperSlideShow WRITE setWallpaperSlideShow) + QString wallpaperSlideShow() const; + void setWallpaperSlideShow(const QString &value); + +public Q_SLOTS: // METHODS + void Delete(const QString &in0, const QString &in1); + double GetScaleFactor(); + QMap GetScreenScaleFactors(); + QString List(const QString &in0); + void Set(const QString &in0, const QString &in1); + void SetScaleFactor(double in0); + void SetScreenScaleFactors(const QMap &scaleFactors); + QString Show(const QString &in0, const QStringList &in1); + QString Thumbnail(const QString &in0, const QString &in1); +Q_SIGNALS: // SIGNALS + void Changed(const QString &in0, const QString &in1); + void Refreshed(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp new file mode 100644 index 00000000..ffed574b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp @@ -0,0 +1,145 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Audio1.Sink.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-session-ui/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-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SinkAdaptor + */ + +SinkAdaptor::SinkAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SinkAdaptor::~SinkAdaptor() +{ + // destructor +} + +AudioPort SinkAdaptor::activePort() const +{ + // get the value of property ActivePort + return qvariant_cast< AudioPort >(parent()->property("ActivePort")); +} + +double SinkAdaptor::balance() const +{ + // get the value of property Balance + return qvariant_cast< double >(parent()->property("Balance")); +} + +double SinkAdaptor::baseVolume() const +{ + // get the value of property BaseVolume + return qvariant_cast< double >(parent()->property("BaseVolume")); +} + +uint SinkAdaptor::card() const +{ + // get the value of property Card + return qvariant_cast< uint >(parent()->property("Card")); +} + +QString SinkAdaptor::description() const +{ + // get the value of property Description + return qvariant_cast< QString >(parent()->property("Description")); +} + +double SinkAdaptor::fade() const +{ + // get the value of property Fade + return qvariant_cast< double >(parent()->property("Fade")); +} + +bool SinkAdaptor::mute() const +{ + // get the value of property Mute + return qvariant_cast< bool >(parent()->property("Mute")); +} + +QString SinkAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +AudioPortList SinkAdaptor::ports() const +{ + // get the value of property Ports + return qvariant_cast< AudioPortList >(parent()->property("Ports")); +} + +bool SinkAdaptor::supportBalance() const +{ + // get the value of property SupportBalance + return qvariant_cast< bool >(parent()->property("SupportBalance")); +} + +bool SinkAdaptor::supportFade() const +{ + // get the value of property SupportFade + return qvariant_cast< bool >(parent()->property("SupportFade")); +} + +double SinkAdaptor::volume() const +{ + // get the value of property Volume + return qvariant_cast< double >(parent()->property("Volume")); +} + +QDBusObjectPath SinkAdaptor::GetMeter() +{ + // handle method call org.deepin.dde.Audio1.Sink.GetMeter + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetMeter", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +void SinkAdaptor::SetBalance(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetBalance + QMetaObject::invokeMethod(parent(), "SetBalance", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + +void SinkAdaptor::SetFade(double in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetFade + QMetaObject::invokeMethod(parent(), "SetFade", Q_ARG(double, in0)); +} + +void SinkAdaptor::SetMute(bool in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetMute + QMetaObject::invokeMethod(parent(), "SetMute", Q_ARG(bool, in0)); +} + +void SinkAdaptor::SetPort(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(QString, in0)); +} + +void SinkAdaptor::SetVolume(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetVolume + QMetaObject::invokeMethod(parent(), "SetVolume", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h new file mode 100644 index 00000000..7098a5e0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h @@ -0,0 +1,125 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Audio1.Sink.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_AUDIO1_SINKADAPTOR_H +#define ORG_DEEPIN_DDE_AUDIO1_SINKADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Audio1.Sink + */ +class SinkAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1.Sink") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SinkAdaptor(QObject *parent); + virtual ~SinkAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(AudioPort ActivePort READ activePort) + AudioPort activePort() const; + + Q_PROPERTY(double Balance READ balance) + double balance() const; + + Q_PROPERTY(double BaseVolume READ baseVolume) + double baseVolume() const; + + Q_PROPERTY(uint Card READ card) + uint card() const; + + Q_PROPERTY(QString Description READ description) + QString description() const; + + Q_PROPERTY(double Fade READ fade) + double fade() const; + + Q_PROPERTY(bool Mute READ mute) + bool mute() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(AudioPortList Ports READ ports) + AudioPortList ports() const; + + Q_PROPERTY(bool SupportBalance READ supportBalance) + bool supportBalance() const; + + Q_PROPERTY(bool SupportFade READ supportFade) + bool supportFade() const; + + Q_PROPERTY(double Volume READ volume) + double volume() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath GetMeter(); + void SetBalance(double in0, bool in1); + void SetFade(double in0); + void SetMute(bool in0); + void SetPort(const QString &in0); + void SetVolume(double in0, bool in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp new file mode 100644 index 00000000..d465d6b2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp @@ -0,0 +1,163 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Audio1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-session-ui/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-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Audio1Adaptor + */ + +Audio1Adaptor::Audio1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Audio1Adaptor::~Audio1Adaptor() +{ + // destructor +} + +QString Audio1Adaptor::bluetoothAudioMode() const +{ + // get the value of property BluetoothAudioMode + return qvariant_cast< QString >(parent()->property("BluetoothAudioMode")); +} + +QStringList Audio1Adaptor::bluetoothAudioModeOpts() const +{ + // get the value of property BluetoothAudioModeOpts + return qvariant_cast< QStringList >(parent()->property("BluetoothAudioModeOpts")); +} + +QString Audio1Adaptor::cards() const +{ + // get the value of property Cards + return qvariant_cast< QString >(parent()->property("Cards")); +} + +QString Audio1Adaptor::cardsWithoutUnavailable() const +{ + // get the value of property CardsWithoutUnavailable + return qvariant_cast< QString >(parent()->property("CardsWithoutUnavailable")); +} + +QDBusObjectPath Audio1Adaptor::defaultSink() const +{ + // get the value of property DefaultSink + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSink")); +} + +QDBusObjectPath Audio1Adaptor::defaultSource() const +{ + // get the value of property DefaultSource + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSource")); +} + +bool Audio1Adaptor::increaseVolume() const +{ + // get the value of property IncreaseVolume + return qvariant_cast< bool >(parent()->property("IncreaseVolume")); +} + +void Audio1Adaptor::setIncreaseVolume(bool value) +{ + // set the value of property IncreaseVolume + parent()->setProperty("IncreaseVolume", QVariant::fromValue(value)); +} + +double Audio1Adaptor::maxUIVolume() const +{ + // get the value of property MaxUIVolume + return qvariant_cast< double >(parent()->property("MaxUIVolume")); +} + +bool Audio1Adaptor::reduceNoise() const +{ + // get the value of property ReduceNoise + return qvariant_cast< bool >(parent()->property("ReduceNoise")); +} + +void Audio1Adaptor::setReduceNoise(bool value) +{ + // set the value of property ReduceNoise + parent()->setProperty("ReduceNoise", QVariant::fromValue(value)); +} + +QList Audio1Adaptor::sinkInputs() const +{ + // get the value of property SinkInputs + return qvariant_cast< QList >(parent()->property("SinkInputs")); +} + +QList Audio1Adaptor::sinks() const +{ + // get the value of property Sinks + return qvariant_cast< QList >(parent()->property("Sinks")); +} + +QList Audio1Adaptor::sources() const +{ + // get the value of property Sources + return qvariant_cast< QList >(parent()->property("Sources")); +} + +bool Audio1Adaptor::IsPortEnabled(uint in0, const QString &in1) +{ + // handle method call org.deepin.dde.Audio1.IsPortEnabled + bool out0; + QMetaObject::invokeMethod(parent(), "IsPortEnabled", Q_RETURN_ARG(bool, out0), Q_ARG(uint, in0), Q_ARG(QString, in1)); + return out0; +} + +void Audio1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Audio1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Audio1Adaptor::SetBluetoothAudioMode(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetBluetoothAudioMode + QMetaObject::invokeMethod(parent(), "SetBluetoothAudioMode", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetDefaultSink(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetDefaultSink + QMetaObject::invokeMethod(parent(), "SetDefaultSink", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetDefaultSource(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetDefaultSource + QMetaObject::invokeMethod(parent(), "SetDefaultSource", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetPort(uint in0, const QString &in1, int in2) +{ + // handle method call org.deepin.dde.Audio1.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); +} + +void Audio1Adaptor::SetPortEnabled(uint in0, const QString &in1, bool in2) +{ + // handle method call org.deepin.dde.Audio1.SetPortEnabled + QMetaObject::invokeMethod(parent(), "SetPortEnabled", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(bool, in2)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h new file mode 100644 index 00000000..de0e720b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h @@ -0,0 +1,137 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Audio1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_AUDIO1ADAPTOR_H +#define ORG_DEEPIN_DDE_AUDIO1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Audio1 + */ +class Audio1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Audio1Adaptor(QObject *parent); + virtual ~Audio1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString BluetoothAudioMode READ bluetoothAudioMode) + QString bluetoothAudioMode() const; + + Q_PROPERTY(QStringList BluetoothAudioModeOpts READ bluetoothAudioModeOpts) + QStringList bluetoothAudioModeOpts() const; + + Q_PROPERTY(QString Cards READ cards) + QString cards() const; + + Q_PROPERTY(QString CardsWithoutUnavailable READ cardsWithoutUnavailable) + QString cardsWithoutUnavailable() const; + + Q_PROPERTY(QDBusObjectPath DefaultSink READ defaultSink) + QDBusObjectPath defaultSink() const; + + Q_PROPERTY(QDBusObjectPath DefaultSource READ defaultSource) + QDBusObjectPath defaultSource() const; + + Q_PROPERTY(bool IncreaseVolume READ increaseVolume WRITE setIncreaseVolume) + bool increaseVolume() const; + void setIncreaseVolume(bool value); + + Q_PROPERTY(double MaxUIVolume READ maxUIVolume) + double maxUIVolume() const; + + Q_PROPERTY(bool ReduceNoise READ reduceNoise WRITE setReduceNoise) + bool reduceNoise() const; + void setReduceNoise(bool value); + + Q_PROPERTY(QList SinkInputs READ sinkInputs) + QList sinkInputs() const; + + Q_PROPERTY(QList Sinks READ sinks) + QList sinks() const; + + Q_PROPERTY(QList Sources READ sources) + QList sources() const; + +public Q_SLOTS: // METHODS + bool IsPortEnabled(uint in0, const QString &in1); + void Reset(); + void SetBluetoothAudioMode(const QString &in0); + void SetDefaultSink(const QString &in0); + void SetDefaultSource(const QString &in0); + void SetPort(uint in0, const QString &in1, int in2); + void SetPortEnabled(uint in0, const QString &in1, bool in2); +Q_SIGNALS: // SIGNALS + void PortEnabledChanged(uint in0, const QString &in1, bool in2); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp new file mode 100644 index 00000000..da14e68a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp @@ -0,0 +1,193 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Bluetooth1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-session-ui/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-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Bluetooth1Adaptor + */ + +Bluetooth1Adaptor::Bluetooth1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Bluetooth1Adaptor::~Bluetooth1Adaptor() +{ + // destructor +} + +bool Bluetooth1Adaptor::canSendFile() const +{ + // get the value of property CanSendFile + return qvariant_cast< bool >(parent()->property("CanSendFile")); +} + +bool Bluetooth1Adaptor::displaySwitch() const +{ + // get the value of property DisplaySwitch + return qvariant_cast< bool >(parent()->property("DisplaySwitch")); +} + +void Bluetooth1Adaptor::setDisplaySwitch(bool value) +{ + // set the value of property DisplaySwitch + parent()->setProperty("DisplaySwitch", QVariant::fromValue(value)); +} + +uint Bluetooth1Adaptor::state() const +{ + // get the value of property State + return qvariant_cast< uint >(parent()->property("State")); +} + +bool Bluetooth1Adaptor::transportable() const +{ + // get the value of property Transportable + return qvariant_cast< bool >(parent()->property("Transportable")); +} + +void Bluetooth1Adaptor::CancelTransferSession(const QDBusObjectPath &sessionPath) +{ + // handle method call org.deepin.dde.Bluetooth1.CancelTransferSession + QMetaObject::invokeMethod(parent(), "CancelTransferSession", Q_ARG(QDBusObjectPath, sessionPath)); +} + +void Bluetooth1Adaptor::ClearUnpairedDevice() +{ + // handle method call org.deepin.dde.Bluetooth1.ClearUnpairedDevice + QMetaObject::invokeMethod(parent(), "ClearUnpairedDevice"); +} + +void Bluetooth1Adaptor::Confirm(const QDBusObjectPath &device, bool accept) +{ + // handle method call org.deepin.dde.Bluetooth1.Confirm + QMetaObject::invokeMethod(parent(), "Confirm", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept)); +} + +void Bluetooth1Adaptor::ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.ConnectDevice + QMetaObject::invokeMethod(parent(), "ConnectDevice", Q_ARG(QDBusObjectPath, device), Q_ARG(QDBusObjectPath, adapter)); +} + +QString Bluetooth1Adaptor::DebugInfo() +{ + // handle method call org.deepin.dde.Bluetooth1.DebugInfo + QString info; + QMetaObject::invokeMethod(parent(), "DebugInfo", Q_RETURN_ARG(QString, info)); + return info; +} + +void Bluetooth1Adaptor::DisconnectDevice(const QDBusObjectPath &device) +{ + // handle method call org.deepin.dde.Bluetooth1.DisconnectDevice + QMetaObject::invokeMethod(parent(), "DisconnectDevice", Q_ARG(QDBusObjectPath, device)); +} + +void Bluetooth1Adaptor::FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey) +{ + // handle method call org.deepin.dde.Bluetooth1.FeedPasskey + QMetaObject::invokeMethod(parent(), "FeedPasskey", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(uint, passkey)); +} + +void Bluetooth1Adaptor::FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode) +{ + // handle method call org.deepin.dde.Bluetooth1.FeedPinCode + QMetaObject::invokeMethod(parent(), "FeedPinCode", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(QString, pinCode)); +} + +QString Bluetooth1Adaptor::GetAdapters() +{ + // handle method call org.deepin.dde.Bluetooth1.GetAdapters + QString adaptersJSON; + QMetaObject::invokeMethod(parent(), "GetAdapters", Q_RETURN_ARG(QString, adaptersJSON)); + return adaptersJSON; +} + +QString Bluetooth1Adaptor::GetDevices(const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.GetDevices + QString devicesJSON; + QMetaObject::invokeMethod(parent(), "GetDevices", Q_RETURN_ARG(QString, devicesJSON), Q_ARG(QDBusObjectPath, adapter)); + return devicesJSON; +} + +void Bluetooth1Adaptor::RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device) +{ + // handle method call org.deepin.dde.Bluetooth1.RemoveDevice + QMetaObject::invokeMethod(parent(), "RemoveDevice", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QDBusObjectPath, device)); +} + +void Bluetooth1Adaptor::RequestDiscovery(const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.RequestDiscovery + QMetaObject::invokeMethod(parent(), "RequestDiscovery", Q_ARG(QDBusObjectPath, adapter)); +} + +QDBusObjectPath Bluetooth1Adaptor::SendFiles(const QString &device, const QStringList &files) +{ + // handle method call org.deepin.dde.Bluetooth1.SendFiles + QDBusObjectPath sessionPath; + QMetaObject::invokeMethod(parent(), "SendFiles", Q_RETURN_ARG(QDBusObjectPath, sessionPath), Q_ARG(QString, device), Q_ARG(QStringList, files)); + return sessionPath; +} + +void Bluetooth1Adaptor::SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterAlias + QMetaObject::invokeMethod(parent(), "SetAdapterAlias", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QString, alias)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverable + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverable", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discoverable)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverableTimeout + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverableTimeout", Q_ARG(QDBusObjectPath, adapter), Q_ARG(uint, timeout)); +} + +void Bluetooth1Adaptor::SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscovering + QMetaObject::invokeMethod(parent(), "SetAdapterDiscovering", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discovering)); +} + +void Bluetooth1Adaptor::SetAdapterPowered(const QDBusObjectPath &adapter, bool powered) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterPowered + QMetaObject::invokeMethod(parent(), "SetAdapterPowered", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, powered)); +} + +void Bluetooth1Adaptor::SetDeviceAlias(const QDBusObjectPath &device, const QString &alias) +{ + // handle method call org.deepin.dde.Bluetooth1.SetDeviceAlias + QMetaObject::invokeMethod(parent(), "SetDeviceAlias", Q_ARG(QDBusObjectPath, device), Q_ARG(QString, alias)); +} + +void Bluetooth1Adaptor::SetDeviceTrusted(const QDBusObjectPath &device, bool trusted) +{ + // handle method call org.deepin.dde.Bluetooth1.SetDeviceTrusted + QMetaObject::invokeMethod(parent(), "SetDeviceTrusted", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, trusted)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h new file mode 100644 index 00000000..9bc5173c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h @@ -0,0 +1,253 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Bluetooth1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_BLUETOOTH1ADAPTOR_H +#define ORG_DEEPIN_DDE_BLUETOOTH1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Bluetooth1 + */ +class Bluetooth1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Bluetooth1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Bluetooth1Adaptor(QObject *parent); + virtual ~Bluetooth1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CanSendFile READ canSendFile) + bool canSendFile() const; + + Q_PROPERTY(bool DisplaySwitch READ displaySwitch WRITE setDisplaySwitch) + bool displaySwitch() const; + void setDisplaySwitch(bool value); + + Q_PROPERTY(uint State READ state) + uint state() const; + + Q_PROPERTY(bool Transportable READ transportable) + bool transportable() const; + +public Q_SLOTS: // METHODS + void CancelTransferSession(const QDBusObjectPath &sessionPath); + void ClearUnpairedDevice(); + void Confirm(const QDBusObjectPath &device, bool accept); + void ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter); + QString DebugInfo(); + void DisconnectDevice(const QDBusObjectPath &device); + void FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey); + void FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode); + QString GetAdapters(); + QString GetDevices(const QDBusObjectPath &adapter); + void RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device); + void RequestDiscovery(const QDBusObjectPath &adapter); + QDBusObjectPath SendFiles(const QString &device, const QStringList &files); + void SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias); + void SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable); + void SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout); + void SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering); + void SetAdapterPowered(const QDBusObjectPath &adapter, bool powered); + void SetDeviceAlias(const QDBusObjectPath &device, const QString &alias); + void SetDeviceTrusted(const QDBusObjectPath &device, bool trusted); +Q_SIGNALS: // SIGNALS + void AdapterAdded(const QString &adapterJSON); + void AdapterPropertiesChanged(const QString &adapterJSON); + void AdapterRemoved(const QString &adapterJSON); + void Cancelled(const QDBusObjectPath &device); + void ConnectFailed(const QDBusObjectPath &device); + void DeviceAdded(const QString &devJSON); + void DevicePropertiesChanged(const QString &devJSON); + void DeviceRemoved(const QString &devJSON); + void DisplayPasskey(const QDBusObjectPath &device, uint passkey, uint entered); + void DisplayPinCode(const QDBusObjectPath &device, const QString &pinCode); + void ObexSessionCreated(const QDBusObjectPath &sessionPath); + void ObexSessionProgress(const QDBusObjectPath &sessionPath, qulonglong totalSize, qulonglong transferred, int currentIdx); + void ObexSessionRemoved(const QDBusObjectPath &sessionPath); + void RequestAuthorization(const QDBusObjectPath &device); + void RequestConfirmation(const QDBusObjectPath &device, const QString &passkey); + void RequestPasskey(const QDBusObjectPath &device); + void RequestPinCode(const QDBusObjectPath &device); + void TransferCreated(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath); + void TransferFailed(const QString &file, const QDBusObjectPath &sessionPath, const QString &errInfo); + void TransferRemoved(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath, bool done); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp new file mode 100644 index 00000000..4f890abf --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp @@ -0,0 +1,209 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Display1.Monitor.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MonitorAdaptor + */ + +MonitorAdaptor::MonitorAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MonitorAdaptor::~MonitorAdaptor() +{ + // destructor +} + +QStringList MonitorAdaptor::availableFillModes() const +{ + // get the value of property AvailableFillModes + return qvariant_cast< QStringList >(parent()->property("AvailableFillModes")); +} + +Resolution MonitorAdaptor::bestMode() const +{ + // get the value of property BestMode + return qvariant_cast< Resolution >(parent()->property("BestMode")); +} + +bool MonitorAdaptor::connected() const +{ + // get the value of property Connected + return qvariant_cast< bool >(parent()->property("Connected")); +} + +QString MonitorAdaptor::currentFillMode() const +{ + // get the value of property CurrentFillMode + return qvariant_cast< QString >(parent()->property("CurrentFillMode")); +} + +void MonitorAdaptor::setCurrentFillMode(const QString &value) +{ + // set the value of property CurrentFillMode + parent()->setProperty("CurrentFillMode", QVariant::fromValue(value)); +} + +Resolution MonitorAdaptor::currentMode() const +{ + // get the value of property CurrentMode + return qvariant_cast< Resolution >(parent()->property("CurrentMode")); +} + +uchar MonitorAdaptor::currentRotateMode() const +{ + // get the value of property CurrentRotateMode + return qvariant_cast< uchar >(parent()->property("CurrentRotateMode")); +} + +bool MonitorAdaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +ushort MonitorAdaptor::height() const +{ + // get the value of property Height + return qvariant_cast< ushort >(parent()->property("Height")); +} + +QString MonitorAdaptor::manufacturer() const +{ + // get the value of property Manufacturer + return qvariant_cast< QString >(parent()->property("Manufacturer")); +} + +uint MonitorAdaptor::mmHeight() const +{ + // get the value of property MmHeight + return qvariant_cast< uint >(parent()->property("MmHeight")); +} + +uint MonitorAdaptor::mmWidth() const +{ + // get the value of property MmWidth + return qvariant_cast< uint >(parent()->property("MmWidth")); +} + +QString MonitorAdaptor::model() const +{ + // get the value of property Model + return qvariant_cast< QString >(parent()->property("Model")); +} + +ResolutionList MonitorAdaptor::modes() const +{ + // get the value of property Modes + return qvariant_cast< ResolutionList >(parent()->property("Modes")); +} + +QString MonitorAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +ushort MonitorAdaptor::reflect() const +{ + // get the value of property Reflect + return qvariant_cast< ushort >(parent()->property("Reflect")); +} + +ReflectList MonitorAdaptor::reflects() const +{ + // get the value of property Reflects + return qvariant_cast< ReflectList >(parent()->property("Reflects")); +} + +double MonitorAdaptor::refreshRate() const +{ + // get the value of property RefreshRate + return qvariant_cast< double >(parent()->property("RefreshRate")); +} + +ushort MonitorAdaptor::rotation() const +{ + // get the value of property Rotation + return qvariant_cast< ushort >(parent()->property("Rotation")); +} + +RotationList MonitorAdaptor::rotations() const +{ + // get the value of property Rotations + return qvariant_cast< RotationList >(parent()->property("Rotations")); +} + +ushort MonitorAdaptor::width() const +{ + // get the value of property Width + return qvariant_cast< ushort >(parent()->property("Width")); +} + +short MonitorAdaptor::x() const +{ + // get the value of property X + return qvariant_cast< short >(parent()->property("X")); +} + +short MonitorAdaptor::y() const +{ + // get the value of property Y + return qvariant_cast< short >(parent()->property("Y")); +} + +void MonitorAdaptor::Enable(bool in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, in0)); +} + +void MonitorAdaptor::SetMode(uint in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetMode + QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(uint, in0)); +} + +void MonitorAdaptor::SetModeBySize(ushort in0, ushort in1) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetModeBySize + QMetaObject::invokeMethod(parent(), "SetModeBySize", Q_ARG(ushort, in0), Q_ARG(ushort, in1)); +} + +void MonitorAdaptor::SetPosition(short in0, short in1) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetPosition + QMetaObject::invokeMethod(parent(), "SetPosition", Q_ARG(short, in0), Q_ARG(short, in1)); +} + +void MonitorAdaptor::SetReflect(ushort in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetReflect + QMetaObject::invokeMethod(parent(), "SetReflect", Q_ARG(ushort, in0)); +} + +void MonitorAdaptor::SetRotation(ushort in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetRotation + QMetaObject::invokeMethod(parent(), "SetRotation", Q_ARG(ushort, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h new file mode 100644 index 00000000..8ca9b0e8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h @@ -0,0 +1,172 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Display1.Monitor.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.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_DISPLAY1_MONITORADAPTOR_H +#define ORG_DEEPIN_DDE_DISPLAY1_MONITORADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Display1.Monitor + */ +class MonitorAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1.Monitor") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MonitorAdaptor(QObject *parent); + virtual ~MonitorAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QStringList AvailableFillModes READ availableFillModes) + QStringList availableFillModes() const; + + Q_PROPERTY(Resolution BestMode READ bestMode) + Resolution bestMode() const; + + Q_PROPERTY(bool Connected READ connected) + bool connected() const; + + Q_PROPERTY(QString CurrentFillMode READ currentFillMode WRITE setCurrentFillMode) + QString currentFillMode() const; + void setCurrentFillMode(const QString &value); + + Q_PROPERTY(Resolution CurrentMode READ currentMode) + Resolution currentMode() const; + + Q_PROPERTY(uchar CurrentRotateMode READ currentRotateMode) + uchar currentRotateMode() const; + + Q_PROPERTY(bool Enabled READ enabled) + bool enabled() const; + + Q_PROPERTY(ushort Height READ height) + ushort height() const; + + Q_PROPERTY(QString Manufacturer READ manufacturer) + QString manufacturer() const; + + Q_PROPERTY(uint MmHeight READ mmHeight) + uint mmHeight() const; + + Q_PROPERTY(uint MmWidth READ mmWidth) + uint mmWidth() const; + + Q_PROPERTY(QString Model READ model) + QString model() const; + + Q_PROPERTY(ResolutionList Modes READ modes) + ResolutionList modes() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(ushort Reflect READ reflect) + ushort reflect() const; + + Q_PROPERTY(ReflectList Reflects READ reflects) + ReflectList reflects() const; + + Q_PROPERTY(double RefreshRate READ refreshRate) + double refreshRate() const; + + Q_PROPERTY(ushort Rotation READ rotation) + ushort rotation() const; + + Q_PROPERTY(RotationList Rotations READ rotations) + RotationList rotations() const; + + Q_PROPERTY(ushort Width READ width) + ushort width() const; + + Q_PROPERTY(short X READ x) + short x() const; + + Q_PROPERTY(short Y READ y) + short y() const; + +public Q_SLOTS: // METHODS + void Enable(bool in0); + void SetMode(uint in0); + void SetModeBySize(ushort in0, ushort in1); + void SetPosition(short in0, short in1); + void SetReflect(ushort in0); + void SetRotation(ushort in0); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp new file mode 100644 index 00000000..e007deca --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp @@ -0,0 +1,251 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Display1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-session-ui/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-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Display1Adaptor + */ + +Display1Adaptor::Display1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Display1Adaptor::~Display1Adaptor() +{ + // destructor +} + +BrightnessMap Display1Adaptor::brightness() const +{ + // get the value of property Brightness + return qvariant_cast< BrightnessMap >(parent()->property("Brightness")); +} + +int Display1Adaptor::colorTemperatureManual() const +{ + // get the value of property ColorTemperatureManual + return qvariant_cast< int >(parent()->property("ColorTemperatureManual")); +} + +int Display1Adaptor::colorTemperatureMode() const +{ + // get the value of property ColorTemperatureMode + return qvariant_cast< int >(parent()->property("ColorTemperatureMode")); +} + +QString Display1Adaptor::currentCustomId() const +{ + // get the value of property CurrentCustomId + return qvariant_cast< QString >(parent()->property("CurrentCustomId")); +} + +QStringList Display1Adaptor::customIdList() const +{ + // get the value of property CustomIdList + return qvariant_cast< QStringList >(parent()->property("CustomIdList")); +} + +uchar Display1Adaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< uchar >(parent()->property("DisplayMode")); +} + +bool Display1Adaptor::hasChanged() const +{ + // get the value of property HasChanged + return qvariant_cast< bool >(parent()->property("HasChanged")); +} + +uint Display1Adaptor::maxBacklightBrightness() const +{ + // get the value of property MaxBacklightBrightness + return qvariant_cast< uint >(parent()->property("MaxBacklightBrightness")); +} + +QList Display1Adaptor::monitors() const +{ + // get the value of property Monitors + return qvariant_cast< QList >(parent()->property("Monitors")); +} + +QString Display1Adaptor::primary() const +{ + // get the value of property Primary + return qvariant_cast< QString >(parent()->property("Primary")); +} + +ScreenRect Display1Adaptor::primaryRect() const +{ + // get the value of property PrimaryRect + return qvariant_cast< ScreenRect >(parent()->property("PrimaryRect")); +} + +ushort Display1Adaptor::screenHeight() const +{ + // get the value of property ScreenHeight + return qvariant_cast< ushort >(parent()->property("ScreenHeight")); +} + +ushort Display1Adaptor::screenWidth() const +{ + // get the value of property ScreenWidth + return qvariant_cast< ushort >(parent()->property("ScreenWidth")); +} + +TouchscreenMap Display1Adaptor::touchMap() const +{ + // get the value of property TouchMap + return qvariant_cast< TouchscreenMap >(parent()->property("TouchMap")); +} + +TouchscreenInfoList Display1Adaptor::touchscreens() const +{ + // get the value of property Touchscreens + return qvariant_cast< TouchscreenInfoList >(parent()->property("Touchscreens")); +} + +TouchscreenInfoList_V2 Display1Adaptor::touchscreensV2() const +{ + // get the value of property TouchscreensV2 + return qvariant_cast< TouchscreenInfoList_V2 >(parent()->property("TouchscreensV2")); +} + +void Display1Adaptor::ApplyChanges() +{ + // handle method call org.deepin.dde.Display1.ApplyChanges + QMetaObject::invokeMethod(parent(), "ApplyChanges"); +} + +void Display1Adaptor::AssociateTouch(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.AssociateTouch + QMetaObject::invokeMethod(parent(), "AssociateTouch", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::AssociateTouchByUUID(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.AssociateTouchByUUID + QMetaObject::invokeMethod(parent(), "AssociateTouchByUUID", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::ChangeBrightness(bool in0) +{ + // handle method call org.deepin.dde.Display1.ChangeBrightness + QMetaObject::invokeMethod(parent(), "ChangeBrightness", Q_ARG(bool, in0)); +} + +void Display1Adaptor::DeleteCustomMode(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.DeleteCustomMode + QMetaObject::invokeMethod(parent(), "DeleteCustomMode", Q_ARG(QString, in0)); +} + +uchar Display1Adaptor::GetRealDisplayMode() +{ + // handle method call org.deepin.dde.Display1.GetRealDisplayMode + uchar out0; + QMetaObject::invokeMethod(parent(), "GetRealDisplayMode", Q_RETURN_ARG(uchar, out0)); + return out0; +} + +QStringList Display1Adaptor::ListOutputNames() +{ + // handle method call org.deepin.dde.Display1.ListOutputNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListOutputNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +ResolutionList Display1Adaptor::ListOutputsCommonModes() +{ + // handle method call org.deepin.dde.Display1.ListOutputsCommonModes + ResolutionList out0; + QMetaObject::invokeMethod(parent(), "ListOutputsCommonModes", Q_RETURN_ARG(ResolutionList, out0)); + return out0; +} + +void Display1Adaptor::ModifyConfigName(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.ModifyConfigName + QMetaObject::invokeMethod(parent(), "ModifyConfigName", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::RefreshBrightness() +{ + // handle method call org.deepin.dde.Display1.RefreshBrightness + QMetaObject::invokeMethod(parent(), "RefreshBrightness"); +} + +void Display1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Display1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Display1Adaptor::ResetChanges() +{ + // handle method call org.deepin.dde.Display1.ResetChanges + QMetaObject::invokeMethod(parent(), "ResetChanges"); +} + +void Display1Adaptor::Save() +{ + // handle method call org.deepin.dde.Display1.Save + QMetaObject::invokeMethod(parent(), "Save"); +} + +void Display1Adaptor::SetAndSaveBrightness(const QString &in0, double in1) +{ + // handle method call org.deepin.dde.Display1.SetAndSaveBrightness + QMetaObject::invokeMethod(parent(), "SetAndSaveBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void Display1Adaptor::SetBrightness(const QString &in0, double in1) +{ + // handle method call org.deepin.dde.Display1.SetBrightness + QMetaObject::invokeMethod(parent(), "SetBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void Display1Adaptor::SetColorTemperature(int in0) +{ + // handle method call org.deepin.dde.Display1.SetColorTemperature + QMetaObject::invokeMethod(parent(), "SetColorTemperature", Q_ARG(int, in0)); +} + +void Display1Adaptor::SetMethodAdjustCCT(int in0) +{ + // handle method call org.deepin.dde.Display1.SetMethodAdjustCCT + QMetaObject::invokeMethod(parent(), "SetMethodAdjustCCT", Q_ARG(int, in0)); +} + +void Display1Adaptor::SetPrimary(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.SetPrimary + QMetaObject::invokeMethod(parent(), "SetPrimary", Q_ARG(QString, in0)); +} + +void Display1Adaptor::SwitchMode(uchar in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.SwitchMode + QMetaObject::invokeMethod(parent(), "SwitchMode", Q_ARG(uchar, in0), Q_ARG(QString, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h new file mode 100644 index 00000000..55120f01 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h @@ -0,0 +1,194 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Display1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H +#define ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Display1 + */ +class Display1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Display1Adaptor(QObject *parent); + virtual ~Display1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(BrightnessMap Brightness READ brightness) + BrightnessMap brightness() const; + + Q_PROPERTY(int ColorTemperatureManual READ colorTemperatureManual) + int colorTemperatureManual() const; + + Q_PROPERTY(int ColorTemperatureMode READ colorTemperatureMode) + int colorTemperatureMode() const; + + Q_PROPERTY(QString CurrentCustomId READ currentCustomId) + QString currentCustomId() const; + + Q_PROPERTY(QStringList CustomIdList READ customIdList) + QStringList customIdList() const; + + Q_PROPERTY(uchar DisplayMode READ displayMode) + uchar displayMode() const; + + Q_PROPERTY(bool HasChanged READ hasChanged) + bool hasChanged() const; + + Q_PROPERTY(uint MaxBacklightBrightness READ maxBacklightBrightness) + uint maxBacklightBrightness() const; + + Q_PROPERTY(QList Monitors READ monitors) + QList monitors() const; + + Q_PROPERTY(QString Primary READ primary) + QString primary() const; + + Q_PROPERTY(ScreenRect PrimaryRect READ primaryRect) + ScreenRect primaryRect() const; + + Q_PROPERTY(ushort ScreenHeight READ screenHeight) + ushort screenHeight() const; + + Q_PROPERTY(ushort ScreenWidth READ screenWidth) + ushort screenWidth() const; + + Q_PROPERTY(TouchscreenMap TouchMap READ touchMap) + TouchscreenMap touchMap() const; + + Q_PROPERTY(TouchscreenInfoList Touchscreens READ touchscreens) + TouchscreenInfoList touchscreens() const; + + Q_PROPERTY(TouchscreenInfoList_V2 TouchscreensV2 READ touchscreensV2) + TouchscreenInfoList_V2 touchscreensV2() const; + +public Q_SLOTS: // METHODS + void ApplyChanges(); + void AssociateTouch(const QString &in0, const QString &in1); + void AssociateTouchByUUID(const QString &in0, const QString &in1); + void ChangeBrightness(bool in0); + void DeleteCustomMode(const QString &in0); + uchar GetRealDisplayMode(); + QStringList ListOutputNames(); + ResolutionList ListOutputsCommonModes(); + void ModifyConfigName(const QString &in0, const QString &in1); + void RefreshBrightness(); + void Reset(); + void ResetChanges(); + void Save(); + void SetAndSaveBrightness(const QString &in0, double in1); + void SetBrightness(const QString &in0, double in1); + void SetColorTemperature(int in0); + void SetMethodAdjustCCT(int in0); + void SetPrimary(const QString &in0); + void SwitchMode(uchar in0, const QString &in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp new file mode 100644 index 00000000..c0828e2f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp @@ -0,0 +1,35 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Gesture1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-session-ui/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-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Gesture1Adaptor + */ + +Gesture1Adaptor::Gesture1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Gesture1Adaptor::~Gesture1Adaptor() +{ + // destructor +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h new file mode 100644 index 00000000..3ab113dc --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Gesture1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_GESTURE1ADAPTOR_H +#define ORG_DEEPIN_DDE_GESTURE1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Gesture1 + */ +class Gesture1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Gesture1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Gesture1Adaptor(QObject *parent); + virtual ~Gesture1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS + void TouchEdgeEvent(const QString &direction, double scalex, double scaley); + void TouchMoving(double scalex, double scaley); + void TouchPressTimeout(int fingers, int time, double scalex, double scaley); + void TouchSinglePressTimeout(int time, double scalex, double scaley); + void TouchUpOrCancel(double scalex, double scaley); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor.cpp new file mode 100644 index 00000000..717f68c0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor.cpp @@ -0,0 +1,43 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.ImageBlur1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ImageBlur1Adaptor + */ + +ImageBlur1Adaptor::ImageBlur1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ImageBlur1Adaptor::~ImageBlur1Adaptor() +{ + // destructor +} + +QString ImageBlur1Adaptor::Get(const QString &in0) +{ + // handle method call org.deepin.dde.ImageBlur1.Get + QString out0; + QMetaObject::invokeMethod(parent(), "Get", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor.h new file mode 100644 index 00000000..6e000698 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor.h @@ -0,0 +1,58 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.ImageBlur1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1.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_IMAGEBLUR1ADAPTOR_H +#define ORG_DEEPIN_DDE_IMAGEBLUR1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.ImageBlur1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.ImageBlur1 + */ +class ImageBlur1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.ImageBlur1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ImageBlur1Adaptor(QObject *parent); + virtual ~ImageBlur1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString Get(const QString &in0); +Q_SIGNALS: // SIGNALS + void BlurDone(const QString &in0, const QString &in1, bool in2); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp new file mode 100644 index 00000000..6c81f00d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp @@ -0,0 +1,183 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-session-ui/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-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class KeyboardAdaptor + */ + +KeyboardAdaptor::KeyboardAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +KeyboardAdaptor::~KeyboardAdaptor() +{ + // destructor +} + +bool KeyboardAdaptor::capslockToggle() const +{ + // get the value of property CapslockToggle + return qvariant_cast< bool >(parent()->property("CapslockToggle")); +} + +void KeyboardAdaptor::setCapslockToggle(bool value) +{ + // set the value of property CapslockToggle + parent()->setProperty("CapslockToggle", QVariant::fromValue(value)); +} + +QString KeyboardAdaptor::currentLayout() const +{ + // get the value of property CurrentLayout + return qvariant_cast< QString >(parent()->property("CurrentLayout")); +} + +void KeyboardAdaptor::setCurrentLayout(const QString &value) +{ + // set the value of property CurrentLayout + parent()->setProperty("CurrentLayout", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::cursorBlink() const +{ + // get the value of property CursorBlink + return qvariant_cast< int >(parent()->property("CursorBlink")); +} + +void KeyboardAdaptor::setCursorBlink(int value) +{ + // set the value of property CursorBlink + parent()->setProperty("CursorBlink", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::layoutScope() const +{ + // get the value of property LayoutScope + return qvariant_cast< int >(parent()->property("LayoutScope")); +} + +void KeyboardAdaptor::setLayoutScope(int value) +{ + // set the value of property LayoutScope + parent()->setProperty("LayoutScope", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatDelay() const +{ + // get the value of property RepeatDelay + return qvariant_cast< uint >(parent()->property("RepeatDelay")); +} + +void KeyboardAdaptor::setRepeatDelay(uint value) +{ + // set the value of property RepeatDelay + parent()->setProperty("RepeatDelay", QVariant::fromValue(value)); +} + +bool KeyboardAdaptor::repeatEnabled() const +{ + // get the value of property RepeatEnabled + return qvariant_cast< bool >(parent()->property("RepeatEnabled")); +} + +void KeyboardAdaptor::setRepeatEnabled(bool value) +{ + // set the value of property RepeatEnabled + parent()->setProperty("RepeatEnabled", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatInterval() const +{ + // get the value of property RepeatInterval + return qvariant_cast< uint >(parent()->property("RepeatInterval")); +} + +void KeyboardAdaptor::setRepeatInterval(uint value) +{ + // set the value of property RepeatInterval + parent()->setProperty("RepeatInterval", QVariant::fromValue(value)); +} + +QStringList KeyboardAdaptor::userLayoutList() const +{ + // get the value of property UserLayoutList + return qvariant_cast< QStringList >(parent()->property("UserLayoutList")); +} + +QStringList KeyboardAdaptor::userOptionList() const +{ + // get the value of property UserOptionList + return qvariant_cast< QStringList >(parent()->property("UserOptionList")); +} + +void KeyboardAdaptor::AddLayoutOption(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.AddLayoutOption + QMetaObject::invokeMethod(parent(), "AddLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::AddUserLayout(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.AddUserLayout + QMetaObject::invokeMethod(parent(), "AddUserLayout", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::ClearLayoutOption() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.ClearLayoutOption + QMetaObject::invokeMethod(parent(), "ClearLayoutOption"); +} + +void KeyboardAdaptor::DeleteLayoutOption(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteLayoutOption + QMetaObject::invokeMethod(parent(), "DeleteLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::DeleteUserLayout(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteUserLayout + QMetaObject::invokeMethod(parent(), "DeleteUserLayout", Q_ARG(QString, in0)); +} + +QString KeyboardAdaptor::GetLayoutDesc(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.GetLayoutDesc + QString out0; + QMetaObject::invokeMethod(parent(), "GetLayoutDesc", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +KeyboardLayoutList KeyboardAdaptor::LayoutList() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.LayoutList + KeyboardLayoutList out0; + QMetaObject::invokeMethod(parent(), "LayoutList", Q_RETURN_ARG(KeyboardLayoutList, out0)); + return out0; +} + +void KeyboardAdaptor::Reset() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h new file mode 100644 index 00000000..2f1a13bc --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h @@ -0,0 +1,120 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_INPUTDEVICE1_KEYBOARDADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICE1_KEYBOARDADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.InputDevice1.Keyboard + */ +class KeyboardAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.Keyboard") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + KeyboardAdaptor(QObject *parent); + virtual ~KeyboardAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CapslockToggle READ capslockToggle WRITE setCapslockToggle) + bool capslockToggle() const; + void setCapslockToggle(bool value); + + Q_PROPERTY(QString CurrentLayout READ currentLayout WRITE setCurrentLayout) + QString currentLayout() const; + void setCurrentLayout(const QString &value); + + Q_PROPERTY(int CursorBlink READ cursorBlink WRITE setCursorBlink) + int cursorBlink() const; + void setCursorBlink(int value); + + Q_PROPERTY(int LayoutScope READ layoutScope WRITE setLayoutScope) + int layoutScope() const; + void setLayoutScope(int value); + + Q_PROPERTY(uint RepeatDelay READ repeatDelay WRITE setRepeatDelay) + uint repeatDelay() const; + void setRepeatDelay(uint value); + + Q_PROPERTY(bool RepeatEnabled READ repeatEnabled WRITE setRepeatEnabled) + bool repeatEnabled() const; + void setRepeatEnabled(bool value); + + Q_PROPERTY(uint RepeatInterval READ repeatInterval WRITE setRepeatInterval) + uint repeatInterval() const; + void setRepeatInterval(uint value); + + Q_PROPERTY(QStringList UserLayoutList READ userLayoutList) + QStringList userLayoutList() const; + + Q_PROPERTY(QStringList UserOptionList READ userOptionList) + QStringList userOptionList() const; + +public Q_SLOTS: // METHODS + void AddLayoutOption(const QString &in0); + void AddUserLayout(const QString &in0); + void ClearLayoutOption(); + void DeleteLayoutOption(const QString &in0); + void DeleteUserLayout(const QString &in0); + QString GetLayoutDesc(const QString &in0); + KeyboardLayoutList LayoutList(); + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.cpp new file mode 100644 index 00000000..9d30a883 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.cpp @@ -0,0 +1,211 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Notification1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Notification1Adaptor + */ + +Notification1Adaptor::Notification1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Notification1Adaptor::~Notification1Adaptor() +{ + // destructor +} + +QString Notification1Adaptor::allSetting() const +{ + // get the value of property allSetting + return qvariant_cast< QString >(parent()->property("allSetting")); +} + +void Notification1Adaptor::setAllSetting(const QString &value) +{ + // set the value of property allSetting + parent()->setProperty("allSetting", QVariant::fromValue(value)); +} + +QString Notification1Adaptor::systemSetting() const +{ + // get the value of property systemSetting + return qvariant_cast< QString >(parent()->property("systemSetting")); +} + +void Notification1Adaptor::setSystemSetting(const QString &value) +{ + // set the value of property systemSetting + parent()->setProperty("systemSetting", QVariant::fromValue(value)); +} + +void Notification1Adaptor::ClearRecords() +{ + // handle method call org.deepin.dde.Notification1.ClearRecords + QMetaObject::invokeMethod(parent(), "ClearRecords"); +} + +void Notification1Adaptor::CloseNotification(uint in0) +{ + // handle method call org.deepin.dde.Notification1.CloseNotification + QMetaObject::invokeMethod(parent(), "CloseNotification", Q_ARG(uint, in0)); +} + +QString Notification1Adaptor::GetAllRecords() +{ + // handle method call org.deepin.dde.Notification1.GetAllRecords + QString out0; + QMetaObject::invokeMethod(parent(), "GetAllRecords", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusVariant Notification1Adaptor::GetAppInfo(const QString &in0, uint in1) +{ + // handle method call org.deepin.dde.Notification1.GetAppInfo + QDBusVariant out0; + QMetaObject::invokeMethod(parent(), "GetAppInfo", Q_RETURN_ARG(QDBusVariant, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +QStringList Notification1Adaptor::GetAppList() +{ + // handle method call org.deepin.dde.Notification1.GetAppList + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetAppList", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList Notification1Adaptor::GetCapbilities() +{ + // handle method call org.deepin.dde.Notification1.GetCapbilities + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetCapbilities", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString Notification1Adaptor::GetRecordById(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.GetRecordById + QString out0; + QMetaObject::invokeMethod(parent(), "GetRecordById", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString Notification1Adaptor::GetRecordsFromId(int in0, const QString &in1) +{ + // handle method call org.deepin.dde.Notification1.GetRecordsFromId + QString out0; + QMetaObject::invokeMethod(parent(), "GetRecordsFromId", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0), Q_ARG(QString, in1)); + return out0; +} + +QString Notification1Adaptor::GetServerInformation(QString &out1, QString &out2, QString &out3) +{ + // handle method call org.deepin.dde.Notification1.GetServerInformation + //return static_cast(parent())->GetServerInformation(out1, out2, out3); +} + +QDBusVariant Notification1Adaptor::GetSystemInfo(uint in0) +{ + // handle method call org.deepin.dde.Notification1.GetSystemInfo + QDBusVariant out0; + QMetaObject::invokeMethod(parent(), "GetSystemInfo", Q_RETURN_ARG(QDBusVariant, out0), Q_ARG(uint, in0)); + return out0; +} + +void Notification1Adaptor::HandleBubbleEnd(uint in0, uint in1, const QVariantMap &in2, const QVariantMap &in3) +{ + // handle method call org.deepin.dde.Notification1.HandleBubbleEnd + QMetaObject::invokeMethod(parent(), "HandleBubbleEnd", Q_ARG(uint, in0), Q_ARG(uint, in1), Q_ARG(QVariantMap, in2), Q_ARG(QVariantMap, in3)); +} + +void Notification1Adaptor::Hide() +{ + // handle method call org.deepin.dde.Notification1.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +uint Notification1Adaptor::Notify(const QString &in0, uint in1, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7) +{ + // handle method call org.deepin.dde.Notification1.Notify + uint out0; + QMetaObject::invokeMethod(parent(), "Notify", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QString, in2), Q_ARG(QString, in3), Q_ARG(QString, in4), Q_ARG(QStringList, in5), Q_ARG(QVariantMap, in6), Q_ARG(int, in7)); + return out0; +} + +void Notification1Adaptor::RemoveRecord(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.RemoveRecord + QMetaObject::invokeMethod(parent(), "RemoveRecord", Q_ARG(QString, in0)); +} + +void Notification1Adaptor::ReplaceBubble(bool in0) +{ + // handle method call org.deepin.dde.Notification1.ReplaceBubble + QMetaObject::invokeMethod(parent(), "ReplaceBubble", Q_ARG(bool, in0)); +} + +void Notification1Adaptor::SetAppInfo(const QString &in0, uint in1, const QDBusVariant &in2) +{ + // handle method call org.deepin.dde.Notification1.SetAppInfo + QMetaObject::invokeMethod(parent(), "SetAppInfo", Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QDBusVariant, in2)); +} + +void Notification1Adaptor::SetSystemInfo(uint in0, const QDBusVariant &in1) +{ + // handle method call org.deepin.dde.Notification1.SetSystemInfo + QMetaObject::invokeMethod(parent(), "SetSystemInfo", Q_ARG(uint, in0), Q_ARG(QDBusVariant, in1)); +} + +void Notification1Adaptor::Show() +{ + // handle method call org.deepin.dde.Notification1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void Notification1Adaptor::Toggle() +{ + // handle method call org.deepin.dde.Notification1.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +QString Notification1Adaptor::getAppSetting(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.getAppSetting + QString out0; + QMetaObject::invokeMethod(parent(), "getAppSetting", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +uint Notification1Adaptor::recordCount() +{ + // handle method call org.deepin.dde.Notification1.recordCount + uint out0; + QMetaObject::invokeMethod(parent(), "recordCount", Q_RETURN_ARG(uint, out0)); + return out0; +} + +void Notification1Adaptor::setAppSetting(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.setAppSetting + QMetaObject::invokeMethod(parent(), "setAppSetting", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h new file mode 100644 index 00000000..b6bec90c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h @@ -0,0 +1,227 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.Notification1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1.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_NOTIFICATION1ADAPTOR_H +#define ORG_DEEPIN_DDE_NOTIFICATION1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Notification1 + */ +class Notification1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Notification1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Notification1Adaptor(QObject *parent); + virtual ~Notification1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString allSetting READ allSetting WRITE setAllSetting) + QString allSetting() const; + void setAllSetting(const QString &value); + + Q_PROPERTY(QString systemSetting READ systemSetting WRITE setSystemSetting) + QString systemSetting() const; + void setSystemSetting(const QString &value); + +public Q_SLOTS: // METHODS + void ClearRecords(); + void CloseNotification(uint in0); + QString GetAllRecords(); + QDBusVariant GetAppInfo(const QString &in0, uint in1); + QStringList GetAppList(); + QStringList GetCapbilities(); + QString GetRecordById(const QString &in0); + QString GetRecordsFromId(int in0, const QString &in1); + QString GetServerInformation(QString &out1, QString &out2, QString &out3); + QDBusVariant GetSystemInfo(uint in0); + void HandleBubbleEnd(uint in0, uint in1, const QVariantMap &in2, const QVariantMap &in3); + void Hide(); + uint Notify(const QString &in0, uint in1, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7); + void RemoveRecord(const QString &in0); + void ReplaceBubble(bool in0); + void SetAppInfo(const QString &in0, uint in1, const QDBusVariant &in2); + void SetSystemInfo(uint in0, const QDBusVariant &in1); + void Show(); + void Toggle(); + QString getAppSetting(const QString &in0); + uint recordCount(); + void setAppSetting(const QString &in0); +Q_SIGNALS: // SIGNALS + void ActionInvoked(uint in0, const QString &in1); + void AppAddedSignal(const QString &in0); + void AppInfoChanged(const QString &in0, uint in1, const QDBusVariant &in2); + void AppRemovedSignal(const QString &in0); + void NotificationClosed(uint in0, uint in1); + void RecordAdded(const QString &in0); + void ShowBubble(const QString &in0, uint in1, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7, const QVariantMap &in8); + void SystemInfoChanged(uint in0, const QDBusVariant &in1); + void appAdded(const QString &in0); + void appRemoved(const QString &in0); + void appSettingChanged(const QString &in0); + void systemSettingChanged(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp new file mode 100644 index 00000000..5dddb509 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp @@ -0,0 +1,199 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.SessionManager1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SessionManager1Adaptor + */ + +SessionManager1Adaptor::SessionManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SessionManager1Adaptor::~SessionManager1Adaptor() +{ + // destructor +} + +QString SessionManager1Adaptor::currentUid() const +{ + // get the value of property CurrentUid + return qvariant_cast< QString >(parent()->property("CurrentUid")); +} + +bool SessionManager1Adaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +int SessionManager1Adaptor::stage() const +{ + // get the value of property Stage + return qvariant_cast< int >(parent()->property("Stage")); +} + +bool SessionManager1Adaptor::AllowSessionDaemonRun() +{ + // handle method call org.deepin.dde.SessionManager1.AllowSessionDaemonRun + bool out0; + QMetaObject::invokeMethod(parent(), "AllowSessionDaemonRun", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanHibernate() +{ + // handle method call org.deepin.dde.SessionManager1.CanHibernate + bool out0; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanLogout() +{ + // handle method call org.deepin.dde.SessionManager1.CanLogout + bool out0; + QMetaObject::invokeMethod(parent(), "CanLogout", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanReboot() +{ + // handle method call org.deepin.dde.SessionManager1.CanReboot + bool out0; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.CanShutdown + bool out0; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanSuspend() +{ + // handle method call org.deepin.dde.SessionManager1.CanSuspend + bool out0; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void SessionManager1Adaptor::ForceLogout() +{ + // handle method call org.deepin.dde.SessionManager1.ForceLogout + QMetaObject::invokeMethod(parent(), "ForceLogout"); +} + +void SessionManager1Adaptor::ForceReboot() +{ + // handle method call org.deepin.dde.SessionManager1.ForceReboot + QMetaObject::invokeMethod(parent(), "ForceReboot"); +} + +void SessionManager1Adaptor::ForceShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.ForceShutdown + QMetaObject::invokeMethod(parent(), "ForceShutdown"); +} + +void SessionManager1Adaptor::Logout() +{ + // handle method call org.deepin.dde.SessionManager1.Logout + QMetaObject::invokeMethod(parent(), "Logout"); +} + +void SessionManager1Adaptor::PowerOffChoose() +{ + // handle method call org.deepin.dde.SessionManager1.PowerOffChoose + QMetaObject::invokeMethod(parent(), "PowerOffChoose"); +} + +void SessionManager1Adaptor::Reboot() +{ + // handle method call org.deepin.dde.SessionManager1.Reboot + QMetaObject::invokeMethod(parent(), "Reboot"); +} + +bool SessionManager1Adaptor::Register(const QString &in0) +{ + // handle method call org.deepin.dde.SessionManager1.Register + bool out0; + QMetaObject::invokeMethod(parent(), "Register", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void SessionManager1Adaptor::RequestHibernate() +{ + // handle method call org.deepin.dde.SessionManager1.RequestHibernate + QMetaObject::invokeMethod(parent(), "RequestHibernate"); +} + +void SessionManager1Adaptor::RequestLock() +{ + // handle method call org.deepin.dde.SessionManager1.RequestLock + QMetaObject::invokeMethod(parent(), "RequestLock"); +} + +void SessionManager1Adaptor::RequestLogout() +{ + // handle method call org.deepin.dde.SessionManager1.RequestLogout + QMetaObject::invokeMethod(parent(), "RequestLogout"); +} + +void SessionManager1Adaptor::RequestReboot() +{ + // handle method call org.deepin.dde.SessionManager1.RequestReboot + QMetaObject::invokeMethod(parent(), "RequestReboot"); +} + +void SessionManager1Adaptor::RequestShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.RequestShutdown + QMetaObject::invokeMethod(parent(), "RequestShutdown"); +} + +void SessionManager1Adaptor::RequestSuspend() +{ + // handle method call org.deepin.dde.SessionManager1.RequestSuspend + QMetaObject::invokeMethod(parent(), "RequestSuspend"); +} + +void SessionManager1Adaptor::SetLocked(bool in0) +{ + // handle method call org.deepin.dde.SessionManager1.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, in0)); +} + +void SessionManager1Adaptor::Shutdown() +{ + // handle method call org.deepin.dde.SessionManager1.Shutdown + QMetaObject::invokeMethod(parent(), "Shutdown"); +} + +void SessionManager1Adaptor::ToggleDebug() +{ + // handle method call org.deepin.dde.SessionManager1.ToggleDebug + QMetaObject::invokeMethod(parent(), "ToggleDebug"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h new file mode 100644 index 00000000..ec0e24d2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h @@ -0,0 +1,122 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.SessionManager1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_SESSIONMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_SESSIONMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.SessionManager1 + */ +class SessionManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SessionManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SessionManager1Adaptor(QObject *parent); + virtual ~SessionManager1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString CurrentUid READ currentUid) + QString currentUid() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(int Stage READ stage) + int stage() const; + +public Q_SLOTS: // METHODS + bool AllowSessionDaemonRun(); + bool CanHibernate(); + bool CanLogout(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); + void ForceLogout(); + void ForceReboot(); + void ForceShutdown(); + void Logout(); + void PowerOffChoose(); + void Reboot(); + bool Register(const QString &in0); + void RequestHibernate(); + void RequestLock(); + void RequestLogout(); + void RequestReboot(); + void RequestShutdown(); + void RequestSuspend(); + void SetLocked(bool in0); + void Shutdown(); + void ToggleDebug(); +Q_SIGNALS: // SIGNALS + void Unlock(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.cpp new file mode 100644 index 00000000..1ed5784e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.cpp @@ -0,0 +1,97 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.SoundEffect1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SoundEffect1Adaptor + */ + +SoundEffect1Adaptor::SoundEffect1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SoundEffect1Adaptor::~SoundEffect1Adaptor() +{ + // destructor +} + +bool SoundEffect1Adaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +void SoundEffect1Adaptor::setEnabled(bool value) +{ + // set the value of property Enabled + parent()->setProperty("Enabled", QVariant::fromValue(value)); +} + +void SoundEffect1Adaptor::EnableSound(const QString &name, bool enabled) +{ + // handle method call org.deepin.dde.SoundEffect1.EnableSound + QMetaObject::invokeMethod(parent(), "EnableSound", Q_ARG(QString, name), Q_ARG(bool, enabled)); +} + +QMap SoundEffect1Adaptor::GetSoundEnabledMap() +{ + // handle method call org.deepin.dde.SoundEffect1.GetSoundEnabledMap + QMap result; + QMetaObject::invokeMethod(parent(), "GetSoundEnabledMap", Q_RETURN_ARG(QMap, result)); + return result; +} + +QString SoundEffect1Adaptor::GetSoundFile(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.GetSoundFile + QString file; + QMetaObject::invokeMethod(parent(), "GetSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name)); + return file; +} + +QString SoundEffect1Adaptor::GetSystemSoundFile(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.GetSystemSoundFile + QString file; + QMetaObject::invokeMethod(parent(), "GetSystemSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name)); + return file; +} + +bool SoundEffect1Adaptor::IsSoundEnabled(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.IsSoundEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "IsSoundEnabled", Q_RETURN_ARG(bool, enabled), Q_ARG(QString, name)); + return enabled; +} + +void SoundEffect1Adaptor::PlaySound(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.PlaySound + QMetaObject::invokeMethod(parent(), "PlaySound", Q_ARG(QString, name)); +} + +void SoundEffect1Adaptor::PlaySystemSound(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.PlaySystemSound + QMetaObject::invokeMethod(parent(), "PlaySystemSound", Q_ARG(QString, name)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h new file mode 100644 index 00000000..c5f5709c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.SoundEffect1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1.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_SOUNDEFFECT1ADAPTOR_H +#define ORG_DEEPIN_DDE_SOUNDEFFECT1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.SoundEffect1 + */ +class SoundEffect1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SoundEffect1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SoundEffect1Adaptor(QObject *parent); + virtual ~SoundEffect1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Enabled READ enabled WRITE setEnabled) + bool enabled() const; + void setEnabled(bool value); + +public Q_SLOTS: // METHODS + void EnableSound(const QString &name, bool enabled); + QMap GetSoundEnabledMap(); + QString GetSoundFile(const QString &name); + QString GetSystemSoundFile(const QString &name); + bool IsSoundEnabled(const QString &name); + void PlaySound(const QString &name); + void PlaySystemSound(const QString &name); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp new file mode 100644 index 00000000..5ebd7d67 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp @@ -0,0 +1,321 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.daemon.Dock1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Dock1Adaptor + */ + +Dock1Adaptor::Dock1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Dock1Adaptor::~Dock1Adaptor() +{ + // destructor +} + +int Dock1Adaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< int >(parent()->property("DisplayMode")); +} + +void Dock1Adaptor::setDisplayMode(int value) +{ + // set the value of property DisplayMode + parent()->setProperty("DisplayMode", QVariant::fromValue(value)); +} + +QStringList Dock1Adaptor::dockedApps() const +{ + // get the value of property DockedApps + return qvariant_cast< QStringList >(parent()->property("DockedApps")); +} + +QList Dock1Adaptor::entries() const +{ + // get the value of property Entries + return qvariant_cast< QList >(parent()->property("Entries")); +} + +QRect Dock1Adaptor::frontendWindowRect() const +{ + // get the value of property FrontendWindowRect + return qvariant_cast< QRect >(parent()->property("FrontendWindowRect")); +} + +int Dock1Adaptor::hideMode() const +{ + // get the value of property HideMode + return qvariant_cast< int >(parent()->property("HideMode")); +} + +void Dock1Adaptor::setHideMode(int value) +{ + // set the value of property HideMode + parent()->setProperty("HideMode", QVariant::fromValue(value)); +} + +int Dock1Adaptor::hideState() const +{ + // get the value of property HideState + return qvariant_cast< int >(parent()->property("HideState")); +} + +uint Dock1Adaptor::hideTimeout() const +{ + // get the value of property HideTimeout + return qvariant_cast< uint >(parent()->property("HideTimeout")); +} + +void Dock1Adaptor::setHideTimeout(uint value) +{ + // set the value of property HideTimeout + parent()->setProperty("HideTimeout", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::iconSize() const +{ + // get the value of property IconSize + return qvariant_cast< uint >(parent()->property("IconSize")); +} + +void Dock1Adaptor::setIconSize(uint value) +{ + // set the value of property IconSize + parent()->setProperty("IconSize", QVariant::fromValue(value)); +} + +double Dock1Adaptor::opacity() const +{ + // get the value of property Opacity + return qvariant_cast< double >(parent()->property("Opacity")); +} + +void Dock1Adaptor::setOpacity(double value) +{ + // set the value of property Opacity + parent()->setProperty("Opacity", QVariant::fromValue(value)); +} + +int Dock1Adaptor::position() const +{ + // get the value of property Position + return qvariant_cast< int >(parent()->property("Position")); +} + +void Dock1Adaptor::setPosition(int value) +{ + // set the value of property Position + parent()->setProperty("Position", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::showTimeout() const +{ + // get the value of property ShowTimeout + return qvariant_cast< uint >(parent()->property("ShowTimeout")); +} + +void Dock1Adaptor::setShowTimeout(uint value) +{ + // set the value of property ShowTimeout + parent()->setProperty("ShowTimeout", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSize() const +{ + // get the value of property WindowSize + return qvariant_cast< uint >(parent()->property("WindowSize")); +} + +void Dock1Adaptor::setWindowSize(uint value) +{ + // set the value of property WindowSize + parent()->setProperty("WindowSize", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSizeEfficient() const +{ + // get the value of property WindowSizeEfficient + return qvariant_cast< uint >(parent()->property("WindowSizeEfficient")); +} + +void Dock1Adaptor::setWindowSizeEfficient(uint value) +{ + // set the value of property WindowSizeEfficient + parent()->setProperty("WindowSizeEfficient", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSizeFashion() const +{ + // get the value of property WindowSizeFashion + return qvariant_cast< uint >(parent()->property("WindowSizeFashion")); +} + +void Dock1Adaptor::setWindowSizeFashion(uint value) +{ + // set the value of property WindowSizeFashion + parent()->setProperty("WindowSizeFashion", QVariant::fromValue(value)); +} + +void Dock1Adaptor::ActivateWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.ActivateWindow + QMetaObject::invokeMethod(parent(), "ActivateWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::CancelPreviewWindow() +{ + // handle method call org.deepin.dde.daemon.Dock1.CancelPreviewWindow + QMetaObject::invokeMethod(parent(), "CancelPreviewWindow"); +} + +void Dock1Adaptor::CloseWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.CloseWindow + QMetaObject::invokeMethod(parent(), "CloseWindow", Q_ARG(uint, in0)); +} + +QStringList Dock1Adaptor::GetDockedAppsDesktopFiles() +{ + // handle method call org.deepin.dde.daemon.Dock1.GetDockedAppsDesktopFiles + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetDockedAppsDesktopFiles", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList Dock1Adaptor::GetEntryIDs() +{ + // handle method call org.deepin.dde.daemon.Dock1.GetEntryIDs + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetEntryIDs", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString Dock1Adaptor::GetPluginSettings() +{ + // handle method call org.deepin.dde.daemon.Dock1.GetPluginSettings + QString out0; + QMetaObject::invokeMethod(parent(), "GetPluginSettings", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool Dock1Adaptor::IsDocked(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.IsDocked + bool out0; + QMetaObject::invokeMethod(parent(), "IsDocked", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +bool Dock1Adaptor::IsOnDock(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.IsOnDock + bool out0; + QMetaObject::invokeMethod(parent(), "IsOnDock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void Dock1Adaptor::MakeWindowAbove(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MakeWindowAbove + QMetaObject::invokeMethod(parent(), "MakeWindowAbove", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::MaximizeWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MaximizeWindow + QMetaObject::invokeMethod(parent(), "MaximizeWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::MergePluginSettings(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MergePluginSettings + QMetaObject::invokeMethod(parent(), "MergePluginSettings", Q_ARG(QString, in0)); +} + +void Dock1Adaptor::MinimizeWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MinimizeWindow + QMetaObject::invokeMethod(parent(), "MinimizeWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::MoveEntry(int in0, int in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.MoveEntry + QMetaObject::invokeMethod(parent(), "MoveEntry", Q_ARG(int, in0), Q_ARG(int, in1)); +} + +void Dock1Adaptor::MoveWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MoveWindow + QMetaObject::invokeMethod(parent(), "MoveWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::PreviewWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.PreviewWindow + QMetaObject::invokeMethod(parent(), "PreviewWindow", Q_ARG(uint, in0)); +} + +QString Dock1Adaptor::QueryWindowIdentifyMethod(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.QueryWindowIdentifyMethod + QString out0; + QMetaObject::invokeMethod(parent(), "QueryWindowIdentifyMethod", Q_RETURN_ARG(QString, out0), Q_ARG(uint, in0)); + return out0; +} + +void Dock1Adaptor::RemovePluginSettings(const QString &in0, const QStringList &in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.RemovePluginSettings + QMetaObject::invokeMethod(parent(), "RemovePluginSettings", Q_ARG(QString, in0), Q_ARG(QStringList, in1)); +} + +bool Dock1Adaptor::RequestDock(const QString &in0, int in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.RequestDock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestDock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0), Q_ARG(int, in1)); + return out0; +} + +bool Dock1Adaptor::RequestUndock(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.RequestUndock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestUndock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void Dock1Adaptor::SetFrontendWindowRect(int in0, int in1, int in2, int in3) +{ + // handle method call org.deepin.dde.daemon.Dock1.SetFrontendWindowRect + QMetaObject::invokeMethod(parent(), "SetFrontendWindowRect", Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3)); +} + +void Dock1Adaptor::SetPluginSettings(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.SetPluginSettings + QMetaObject::invokeMethod(parent(), "SetPluginSettings", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h new file mode 100644 index 00000000..49c432e7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h @@ -0,0 +1,223 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.deepin.dde.daemon.Dock1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.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_DAEMON_DOCK1ADAPTOR_H +#define ORG_DEEPIN_DDE_DAEMON_DOCK1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.daemon.Dock1 + */ +class Dock1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.daemon.Dock1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Dock1Adaptor(QObject *parent); + virtual ~Dock1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode) + int displayMode() const; + void setDisplayMode(int value); + + Q_PROPERTY(QStringList DockedApps READ dockedApps) + QStringList dockedApps() const; + + Q_PROPERTY(QList Entries READ entries) + QList entries() const; + + Q_PROPERTY(QRect FrontendWindowRect READ frontendWindowRect) + QRect frontendWindowRect() const; + + Q_PROPERTY(int HideMode READ hideMode WRITE setHideMode) + int hideMode() const; + void setHideMode(int value); + + Q_PROPERTY(int HideState READ hideState) + int hideState() const; + + Q_PROPERTY(uint HideTimeout READ hideTimeout WRITE setHideTimeout) + uint hideTimeout() const; + void setHideTimeout(uint value); + + Q_PROPERTY(uint IconSize READ iconSize WRITE setIconSize) + uint iconSize() const; + void setIconSize(uint value); + + Q_PROPERTY(double Opacity READ opacity WRITE setOpacity) + double opacity() const; + void setOpacity(double value); + + Q_PROPERTY(int Position READ position WRITE setPosition) + int position() const; + void setPosition(int value); + + Q_PROPERTY(uint ShowTimeout READ showTimeout WRITE setShowTimeout) + uint showTimeout() const; + void setShowTimeout(uint value); + + Q_PROPERTY(uint WindowSize READ windowSize WRITE setWindowSize) + uint windowSize() const; + void setWindowSize(uint value); + + Q_PROPERTY(uint WindowSizeEfficient READ windowSizeEfficient WRITE setWindowSizeEfficient) + uint windowSizeEfficient() const; + void setWindowSizeEfficient(uint value); + + Q_PROPERTY(uint WindowSizeFashion READ windowSizeFashion WRITE setWindowSizeFashion) + uint windowSizeFashion() const; + void setWindowSizeFashion(uint value); + +public Q_SLOTS: // METHODS + void ActivateWindow(uint in0); + void CancelPreviewWindow(); + void CloseWindow(uint in0); + QStringList GetDockedAppsDesktopFiles(); + QStringList GetEntryIDs(); + QString GetPluginSettings(); + bool IsDocked(const QString &in0); + bool IsOnDock(const QString &in0); + void MakeWindowAbove(uint in0); + void MaximizeWindow(uint in0); + void MergePluginSettings(const QString &in0); + void MinimizeWindow(uint in0); + void MoveEntry(int in0, int in1); + void MoveWindow(uint in0); + void PreviewWindow(uint in0); + QString QueryWindowIdentifyMethod(uint in0); + void RemovePluginSettings(const QString &in0, const QStringList &in1); + bool RequestDock(const QString &in0, int in1); + bool RequestUndock(const QString &in0); + void SetFrontendWindowRect(int in0, int in1, int in2, int in3); + void SetPluginSettings(const QString &in0); +Q_SIGNALS: // SIGNALS + void DockAppSettingsSynced(); + void EntryAdded(const QDBusObjectPath &in0, int in1); + void EntryRemoved(const QString &in0); + void PluginSettingsSynced(); + void ServiceRestarted(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.cpp new file mode 100644 index 00000000..e6a43f05 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.cpp @@ -0,0 +1,43 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.desktopspec.ObjectManager1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ObjectManagerAdaptor + */ + +ObjectManagerAdaptor::ObjectManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ObjectManagerAdaptor::~ObjectManagerAdaptor() +{ + // destructor +} + +ObjectMap ObjectManagerAdaptor::GetManagedObjects() +{ + // handle method call org.desktopspec.DBus.ObjectManager.GetManagedObjects + ObjectMap objpath_interfaces_and_properties; + QMetaObject::invokeMethod(parent(), "GetManagedObjects", Q_RETURN_ARG(ObjectMap, objpath_interfaces_and_properties)); + return objpath_interfaces_and_properties; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h new file mode 100644 index 00000000..6752b782 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h @@ -0,0 +1,63 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session-ui/xml/org.desktopspec.ObjectManager1.xml -a ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor -i ./dde-session-ui/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1.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_DESKTOPSPEC_OBJECTMANAGER1ADAPTOR_H +#define ORG_DESKTOPSPEC_OBJECTMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-session-ui/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.desktopspec.DBus.ObjectManager + */ +class ObjectManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.DBus.ObjectManager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ObjectManagerAdaptor(QObject *parent); + virtual ~ObjectManagerAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + ObjectMap GetManagedObjects(); +Q_SIGNALS: // SIGNALS + void InterfacesAdded(const QDBusObjectPath &object_path, ObjectInterfaceMap interfaces_and_properties); + void InterfacesRemoved(const QDBusObjectPath &object_path, const QStringList &interfaces); +}; + +#endif