From 12c45345c873bba282aa51a277c1c17df433efeb Mon Sep 17 00:00:00 2001 From: jingshenghao Date: Mon, 13 Jan 2025 16:24:29 +0800 Subject: [PATCH] feat: Add files generated by qdbusXML2cpp and DCONG2cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add files generated by qdbusXML2cpp and DCONG2cpp Log: Add files generated by qdbusXML2cpp and DCONG2cpp --- .reuse/dep5 | 4 + .../org.deepin.dde.Accounts1.UserAdaptor.cpp | 361 ++++++++++++++++++ .../org.deepin.dde.Accounts1.UserAdaptor.h | 264 +++++++++++++ .../org.deepin.dde.Accounts1Adaptor.cpp | 133 +++++++ .../org.deepin.dde.Accounts1Adaptor.h | 124 ++++++ .../org.deepin.dde.Fprintd1.DeviceAdaptor.cpp | 85 +++++ .../org.deepin.dde.Fprintd1.DeviceAdaptor.h | 88 +++++ .../org.deepin.dde.Fprintd1Adaptor.cpp | 57 +++ .../org.deepin.dde.Fprintd1Adaptor.h | 59 +++ ...rg.deepin.dde.Polkit1.AuthAgentAdaptor.cpp | 41 ++ .../org.deepin.dde.Polkit1.AuthAgentAdaptor.h | 52 +++ 11 files changed, 1268 insertions(+) create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.h diff --git a/.reuse/dep5 b/.reuse/dep5 index 4f18670..0e56777 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -52,3 +52,7 @@ License: CC0-1.0 Files: dbus/adapter/*.xml dbus/*.xml Copyright: None License: CC0-1.0 + +Files: toolGenerate/**/* +Copyright: None +License: CC0-1.0 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 0000000..876b5b9 --- /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-polkit-agent/dbus/org.deepin.dde.Accounts1.User.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-polkit-agent/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-polkit-agent/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 0000000..f1d0e52 --- /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-polkit-agent/dbus/org.deepin.dde.Accounts1.User.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-polkit-agent/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-polkit-agent/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 0000000..9495a5c --- /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-polkit-agent/dbus/org.deepin.dde.Accounts1.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-polkit-agent/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-polkit-agent/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 0000000..5275268 --- /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-polkit-agent/dbus/org.deepin.dde.Accounts1.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-polkit-agent/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-polkit-agent/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.Fprintd1.DeviceAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.cpp new file mode 100644 index 0000000..05b1095 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.cpp @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-polkit-agent/dbus/org.deepin.dde.Fprintd1.Device.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor -i ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.Device.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-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DeviceAdaptor + */ + +DeviceAdaptor::DeviceAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DeviceAdaptor::~DeviceAdaptor() +{ + // destructor +} + +void DeviceAdaptor::Claim(const QString &in0) +{ + // handle method call org.deepin.dde.Fprintd1.Device.Claim + QMetaObject::invokeMethod(parent(), "Claim", Q_ARG(QString, in0)); +} + +void DeviceAdaptor::DeleteEnrolledFingers(const QString &in0) +{ + // handle method call org.deepin.dde.Fprintd1.Device.DeleteEnrolledFingers + QMetaObject::invokeMethod(parent(), "DeleteEnrolledFingers", Q_ARG(QString, in0)); +} + +void DeviceAdaptor::EnrollStart(const QString &in0) +{ + // handle method call org.deepin.dde.Fprintd1.Device.EnrollStart + QMetaObject::invokeMethod(parent(), "EnrollStart", Q_ARG(QString, in0)); +} + +void DeviceAdaptor::EnrollStop() +{ + // handle method call org.deepin.dde.Fprintd1.Device.EnrollStop + QMetaObject::invokeMethod(parent(), "EnrollStop"); +} + +QStringList DeviceAdaptor::ListEnrolledFingers(const QString &in0) +{ + // handle method call org.deepin.dde.Fprintd1.Device.ListEnrolledFingers + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListEnrolledFingers", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, in0)); + return out0; +} + +void DeviceAdaptor::Release() +{ + // handle method call org.deepin.dde.Fprintd1.Device.Release + QMetaObject::invokeMethod(parent(), "Release"); +} + +void DeviceAdaptor::VerifyStart(const QString &in0) +{ + // handle method call org.deepin.dde.Fprintd1.Device.VerifyStart + QMetaObject::invokeMethod(parent(), "VerifyStart", Q_ARG(QString, in0)); +} + +void DeviceAdaptor::VerifyStop() +{ + // handle method call org.deepin.dde.Fprintd1.Device.VerifyStop + QMetaObject::invokeMethod(parent(), "VerifyStop"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.h new file mode 100644 index 0000000..bcc1c49 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor.h @@ -0,0 +1,88 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-polkit-agent/dbus/org.deepin.dde.Fprintd1.Device.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.DeviceAdaptor -i ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.Device.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_FPRINTD1_DEVICEADAPTOR_H +#define ORG_DEEPIN_DDE_FPRINTD1_DEVICEADAPTOR_H + +#include +#include +#include "./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.Device.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.Fprintd1.Device + */ +class DeviceAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Fprintd1.Device") + 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" + "") +public: + DeviceAdaptor(QObject *parent); + virtual ~DeviceAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void Claim(const QString &in0); + void DeleteEnrolledFingers(const QString &in0); + void EnrollStart(const QString &in0); + void EnrollStop(); + QStringList ListEnrolledFingers(const QString &in0); + void Release(); + void VerifyStart(const QString &in0); + void VerifyStop(); +Q_SIGNALS: // SIGNALS + void EnrollStatus(const QString &in0, bool in1); + void VerifyFingerSelected(const QString &in0); + void VerifyStatus(const QString &in0, bool in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.cpp new file mode 100644 index 0000000..cf20332 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.cpp @@ -0,0 +1,57 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-polkit-agent/dbus/org.deepin.dde.Fprintd1.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor -i ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.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-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Fprintd1Adaptor + */ + +Fprintd1Adaptor::Fprintd1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Fprintd1Adaptor::~Fprintd1Adaptor() +{ + // destructor +} + +QList Fprintd1Adaptor::devices() const +{ + // get the value of property Devices + return qvariant_cast< QList >(parent()->property("Devices")); +} + +QDBusObjectPath Fprintd1Adaptor::GetDefaultDevice() +{ + // handle method call org.deepin.dde.Fprintd1.GetDefaultDevice + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetDefaultDevice", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +QList Fprintd1Adaptor::GetDevices() +{ + // handle method call org.deepin.dde.Fprintd1.GetDevices + QList out0; + QMetaObject::invokeMethod(parent(), "GetDevices", Q_RETURN_ARG(QList, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.h new file mode 100644 index 0000000..08770dc --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-polkit-agent/dbus/org.deepin.dde.Fprintd1.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1Adaptor -i ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.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_FPRINTD1ADAPTOR_H +#define ORG_DEEPIN_DDE_FPRINTD1ADAPTOR_H + +#include +#include +#include "./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Fprintd1.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.Fprintd1 + */ +class Fprintd1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Fprintd1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Fprintd1Adaptor(QObject *parent); + virtual ~Fprintd1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QList Devices READ devices) + QList devices() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath GetDefaultDevice(); + QList GetDevices(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.cpp new file mode 100644 index 0000000..703b7c6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.cpp @@ -0,0 +1,41 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-polkit-agent/dbus/adapter/org.deepin.dde.Polkit1.AuthAgent.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor -i ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgent.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-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class AuthAgentAdaptor + */ + +AuthAgentAdaptor::AuthAgentAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +AuthAgentAdaptor::~AuthAgentAdaptor() +{ + // destructor +} + +void AuthAgentAdaptor::setWIdForAction(const QString &in0, qulonglong in1) +{ + // handle method call org.deepin.dde.Polkit1.AuthAgent.setWIdForAction + QMetaObject::invokeMethod(parent(), "setWIdForAction", Q_ARG(QString, in0), Q_ARG(qulonglong, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.h new file mode 100644 index 0000000..c3ea459 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor.h @@ -0,0 +1,52 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-polkit-agent/dbus/adapter/org.deepin.dde.Polkit1.AuthAgent.xml -a ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgentAdaptor -i ./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgent.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_POLKIT1_AUTHAGENTADAPTOR_H +#define ORG_DEEPIN_DDE_POLKIT1_AUTHAGENTADAPTOR_H + +#include +#include +#include "./dde-polkit-agent/toolGenerate/qdbusxml2cpp/org.deepin.dde.Polkit1.AuthAgent.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.Polkit1.AuthAgent + */ +class AuthAgentAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Polkit1.AuthAgent") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + AuthAgentAdaptor(QObject *parent); + virtual ~AuthAgentAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void setWIdForAction(const QString &in0, qulonglong in1); +Q_SIGNALS: // SIGNALS +}; + +#endif