-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp Log: Add files generated by qdbusXML2cpp and DCONG2cpp
- Loading branch information
1 parent
2535f3e
commit 35402c7
Showing
211 changed files
with
26,847 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
199 changes: 199 additions & 0 deletions
199
toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
/* | ||
* This file was generated by qdbusxml2cpp version 0.8 | ||
* Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.SessionManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManager.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-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.h" | ||
#include <QtCore/QMetaObject> | ||
#include <QtCore/QByteArray> | ||
#include <QtCore/QList> | ||
#include <QtCore/QMap> | ||
#include <QtCore/QString> | ||
#include <QtCore/QStringList> | ||
#include <QtCore/QVariant> | ||
|
||
/* | ||
* Implementation of adaptor class SessionManagerAdaptor | ||
*/ | ||
|
||
SessionManagerAdaptor::SessionManagerAdaptor(QObject *parent) | ||
: QDBusAbstractAdaptor(parent) | ||
{ | ||
// constructor | ||
setAutoRelaySignals(true); | ||
} | ||
|
||
SessionManagerAdaptor::~SessionManagerAdaptor() | ||
{ | ||
// destructor | ||
} | ||
|
||
QString SessionManagerAdaptor::currentUid() const | ||
{ | ||
// get the value of property CurrentUid | ||
return qvariant_cast< QString >(parent()->property("CurrentUid")); | ||
} | ||
|
||
bool SessionManagerAdaptor::locked() const | ||
{ | ||
// get the value of property Locked | ||
return qvariant_cast< bool >(parent()->property("Locked")); | ||
} | ||
|
||
int SessionManagerAdaptor::stage() const | ||
{ | ||
// get the value of property Stage | ||
return qvariant_cast< int >(parent()->property("Stage")); | ||
} | ||
|
||
bool SessionManagerAdaptor::AllowSessionDaemonRun() | ||
{ | ||
// handle method call com.deepin.SessionManager.AllowSessionDaemonRun | ||
bool out0; | ||
QMetaObject::invokeMethod(parent(), "AllowSessionDaemonRun", Q_RETURN_ARG(bool, out0)); | ||
return out0; | ||
} | ||
|
||
bool SessionManagerAdaptor::CanHibernate() | ||
{ | ||
// handle method call com.deepin.SessionManager.CanHibernate | ||
bool out0; | ||
QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0)); | ||
return out0; | ||
} | ||
|
||
bool SessionManagerAdaptor::CanLogout() | ||
{ | ||
// handle method call com.deepin.SessionManager.CanLogout | ||
bool out0; | ||
QMetaObject::invokeMethod(parent(), "CanLogout", Q_RETURN_ARG(bool, out0)); | ||
return out0; | ||
} | ||
|
||
bool SessionManagerAdaptor::CanReboot() | ||
{ | ||
// handle method call com.deepin.SessionManager.CanReboot | ||
bool out0; | ||
QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0)); | ||
return out0; | ||
} | ||
|
||
bool SessionManagerAdaptor::CanShutdown() | ||
{ | ||
// handle method call com.deepin.SessionManager.CanShutdown | ||
bool out0; | ||
QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0)); | ||
return out0; | ||
} | ||
|
||
bool SessionManagerAdaptor::CanSuspend() | ||
{ | ||
// handle method call com.deepin.SessionManager.CanSuspend | ||
bool out0; | ||
QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0)); | ||
return out0; | ||
} | ||
|
||
void SessionManagerAdaptor::ForceLogout() | ||
{ | ||
// handle method call com.deepin.SessionManager.ForceLogout | ||
QMetaObject::invokeMethod(parent(), "ForceLogout"); | ||
} | ||
|
||
void SessionManagerAdaptor::ForceReboot() | ||
{ | ||
// handle method call com.deepin.SessionManager.ForceReboot | ||
QMetaObject::invokeMethod(parent(), "ForceReboot"); | ||
} | ||
|
||
void SessionManagerAdaptor::ForceShutdown() | ||
{ | ||
// handle method call com.deepin.SessionManager.ForceShutdown | ||
QMetaObject::invokeMethod(parent(), "ForceShutdown"); | ||
} | ||
|
||
void SessionManagerAdaptor::Logout() | ||
{ | ||
// handle method call com.deepin.SessionManager.Logout | ||
QMetaObject::invokeMethod(parent(), "Logout"); | ||
} | ||
|
||
void SessionManagerAdaptor::PowerOffChoose() | ||
{ | ||
// handle method call com.deepin.SessionManager.PowerOffChoose | ||
QMetaObject::invokeMethod(parent(), "PowerOffChoose"); | ||
} | ||
|
||
void SessionManagerAdaptor::Reboot() | ||
{ | ||
// handle method call com.deepin.SessionManager.Reboot | ||
QMetaObject::invokeMethod(parent(), "Reboot"); | ||
} | ||
|
||
bool SessionManagerAdaptor::Register(const QString &in0) | ||
{ | ||
// handle method call com.deepin.SessionManager.Register | ||
bool out0; | ||
QMetaObject::invokeMethod(parent(), "Register", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); | ||
return out0; | ||
} | ||
|
||
void SessionManagerAdaptor::RequestHibernate() | ||
{ | ||
// handle method call com.deepin.SessionManager.RequestHibernate | ||
QMetaObject::invokeMethod(parent(), "RequestHibernate"); | ||
} | ||
|
||
void SessionManagerAdaptor::RequestLock() | ||
{ | ||
// handle method call com.deepin.SessionManager.RequestLock | ||
QMetaObject::invokeMethod(parent(), "RequestLock"); | ||
} | ||
|
||
void SessionManagerAdaptor::RequestLogout() | ||
{ | ||
// handle method call com.deepin.SessionManager.RequestLogout | ||
QMetaObject::invokeMethod(parent(), "RequestLogout"); | ||
} | ||
|
||
void SessionManagerAdaptor::RequestReboot() | ||
{ | ||
// handle method call com.deepin.SessionManager.RequestReboot | ||
QMetaObject::invokeMethod(parent(), "RequestReboot"); | ||
} | ||
|
||
void SessionManagerAdaptor::RequestShutdown() | ||
{ | ||
// handle method call com.deepin.SessionManager.RequestShutdown | ||
QMetaObject::invokeMethod(parent(), "RequestShutdown"); | ||
} | ||
|
||
void SessionManagerAdaptor::RequestSuspend() | ||
{ | ||
// handle method call com.deepin.SessionManager.RequestSuspend | ||
QMetaObject::invokeMethod(parent(), "RequestSuspend"); | ||
} | ||
|
||
void SessionManagerAdaptor::SetLocked(bool in0) | ||
{ | ||
// handle method call com.deepin.SessionManager.SetLocked | ||
QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, in0)); | ||
} | ||
|
||
void SessionManagerAdaptor::Shutdown() | ||
{ | ||
// handle method call com.deepin.SessionManager.Shutdown | ||
QMetaObject::invokeMethod(parent(), "Shutdown"); | ||
} | ||
|
||
void SessionManagerAdaptor::ToggleDebug() | ||
{ | ||
// handle method call com.deepin.SessionManager.ToggleDebug | ||
QMetaObject::invokeMethod(parent(), "ToggleDebug"); | ||
} | ||
|
122 changes: 122 additions & 0 deletions
122
toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/* | ||
* This file was generated by qdbusxml2cpp version 0.8 | ||
* Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.SessionManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManager.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_SESSIONMANAGERADAPTOR_H | ||
#define COM_DEEPIN_SESSIONMANAGERADAPTOR_H | ||
|
||
#include <QtCore/QObject> | ||
#include <QtDBus/QtDBus> | ||
#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManager.h" | ||
QT_BEGIN_NAMESPACE | ||
class QByteArray; | ||
template<class T> class QList; | ||
template<class Key, class Value> class QMap; | ||
class QString; | ||
class QStringList; | ||
class QVariant; | ||
QT_END_NAMESPACE | ||
|
||
/* | ||
* Adaptor class for interface com.deepin.SessionManager | ||
*/ | ||
class SessionManagerAdaptor: public QDBusAbstractAdaptor | ||
{ | ||
Q_OBJECT | ||
Q_CLASSINFO("D-Bus Interface", "com.deepin.SessionManager") | ||
Q_CLASSINFO("D-Bus Introspection", "" | ||
" <interface name=\"com.deepin.SessionManager\">\n" | ||
" <method name=\"AllowSessionDaemonRun\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"CanHibernate\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"CanLogout\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"CanReboot\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"CanShutdown\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"CanSuspend\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"ForceLogout\"/>\n" | ||
" <method name=\"ForceReboot\"/>\n" | ||
" <method name=\"ForceShutdown\"/>\n" | ||
" <method name=\"Logout\"/>\n" | ||
" <method name=\"PowerOffChoose\"/>\n" | ||
" <method name=\"Reboot\"/>\n" | ||
" <method name=\"Register\">\n" | ||
" <arg direction=\"in\" type=\"s\"/>\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"RequestHibernate\"/>\n" | ||
" <method name=\"RequestLock\"/>\n" | ||
" <method name=\"RequestLogout\"/>\n" | ||
" <method name=\"RequestReboot\"/>\n" | ||
" <method name=\"RequestShutdown\"/>\n" | ||
" <method name=\"RequestSuspend\"/>\n" | ||
" <method name=\"SetLocked\">\n" | ||
" <arg direction=\"in\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"Shutdown\"/>\n" | ||
" <method name=\"ToggleDebug\"/>\n" | ||
" <signal name=\"Unlock\"/>\n" | ||
" <property access=\"read\" type=\"b\" name=\"Locked\"/>\n" | ||
" <property access=\"read\" type=\"s\" name=\"CurrentUid\"/>\n" | ||
" <property access=\"read\" type=\"i\" name=\"Stage\"/>\n" | ||
" </interface>\n" | ||
"") | ||
public: | ||
SessionManagerAdaptor(QObject *parent); | ||
virtual ~SessionManagerAdaptor(); | ||
|
||
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 |
Oops, something went wrong.