diff --git a/.reuse/dep5 b/.reuse/dep5 index 68fe2f5..6f4a7c4 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -41,4 +41,8 @@ License: CC0-1.0 # Packaging configuration Files: rpm/* debian/* archlinux/* misc/* Copyright: None -License: CC0-1.0 \ No newline at end of file +License: CC0-1.0 + +Files: toolGenerate/**/* +Copyright: None +License: CC0-1.0 diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp new file mode 100644 index 0000000..34bb2bd --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.cpp @@ -0,0 +1,377 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/com.deepin.wm.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/com.deepin.wm.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WmAdaptor + */ + +WmAdaptor::WmAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WmAdaptor::~WmAdaptor() +{ + // destructor +} + +bool WmAdaptor::compositingAllowSwitch() const +{ + // get the value of property compositingAllowSwitch + return qvariant_cast< bool >(parent()->property("compositingAllowSwitch")); +} + +bool WmAdaptor::compositingEnabled() const +{ + // get the value of property compositingEnabled + return qvariant_cast< bool >(parent()->property("compositingEnabled")); +} + +void WmAdaptor::setCompositingEnabled(bool value) +{ + // set the value of property compositingEnabled + parent()->setProperty("compositingEnabled", QVariant::fromValue(value)); +} + +bool WmAdaptor::compositingPossible() const +{ + // get the value of property compositingPossible + return qvariant_cast< bool >(parent()->property("compositingPossible")); +} + +int WmAdaptor::cursorSize() const +{ + // get the value of property cursorSize + return qvariant_cast< int >(parent()->property("cursorSize")); +} + +void WmAdaptor::setCursorSize(int value) +{ + // set the value of property cursorSize + parent()->setProperty("cursorSize", QVariant::fromValue(value)); +} + +QString WmAdaptor::cursorTheme() const +{ + // get the value of property cursorTheme + return qvariant_cast< QString >(parent()->property("cursorTheme")); +} + +void WmAdaptor::setCursorTheme(const QString &value) +{ + // set the value of property cursorTheme + parent()->setProperty("cursorTheme", QVariant::fromValue(value)); +} + +bool WmAdaptor::zoneEnabled() const +{ + // get the value of property zoneEnabled + return qvariant_cast< bool >(parent()->property("zoneEnabled")); +} + +void WmAdaptor::setZoneEnabled(bool value) +{ + // set the value of property zoneEnabled + parent()->setProperty("zoneEnabled", QVariant::fromValue(value)); +} + +void WmAdaptor::BeginToMoveActiveWindow() +{ + // handle method call com.deepin.wm.BeginToMoveActiveWindow + QMetaObject::invokeMethod(parent(), "BeginToMoveActiveWindow"); +} + +void WmAdaptor::CancelPreviewWindow() +{ + // handle method call com.deepin.wm.CancelPreviewWindow + QMetaObject::invokeMethod(parent(), "CancelPreviewWindow"); +} + +void WmAdaptor::ChangeCurrentWorkspaceBackground(const QString &uri) +{ + // handle method call com.deepin.wm.ChangeCurrentWorkspaceBackground + QMetaObject::invokeMethod(parent(), "ChangeCurrentWorkspaceBackground", Q_ARG(QString, uri)); +} + +void WmAdaptor::ClearMoveStatus() +{ + // handle method call com.deepin.wm.ClearMoveStatus + QMetaObject::invokeMethod(parent(), "ClearMoveStatus"); +} + +void WmAdaptor::EnableZoneDetected(bool enabled) +{ + // handle method call com.deepin.wm.EnableZoneDetected + QMetaObject::invokeMethod(parent(), "EnableZoneDetected", Q_ARG(bool, enabled)); +} + +QStringList WmAdaptor::GetAccel(const QString &id) +{ + // handle method call com.deepin.wm.GetAccel + QStringList data; + QMetaObject::invokeMethod(parent(), "GetAccel", Q_RETURN_ARG(QStringList, data), Q_ARG(QString, id)); + return data; +} + +QString WmAdaptor::GetAllAccels() +{ + // handle method call com.deepin.wm.GetAllAccels + QString data; + QMetaObject::invokeMethod(parent(), "GetAllAccels", Q_RETURN_ARG(QString, data)); + return data; +} + +int WmAdaptor::GetCurrentWorkspace() +{ + // handle method call com.deepin.wm.GetCurrentWorkspace + int index; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspace", Q_RETURN_ARG(int, index)); + return index; +} + +QString WmAdaptor::GetCurrentWorkspaceBackground() +{ + // handle method call com.deepin.wm.GetCurrentWorkspaceBackground + QString result; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackground", Q_RETURN_ARG(QString, result)); + return result; +} + +QString WmAdaptor::GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName) +{ + // handle method call com.deepin.wm.GetCurrentWorkspaceBackgroundForMonitor + QString result; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, result), Q_ARG(QString, strMonitorName)); + return result; +} + +QStringList WmAdaptor::GetDefaultAccel(const QString &id) +{ + // handle method call com.deepin.wm.GetDefaultAccel + QStringList data; + QMetaObject::invokeMethod(parent(), "GetDefaultAccel", Q_RETURN_ARG(QStringList, data), Q_ARG(QString, id)); + return data; +} + +bool WmAdaptor::GetIsShowDesktop() +{ + // handle method call com.deepin.wm.GetIsShowDesktop + bool isShowDesktop; + QMetaObject::invokeMethod(parent(), "GetIsShowDesktop", Q_RETURN_ARG(bool, isShowDesktop)); + return isShowDesktop; +} + +bool WmAdaptor::GetMultiTaskingStatus() +{ + // handle method call com.deepin.wm.GetMultiTaskingStatus + bool isActive; + QMetaObject::invokeMethod(parent(), "GetMultiTaskingStatus", Q_RETURN_ARG(bool, isActive)); + return isActive; +} + +QString WmAdaptor::GetWorkspaceBackground(int index) +{ + // handle method call com.deepin.wm.GetWorkspaceBackground + QString result; + QMetaObject::invokeMethod(parent(), "GetWorkspaceBackground", Q_RETURN_ARG(QString, result), Q_ARG(int, index)); + return result; +} + +QString WmAdaptor::GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName) +{ + // handle method call com.deepin.wm.GetWorkspaceBackgroundForMonitor + QString result; + QMetaObject::invokeMethod(parent(), "GetWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, result), Q_ARG(int, index), Q_ARG(QString, strMonitorName)); + return result; +} + +void WmAdaptor::MinimizeActiveWindow() +{ + // handle method call com.deepin.wm.MinimizeActiveWindow + QMetaObject::invokeMethod(parent(), "MinimizeActiveWindow"); +} + +void WmAdaptor::NextWorkspace() +{ + // handle method call com.deepin.wm.NextWorkspace + QMetaObject::invokeMethod(parent(), "NextWorkspace"); +} + +void WmAdaptor::PerformAction(int type) +{ + // handle method call com.deepin.wm.PerformAction + QMetaObject::invokeMethod(parent(), "PerformAction", Q_ARG(int, type)); +} + +void WmAdaptor::PresentWindows(const QList &xids) +{ + // handle method call com.deepin.wm.PresentWindows + QMetaObject::invokeMethod(parent(), "PresentWindows", Q_ARG(QList, xids)); +} + +void WmAdaptor::PreviewWindow(uint xid) +{ + // handle method call com.deepin.wm.PreviewWindow + QMetaObject::invokeMethod(parent(), "PreviewWindow", Q_ARG(uint, xid)); +} + +void WmAdaptor::PreviousWorkspace() +{ + // handle method call com.deepin.wm.PreviousWorkspace + QMetaObject::invokeMethod(parent(), "PreviousWorkspace"); +} + +void WmAdaptor::RemoveAccel(const QString &id) +{ + // handle method call com.deepin.wm.RemoveAccel + QMetaObject::invokeMethod(parent(), "RemoveAccel", Q_ARG(QString, id)); +} + +bool WmAdaptor::SetAccel(const QString &data) +{ + // handle method call com.deepin.wm.SetAccel + bool result; + QMetaObject::invokeMethod(parent(), "SetAccel", Q_RETURN_ARG(bool, result), Q_ARG(QString, data)); + return result; +} + +void WmAdaptor::SetCurrentWorkspace(int index) +{ + // handle method call com.deepin.wm.SetCurrentWorkspace + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspace", Q_ARG(int, index)); +} + +void WmAdaptor::SetCurrentWorkspaceBackground(const QString &uri) +{ + // handle method call com.deepin.wm.SetCurrentWorkspaceBackground + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackground", Q_ARG(QString, uri)); +} + +void WmAdaptor::SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName) +{ + // handle method call com.deepin.wm.SetCurrentWorkspaceBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackgroundForMonitor", Q_ARG(QString, uri), Q_ARG(QString, strMonitorName)); +} + +void WmAdaptor::SetDecorationDeepinTheme(const QString &deepinThemeName) +{ + // handle method call com.deepin.wm.SetDecorationDeepinTheme + QMetaObject::invokeMethod(parent(), "SetDecorationDeepinTheme", Q_ARG(QString, deepinThemeName)); +} + +void WmAdaptor::SetDecorationTheme(const QString &themeType, const QString &themeName) +{ + // handle method call com.deepin.wm.SetDecorationTheme + QMetaObject::invokeMethod(parent(), "SetDecorationTheme", Q_ARG(QString, themeType), Q_ARG(QString, themeName)); +} + +void WmAdaptor::SetMultiTaskingStatus(bool isActive) +{ + // handle method call com.deepin.wm.SetMultiTaskingStatus + QMetaObject::invokeMethod(parent(), "SetMultiTaskingStatus", Q_ARG(bool, isActive)); +} + +void WmAdaptor::SetShowDesktop(bool isShowDesktop) +{ + // handle method call com.deepin.wm.SetShowDesktop + QMetaObject::invokeMethod(parent(), "SetShowDesktop", Q_ARG(bool, isShowDesktop)); +} + +void WmAdaptor::SetTransientBackground(const QString &in0) +{ + // handle method call com.deepin.wm.SetTransientBackground + QMetaObject::invokeMethod(parent(), "SetTransientBackground", Q_ARG(QString, in0)); +} + +void WmAdaptor::SetTransientBackgroundForMonitor(const QString &uri, const QString &strMonitorName) +{ + // handle method call com.deepin.wm.SetTransientBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetTransientBackgroundForMonitor", Q_ARG(QString, uri), Q_ARG(QString, strMonitorName)); +} + +void WmAdaptor::SetWorkspaceBackground(int index, const QString &uri) +{ + // handle method call com.deepin.wm.SetWorkspaceBackground + QMetaObject::invokeMethod(parent(), "SetWorkspaceBackground", Q_ARG(int, index), Q_ARG(QString, uri)); +} + +void WmAdaptor::SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri) +{ + // handle method call com.deepin.wm.SetWorkspaceBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetWorkspaceBackgroundForMonitor", Q_ARG(int, index), Q_ARG(QString, strMonitorName), Q_ARG(QString, uri)); +} + +void WmAdaptor::ShowAllWindow() +{ + // handle method call com.deepin.wm.ShowAllWindow + QMetaObject::invokeMethod(parent(), "ShowAllWindow"); +} + +void WmAdaptor::ShowWindow() +{ + // handle method call com.deepin.wm.ShowWindow + QMetaObject::invokeMethod(parent(), "ShowWindow"); +} + +void WmAdaptor::ShowWorkspace() +{ + // handle method call com.deepin.wm.ShowWorkspace + QMetaObject::invokeMethod(parent(), "ShowWorkspace"); +} + +void WmAdaptor::SwitchApplication(bool backward) +{ + // handle method call com.deepin.wm.SwitchApplication + QMetaObject::invokeMethod(parent(), "SwitchApplication", Q_ARG(bool, backward)); +} + +void WmAdaptor::SwitchToWorkspace(bool backward) +{ + // handle method call com.deepin.wm.SwitchToWorkspace + QMetaObject::invokeMethod(parent(), "SwitchToWorkspace", Q_ARG(bool, backward)); +} + +void WmAdaptor::TileActiveWindow(uint side) +{ + // handle method call com.deepin.wm.TileActiveWindow + QMetaObject::invokeMethod(parent(), "TileActiveWindow", Q_ARG(uint, side)); +} + +void WmAdaptor::ToggleActiveWindowMaximize() +{ + // handle method call com.deepin.wm.ToggleActiveWindowMaximize + QMetaObject::invokeMethod(parent(), "ToggleActiveWindowMaximize"); +} + +void WmAdaptor::TouchToMove(int x, int y) +{ + // handle method call com.deepin.wm.TouchToMove + QMetaObject::invokeMethod(parent(), "TouchToMove", Q_ARG(int, x), Q_ARG(int, y)); +} + +int WmAdaptor::WorkspaceCount() +{ + // handle method call com.deepin.wm.WorkspaceCount + int count; + QMetaObject::invokeMethod(parent(), "WorkspaceCount", Q_RETURN_ARG(int, count)); + return count; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h new file mode 100644 index 0000000..c4c5779 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor.h @@ -0,0 +1,270 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/com.deepin.wm.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/com.deepin.wmAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/com.deepin.wm.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_WMADAPTOR_H +#define COM_DEEPIN_WMADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/com.deepin.wm.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.wm + */ +class WmAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.wm") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WmAdaptor(QObject *parent); + virtual ~WmAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool compositingAllowSwitch READ compositingAllowSwitch) + bool compositingAllowSwitch() const; + + Q_PROPERTY(bool compositingEnabled READ compositingEnabled WRITE setCompositingEnabled) + bool compositingEnabled() const; + void setCompositingEnabled(bool value); + + Q_PROPERTY(bool compositingPossible READ compositingPossible) + bool compositingPossible() const; + + Q_PROPERTY(int cursorSize READ cursorSize WRITE setCursorSize) + int cursorSize() const; + void setCursorSize(int value); + + Q_PROPERTY(QString cursorTheme READ cursorTheme WRITE setCursorTheme) + QString cursorTheme() const; + void setCursorTheme(const QString &value); + + Q_PROPERTY(bool zoneEnabled READ zoneEnabled WRITE setZoneEnabled) + bool zoneEnabled() const; + void setZoneEnabled(bool value); + +public Q_SLOTS: // METHODS + void BeginToMoveActiveWindow(); + void CancelPreviewWindow(); + void ChangeCurrentWorkspaceBackground(const QString &uri); + void ClearMoveStatus(); + void EnableZoneDetected(bool enabled); + QStringList GetAccel(const QString &id); + QString GetAllAccels(); + int GetCurrentWorkspace(); + QString GetCurrentWorkspaceBackground(); + QString GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName); + QStringList GetDefaultAccel(const QString &id); + bool GetIsShowDesktop(); + bool GetMultiTaskingStatus(); + QString GetWorkspaceBackground(int index); + QString GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName); + void MinimizeActiveWindow(); + void NextWorkspace(); + void PerformAction(int type); + void PresentWindows(const QList &xids); + void PreviewWindow(uint xid); + void PreviousWorkspace(); + void RemoveAccel(const QString &id); + bool SetAccel(const QString &data); + void SetCurrentWorkspace(int index); + void SetCurrentWorkspaceBackground(const QString &uri); + void SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName); + void SetDecorationDeepinTheme(const QString &deepinThemeName); + void SetDecorationTheme(const QString &themeType, const QString &themeName); + void SetMultiTaskingStatus(bool isActive); + void SetShowDesktop(bool isShowDesktop); + void SetTransientBackground(const QString &in0); + void SetTransientBackgroundForMonitor(const QString &uri, const QString &strMonitorName); + void SetWorkspaceBackground(int index, const QString &uri); + void SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri); + void ShowAllWindow(); + void ShowWindow(); + void ShowWorkspace(); + void SwitchApplication(bool backward); + void SwitchToWorkspace(bool backward); + void TileActiveWindow(uint side); + void ToggleActiveWindowMaximize(); + void TouchToMove(int x, int y); + int WorkspaceCount(); +Q_SIGNALS: // SIGNALS + void WorkspaceBackgroundChanged(int index, const QString &newUri); + void WorkspaceBackgroundChangedForMonitor(int index, const QString &strMonitorName, const QString &uri); + void WorkspaceSwitched(int from, int to); + void compositingEnabledChanged(bool enabled); + void wmCompositingEnabledChanged(bool enabled); + void workspaceCountChanged(int count); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp new file mode 100644 index 0000000..40dee04 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp @@ -0,0 +1,127 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.Audio1.Sink.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-session/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/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 +} + +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")); +} + +bool SinkAdaptor::supportBalance() const +{ + // get the value of property SupportBalance + return qvariant_cast< bool >(parent()->property("SupportBalance")); +} + +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 0000000..444c867 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h @@ -0,0 +1,109 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.Audio1.Sink.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-session/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/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" + "") +public: + SinkAdaptor(QObject *parent); + virtual ~SinkAdaptor(); + +public: // PROPERTIES + 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(bool SupportBalance READ supportBalance) + bool supportBalance() 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 0000000..66fc8f9 --- /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/dbus/interface/org.deepin.dde.Audio1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-session/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/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 0000000..706f81c --- /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/dbus/interface/org.deepin.dde.Audio1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-session/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/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 0000000..ed993db --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp @@ -0,0 +1,161 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.Bluetooth1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-session/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/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")); +} + +uint Bluetooth1Adaptor::state() const +{ + // get the value of property State + return qvariant_cast< uint >(parent()->property("State")); +} + +void Bluetooth1Adaptor::ClearUnpairedDevice() +{ + // handle method call org.deepin.dde.Bluetooth1.ClearUnpairedDevice + QMetaObject::invokeMethod(parent(), "ClearUnpairedDevice"); +} + +void Bluetooth1Adaptor::ConnectDevice(const QDBusObjectPath &devPath, const QDBusObjectPath &adapterPath) +{ + // handle method call org.deepin.dde.Bluetooth1.ConnectDevice + QMetaObject::invokeMethod(parent(), "ConnectDevice", Q_ARG(QDBusObjectPath, devPath), Q_ARG(QDBusObjectPath, adapterPath)); +} + +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::DisconnectAudioDevices() +{ + // handle method call org.deepin.dde.Bluetooth1.DisconnectAudioDevices + QMetaObject::invokeMethod(parent(), "DisconnectAudioDevices"); +} + +void Bluetooth1Adaptor::DisconnectDevice(const QDBusObjectPath &devPath) +{ + // handle method call org.deepin.dde.Bluetooth1.DisconnectDevice + QMetaObject::invokeMethod(parent(), "DisconnectDevice", Q_ARG(QDBusObjectPath, devPath)); +} + +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 &adapterPath) +{ + // handle method call org.deepin.dde.Bluetooth1.GetDevices + QString devicesJSON; + QMetaObject::invokeMethod(parent(), "GetDevices", Q_RETURN_ARG(QString, devicesJSON), Q_ARG(QDBusObjectPath, adapterPath)); + return devicesJSON; +} + +void Bluetooth1Adaptor::RegisterAgent(const QDBusObjectPath &agentPath) +{ + // handle method call org.deepin.dde.Bluetooth1.RegisterAgent + QMetaObject::invokeMethod(parent(), "RegisterAgent", Q_ARG(QDBusObjectPath, agentPath)); +} + +void Bluetooth1Adaptor::RemoveDevice(const QDBusObjectPath &adapterPath, const QDBusObjectPath &devPath) +{ + // handle method call org.deepin.dde.Bluetooth1.RemoveDevice + QMetaObject::invokeMethod(parent(), "RemoveDevice", Q_ARG(QDBusObjectPath, adapterPath), Q_ARG(QDBusObjectPath, devPath)); +} + +void Bluetooth1Adaptor::RequestDiscovery(const QDBusObjectPath &adapterPath) +{ + // handle method call org.deepin.dde.Bluetooth1.RequestDiscovery + QMetaObject::invokeMethod(parent(), "RequestDiscovery", Q_ARG(QDBusObjectPath, adapterPath)); +} + +void Bluetooth1Adaptor::SetAdapterAlias(const QDBusObjectPath &adapterPath, const QString &alias) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterAlias + QMetaObject::invokeMethod(parent(), "SetAdapterAlias", Q_ARG(QDBusObjectPath, adapterPath), Q_ARG(QString, alias)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverable(const QDBusObjectPath &adapterPath, bool discoverable) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverable + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverable", Q_ARG(QDBusObjectPath, adapterPath), Q_ARG(bool, discoverable)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapterPath, uint discoverableTimeout) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverableTimeout + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverableTimeout", Q_ARG(QDBusObjectPath, adapterPath), Q_ARG(uint, discoverableTimeout)); +} + +void Bluetooth1Adaptor::SetAdapterDiscovering(const QDBusObjectPath &adapterPath, bool discovering) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscovering + QMetaObject::invokeMethod(parent(), "SetAdapterDiscovering", Q_ARG(QDBusObjectPath, adapterPath), Q_ARG(bool, discovering)); +} + +void Bluetooth1Adaptor::SetAdapterPowered(const QDBusObjectPath &adapterPath, bool powered) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterPowered + QMetaObject::invokeMethod(parent(), "SetAdapterPowered", Q_ARG(QDBusObjectPath, adapterPath), 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)); +} + +void Bluetooth1Adaptor::UnregisterAgent(const QDBusObjectPath &agentPath) +{ + // handle method call org.deepin.dde.Bluetooth1.UnregisterAgent + QMetaObject::invokeMethod(parent(), "UnregisterAgent", Q_ARG(QDBusObjectPath, agentPath)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h new file mode 100644 index 0000000..f8aa5f7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h @@ -0,0 +1,157 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.Bluetooth1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-session/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/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" + "") +public: + Bluetooth1Adaptor(QObject *parent); + virtual ~Bluetooth1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CanSendFile READ canSendFile) + bool canSendFile() const; + + Q_PROPERTY(uint State READ state) + uint state() const; + +public Q_SLOTS: // METHODS + void ClearUnpairedDevice(); + void ConnectDevice(const QDBusObjectPath &devPath, const QDBusObjectPath &adapterPath); + QString DebugInfo(); + void DisconnectAudioDevices(); + void DisconnectDevice(const QDBusObjectPath &devPath); + QString GetAdapters(); + QString GetDevices(const QDBusObjectPath &adapterPath); + void RegisterAgent(const QDBusObjectPath &agentPath); + void RemoveDevice(const QDBusObjectPath &adapterPath, const QDBusObjectPath &devPath); + void RequestDiscovery(const QDBusObjectPath &adapterPath); + void SetAdapterAlias(const QDBusObjectPath &adapterPath, const QString &alias); + void SetAdapterDiscoverable(const QDBusObjectPath &adapterPath, bool discoverable); + void SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapterPath, uint discoverableTimeout); + void SetAdapterDiscovering(const QDBusObjectPath &adapterPath, bool discovering); + void SetAdapterPowered(const QDBusObjectPath &adapterPath, bool powered); + void SetDeviceAlias(const QDBusObjectPath &device, const QString &alias); + void SetDeviceTrusted(const QDBusObjectPath &device, bool trusted); + void UnregisterAgent(const QDBusObjectPath &agentPath); +Q_SIGNALS: // SIGNALS + void AdapterAdded(const QString &adapterJSON); + void AdapterPropertiesChanged(const QString &adapterJSON); + void AdapterRemoved(const QString &adapterJSON); + void DeviceAdded(const QString &devJSON); + void DevicePropertiesChanged(const QString &devJSON); + void DeviceRemoved(const QString &devJSON); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor.cpp new file mode 100644 index 0000000..8eb65e0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor.cpp @@ -0,0 +1,47 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.Daemon1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1.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/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Daemon1Adaptor + */ + +Daemon1Adaptor::Daemon1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Daemon1Adaptor::~Daemon1Adaptor() +{ + // destructor +} + +void Daemon1Adaptor::CallTrace(uint times, uint seconds) +{ + // handle method call org.deepin.dde.Daemon1.CallTrace + QMetaObject::invokeMethod(parent(), "CallTrace", Q_ARG(uint, times), Q_ARG(uint, seconds)); +} + +void Daemon1Adaptor::StartPart2() +{ + // handle method call org.deepin.dde.Daemon1.StartPart2 + QMetaObject::invokeMethod(parent(), "StartPart2"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor.h new file mode 100644 index 0000000..7949b1f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor.h @@ -0,0 +1,54 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.Daemon1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1.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_DAEMON1ADAPTOR_H +#define ORG_DEEPIN_DDE_DAEMON1ADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Daemon1.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.Daemon1 + */ +class Daemon1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Daemon1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Daemon1Adaptor(QObject *parent); + virtual ~Daemon1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void CallTrace(uint times, uint seconds); + void StartPart2(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor.cpp new file mode 100644 index 0000000..2247568 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor.cpp @@ -0,0 +1,75 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.Inhibitor1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1.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/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Inhibitor1Adaptor + */ + +Inhibitor1Adaptor::Inhibitor1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Inhibitor1Adaptor::~Inhibitor1Adaptor() +{ + // destructor +} + +QString Inhibitor1Adaptor::GetAppId() +{ + // handle method call org.deepin.dde.Inhibitor1.GetAppId + QString out0; + QMetaObject::invokeMethod(parent(), "GetAppId", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusObjectPath Inhibitor1Adaptor::GetClientId() +{ + // handle method call org.deepin.dde.Inhibitor1.GetClientId + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetClientId", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +uint Inhibitor1Adaptor::GetFlags() +{ + // handle method call org.deepin.dde.Inhibitor1.GetFlags + uint out0; + QMetaObject::invokeMethod(parent(), "GetFlags", Q_RETURN_ARG(uint, out0)); + return out0; +} + +QString Inhibitor1Adaptor::GetReason() +{ + // handle method call org.deepin.dde.Inhibitor1.GetReason + QString out0; + QMetaObject::invokeMethod(parent(), "GetReason", Q_RETURN_ARG(QString, out0)); + return out0; +} + +uint Inhibitor1Adaptor::GetToplevelXid() +{ + // handle method call org.deepin.dde.Inhibitor1.GetToplevelXid + uint out0; + QMetaObject::invokeMethod(parent(), "GetToplevelXid", Q_RETURN_ARG(uint, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor.h new file mode 100644 index 0000000..65c3626 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor.h @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.Inhibitor1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1.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_INHIBITOR1ADAPTOR_H +#define ORG_DEEPIN_DDE_INHIBITOR1ADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Inhibitor1.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.Inhibitor1 + */ +class Inhibitor1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Inhibitor1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Inhibitor1Adaptor(QObject *parent); + virtual ~Inhibitor1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString GetAppId(); + QDBusObjectPath GetClientId(); + uint GetFlags(); + QString GetReason(); + uint GetToplevelXid(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp new file mode 100644 index 0000000..ee8a8ba --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.PowerManager1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.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/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PowerManager1Adaptor + */ + +PowerManager1Adaptor::PowerManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PowerManager1Adaptor::~PowerManager1Adaptor() +{ + // destructor +} + +bool PowerManager1Adaptor::CanHibernate() +{ + // handle method call org.deepin.dde.PowerManager1.CanHibernate + bool out0; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PowerManager1Adaptor::CanReboot() +{ + // handle method call org.deepin.dde.PowerManager1.CanReboot + bool out0; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PowerManager1Adaptor::CanShutdown() +{ + // handle method call org.deepin.dde.PowerManager1.CanShutdown + bool out0; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool PowerManager1Adaptor::CanSuspend() +{ + // handle method call org.deepin.dde.PowerManager1.CanSuspend + bool out0; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h new file mode 100644 index 0000000..05907ce --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h @@ -0,0 +1,63 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.PowerManager1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.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_POWERMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_POWERMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.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.PowerManager1 + */ +class PowerManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.PowerManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PowerManager1Adaptor(QObject *parent); + virtual ~PowerManager1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool CanHibernate(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor.cpp new file mode 100644 index 0000000..f4cf8be --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor.cpp @@ -0,0 +1,57 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.Session1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1.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/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Session1Adaptor + */ + +Session1Adaptor::Session1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Session1Adaptor::~Session1Adaptor() +{ + // destructor +} + +QString Session1Adaptor::GetSessionPath() +{ + // handle method call org.deepin.dde.Session1.GetSessionPath + QString sessionpath; + QMetaObject::invokeMethod(parent(), "GetSessionPath", Q_RETURN_ARG(QString, sessionpath)); + return sessionpath; +} + +int Session1Adaptor::GetSessionPid() +{ + // handle method call org.deepin.dde.Session1.GetSessionPid + int pid; + QMetaObject::invokeMethod(parent(), "GetSessionPid", Q_RETURN_ARG(int, pid)); + return pid; +} + +void Session1Adaptor::Logout() +{ + // handle method call org.deepin.dde.Session1.Logout + QMetaObject::invokeMethod(parent(), "Logout"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor.h new file mode 100644 index 0000000..859e69a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor.h @@ -0,0 +1,57 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.Session1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1.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_SESSION1ADAPTOR_H +#define ORG_DEEPIN_DDE_SESSION1ADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.Session1.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.Session1 + */ +class Session1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Session1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Session1Adaptor(QObject *parent); + virtual ~Session1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString GetSessionPath(); + int GetSessionPid(); + void Logout(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp new file mode 100644 index 0000000..e0331c3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp @@ -0,0 +1,235 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.SessionManager1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-session/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/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 +} + +QDBusObjectPath SessionManager1Adaptor::currentSessionPath() const +{ + // get the value of property CurrentSessionPath + return qvariant_cast< QDBusObjectPath >(parent()->property("CurrentSessionPath")); +} + +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 result; + QMetaObject::invokeMethod(parent(), "AllowSessionDaemonRun", Q_RETURN_ARG(bool, result)); + return result; +} + +bool SessionManager1Adaptor::CanHibernate() +{ + // handle method call org.deepin.dde.SessionManager1.CanHibernate + bool result; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, result)); + return result; +} + +bool SessionManager1Adaptor::CanLogout() +{ + // handle method call org.deepin.dde.SessionManager1.CanLogout + bool result; + QMetaObject::invokeMethod(parent(), "CanLogout", Q_RETURN_ARG(bool, result)); + return result; +} + +bool SessionManager1Adaptor::CanReboot() +{ + // handle method call org.deepin.dde.SessionManager1.CanReboot + bool result; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, result)); + return result; +} + +bool SessionManager1Adaptor::CanShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.CanShutdown + bool result; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, result)); + return result; +} + +bool SessionManager1Adaptor::CanSuspend() +{ + // handle method call org.deepin.dde.SessionManager1.CanSuspend + bool result; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, result)); + return result; +} + +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"); +} + +QList SessionManager1Adaptor::GetInhibitors() +{ + // handle method call org.deepin.dde.SessionManager1.GetInhibitors + QList Inhibitors; + QMetaObject::invokeMethod(parent(), "GetInhibitors", Q_RETURN_ARG(QList, Inhibitors)); + return Inhibitors; +} + +uint SessionManager1Adaptor::Inhibit(const QString &appId, uint toplevelXid, const QString &reason, uint flags) +{ + // handle method call org.deepin.dde.SessionManager1.Inhibit + uint inhibitCookie; + QMetaObject::invokeMethod(parent(), "Inhibit", Q_RETURN_ARG(uint, inhibitCookie), Q_ARG(QString, appId), Q_ARG(uint, toplevelXid), Q_ARG(QString, reason), Q_ARG(uint, flags)); + return inhibitCookie; +} + +bool SessionManager1Adaptor::IsInhibited(uint flags) +{ + // handle method call org.deepin.dde.SessionManager1.IsInhibited + bool ret; + QMetaObject::invokeMethod(parent(), "IsInhibited", Q_RETURN_ARG(bool, ret), Q_ARG(uint, flags)); + return ret; +} + +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 &id) +{ + // handle method call org.deepin.dde.SessionManager1.Register + bool result; + QMetaObject::invokeMethod(parent(), "Register", Q_RETURN_ARG(bool, result), Q_ARG(QString, id)); + return result; +} + +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 value) +{ + // handle method call org.deepin.dde.SessionManager1.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, value)); +} + +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"); +} + +void SessionManager1Adaptor::Uninhibit(uint inhibitCookie) +{ + // handle method call org.deepin.dde.SessionManager1.Uninhibit + QMetaObject::invokeMethod(parent(), "Uninhibit", Q_ARG(uint, inhibitCookie)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h new file mode 100644 index 0000000..5323cb4 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h @@ -0,0 +1,155 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.SessionManager1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-session/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/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" +" \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(QDBusObjectPath CurrentSessionPath READ currentSessionPath) + QDBusObjectPath currentSessionPath() const; + + 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(); + QList GetInhibitors(); + uint Inhibit(const QString &appId, uint toplevelXid, const QString &reason, uint flags); + bool IsInhibited(uint flags); + void Logout(); + void PowerOffChoose(); + void Reboot(); + bool Register(const QString &id); + void RequestHibernate(); + void RequestLock(); + void RequestLogout(); + void RequestReboot(); + void RequestShutdown(); + void RequestSuspend(); + void SetLocked(bool value); + void Shutdown(); + void ToggleDebug(); + void Uninhibit(uint inhibitCookie); +Q_SIGNALS: // SIGNALS + void InhibitorAdded(const QDBusObjectPath &path); + void InhibitorRemoved(const QDBusObjectPath &path); + void Unlock(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.cpp new file mode 100644 index 0000000..3a6cee9 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.cpp @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.SoundThemePlayer1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1.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/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SoundThemePlayer1Adaptor + */ + +SoundThemePlayer1Adaptor::SoundThemePlayer1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SoundThemePlayer1Adaptor::~SoundThemePlayer1Adaptor() +{ + // destructor +} + +void SoundThemePlayer1Adaptor::EnableSound(const QString &name, bool enabled) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.EnableSound + QMetaObject::invokeMethod(parent(), "EnableSound", Q_ARG(QString, name), Q_ARG(bool, enabled)); +} + +void SoundThemePlayer1Adaptor::EnableSoundDesktopLogin(bool enabled) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.EnableSoundDesktopLogin + QMetaObject::invokeMethod(parent(), "EnableSoundDesktopLogin", Q_ARG(bool, enabled)); +} + +void SoundThemePlayer1Adaptor::Play(const QString &theme, const QString &event, const QString &device) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.Play + QMetaObject::invokeMethod(parent(), "Play", Q_ARG(QString, theme), Q_ARG(QString, event), Q_ARG(QString, device)); +} + +void SoundThemePlayer1Adaptor::PlaySoundDesktopLogin() +{ + // handle method call org.deepin.dde.SoundThemePlayer1.PlaySoundDesktopLogin + QMetaObject::invokeMethod(parent(), "PlaySoundDesktopLogin"); +} + +void SoundThemePlayer1Adaptor::PrepareShutdownSound(int uid) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.PrepareShutdownSound + QMetaObject::invokeMethod(parent(), "PrepareShutdownSound", Q_ARG(int, uid)); +} + +void SoundThemePlayer1Adaptor::SaveAudioState(const QVariantMap &avtivePlayback) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.SaveAudioState + QMetaObject::invokeMethod(parent(), "SaveAudioState", Q_ARG(QVariantMap, avtivePlayback)); +} + +void SoundThemePlayer1Adaptor::SetSoundTheme(const QString &theme) +{ + // handle method call org.deepin.dde.SoundThemePlayer1.SetSoundTheme + QMetaObject::invokeMethod(parent(), "SetSoundTheme", Q_ARG(QString, theme)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h new file mode 100644 index 0000000..12302f3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor.h @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.deepin.dde.SoundThemePlayer1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1.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_SOUNDTHEMEPLAYER1ADAPTOR_H +#define ORG_DEEPIN_DDE_SOUNDTHEMEPLAYER1ADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundThemePlayer1.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.SoundThemePlayer1 + */ +class SoundThemePlayer1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SoundThemePlayer1") + 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" + "") +public: + SoundThemePlayer1Adaptor(QObject *parent); + virtual ~SoundThemePlayer1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void EnableSound(const QString &name, bool enabled); + void EnableSoundDesktopLogin(bool enabled); + void Play(const QString &theme, const QString &event, const QString &device); + void PlaySoundDesktopLogin(); + void PrepareShutdownSound(int uid); + void SaveAudioState(const QVariantMap &avtivePlayback); + void SetSoundTheme(const QString &theme); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp new file mode 100644 index 0000000..d257b95 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp @@ -0,0 +1,57 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.WMSwitcher1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WMSwitcher1Adaptor + */ + +WMSwitcher1Adaptor::WMSwitcher1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WMSwitcher1Adaptor::~WMSwitcher1Adaptor() +{ + // destructor +} + +bool WMSwitcher1Adaptor::AllowSwitch() +{ + // handle method call org.deepin.dde.WMSwitcher1.AllowSwitch + bool outArg0; + QMetaObject::invokeMethod(parent(), "AllowSwitch", Q_RETURN_ARG(bool, outArg0)); + return outArg0; +} + +QString WMSwitcher1Adaptor::CurrentWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.CurrentWM + QString outArg0; + QMetaObject::invokeMethod(parent(), "CurrentWM", Q_RETURN_ARG(QString, outArg0)); + return outArg0; +} + +void WMSwitcher1Adaptor::RequestSwitchWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.RequestSwitchWM + QMetaObject::invokeMethod(parent(), "RequestSwitchWM"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h new file mode 100644 index 0000000..e218ed8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h @@ -0,0 +1,61 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/adaptor/org.deepin.dde.WMSwitcher1.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_WMSWITCHER1ADAPTOR_H +#define ORG_DEEPIN_DDE_WMSWITCHER1ADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.WMSwitcher1 + */ +class WMSwitcher1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.WMSwitcher1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WMSwitcher1Adaptor(QObject *parent); + virtual ~WMSwitcher1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool AllowSwitch(); + QString CurrentWM(); + void RequestSwitchWM(); +Q_SIGNALS: // SIGNALS + void WMChanged(const QString &wmName); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp new file mode 100644 index 0000000..22c858d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp @@ -0,0 +1,183 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.DBus.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.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/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DBusAdaptor + */ + +DBusAdaptor::DBusAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DBusAdaptor::~DBusAdaptor() +{ + // destructor +} + +QStringList DBusAdaptor::features() const +{ + // get the value of property Features + return qvariant_cast< QStringList >(parent()->property("Features")); +} + +QStringList DBusAdaptor::interfaces() const +{ + // get the value of property Interfaces + return qvariant_cast< QStringList >(parent()->property("Interfaces")); +} + +void DBusAdaptor::AddMatch(const QString &in0) +{ + // handle method call org.freedesktop.DBus.AddMatch + QMetaObject::invokeMethod(parent(), "AddMatch", Q_ARG(QString, in0)); +} + +QByteArray DBusAdaptor::GetAdtAuditSessionData(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetAdtAuditSessionData + QByteArray out0; + QMetaObject::invokeMethod(parent(), "GetAdtAuditSessionData", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, in0)); + return out0; +} + +QByteArray DBusAdaptor::GetConnectionSELinuxSecurityContext(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetConnectionSELinuxSecurityContext + QByteArray out0; + QMetaObject::invokeMethod(parent(), "GetConnectionSELinuxSecurityContext", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, in0)); + return out0; +} + +uint DBusAdaptor::GetConnectionUnixProcessID(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetConnectionUnixProcessID + uint out0; + QMetaObject::invokeMethod(parent(), "GetConnectionUnixProcessID", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0)); + return out0; +} + +uint DBusAdaptor::GetConnectionUnixUser(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetConnectionUnixUser + uint out0; + QMetaObject::invokeMethod(parent(), "GetConnectionUnixUser", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0)); + return out0; +} + +QString DBusAdaptor::GetId() +{ + // handle method call org.freedesktop.DBus.GetId + QString out0; + QMetaObject::invokeMethod(parent(), "GetId", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString DBusAdaptor::GetNameOwner(const QString &in0) +{ + // handle method call org.freedesktop.DBus.GetNameOwner + QString out0; + QMetaObject::invokeMethod(parent(), "GetNameOwner", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString DBusAdaptor::Hello() +{ + // handle method call org.freedesktop.DBus.Hello + QString out0; + QMetaObject::invokeMethod(parent(), "Hello", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QStringList DBusAdaptor::ListActivatableNames() +{ + // handle method call org.freedesktop.DBus.ListActivatableNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListActivatableNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList DBusAdaptor::ListNames() +{ + // handle method call org.freedesktop.DBus.ListNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList DBusAdaptor::ListQueuedOwners(const QString &in0) +{ + // handle method call org.freedesktop.DBus.ListQueuedOwners + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListQueuedOwners", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, in0)); + return out0; +} + +bool DBusAdaptor::NameHasOwner(const QString &in0) +{ + // handle method call org.freedesktop.DBus.NameHasOwner + bool out0; + QMetaObject::invokeMethod(parent(), "NameHasOwner", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +uint DBusAdaptor::ReleaseName(const QString &in0) +{ + // handle method call org.freedesktop.DBus.ReleaseName + uint out0; + QMetaObject::invokeMethod(parent(), "ReleaseName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0)); + return out0; +} + +void DBusAdaptor::ReloadConfig() +{ + // handle method call org.freedesktop.DBus.ReloadConfig + QMetaObject::invokeMethod(parent(), "ReloadConfig"); +} + +void DBusAdaptor::RemoveMatch(const QString &in0) +{ + // handle method call org.freedesktop.DBus.RemoveMatch + QMetaObject::invokeMethod(parent(), "RemoveMatch", Q_ARG(QString, in0)); +} + +uint DBusAdaptor::RequestName(const QString &in0, uint in1) +{ + // handle method call org.freedesktop.DBus.RequestName + uint out0; + QMetaObject::invokeMethod(parent(), "RequestName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +uint DBusAdaptor::StartServiceByName(const QString &in0, uint in1) +{ + // handle method call org.freedesktop.DBus.StartServiceByName + uint out0; + QMetaObject::invokeMethod(parent(), "StartServiceByName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +void DBusAdaptor::UpdateActivationEnvironment(EnvInfoList in0) +{ + // handle method call org.freedesktop.DBus.UpdateActivationEnvironment + QMetaObject::invokeMethod(parent(), "UpdateActivationEnvironment", Q_ARG(EnvInfoList, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h new file mode 100644 index 0000000..e88a3a2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h @@ -0,0 +1,156 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.DBus.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_FREEDESKTOP_DBUSADAPTOR_H +#define ORG_FREEDESKTOP_DBUSADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.freedesktop.DBus + */ +class DBusAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.DBus") + 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" + "") +public: + DBusAdaptor(QObject *parent); + virtual ~DBusAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QStringList Features READ features) + QStringList features() const; + + Q_PROPERTY(QStringList Interfaces READ interfaces) + QStringList interfaces() const; + +public Q_SLOTS: // METHODS + void AddMatch(const QString &in0); + QByteArray GetAdtAuditSessionData(const QString &in0); + QByteArray GetConnectionSELinuxSecurityContext(const QString &in0); + uint GetConnectionUnixProcessID(const QString &in0); + uint GetConnectionUnixUser(const QString &in0); + QString GetId(); + QString GetNameOwner(const QString &in0); + QString Hello(); + QStringList ListActivatableNames(); + QStringList ListNames(); + QStringList ListQueuedOwners(const QString &in0); + bool NameHasOwner(const QString &in0); + uint ReleaseName(const QString &in0); + void ReloadConfig(); + void RemoveMatch(const QString &in0); + uint RequestName(const QString &in0, uint in1); + uint StartServiceByName(const QString &in0, uint in1); + void UpdateActivationEnvironment(EnvInfoList in0); +Q_SIGNALS: // SIGNALS + void NameAcquired(const QString &in0); + void NameLost(const QString &in0); + void NameOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor.cpp new file mode 100644 index 0000000..977aed4 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor.cpp @@ -0,0 +1,475 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.login1.Manager.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.Manager.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/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ManagerAdaptor + */ + +ManagerAdaptor::ManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ManagerAdaptor::~ManagerAdaptor() +{ + // destructor +} + +QString ManagerAdaptor::blockInhibited() const +{ + // get the value of property BlockInhibited + return qvariant_cast< QString >(parent()->property("BlockInhibited")); +} + +QString ManagerAdaptor::delayInhibited() const +{ + // get the value of property DelayInhibited + return qvariant_cast< QString >(parent()->property("DelayInhibited")); +} + +bool ManagerAdaptor::docked() const +{ + // get the value of property Docked + return qvariant_cast< bool >(parent()->property("Docked")); +} + +bool ManagerAdaptor::enableWallMessages() const +{ + // get the value of property EnableWallMessages + return qvariant_cast< bool >(parent()->property("EnableWallMessages")); +} + +void ManagerAdaptor::setEnableWallMessages(bool value) +{ + // set the value of property EnableWallMessages + parent()->setProperty("EnableWallMessages", QVariant::fromValue(value)); +} + +QString ManagerAdaptor::handleHibernateKey() const +{ + // get the value of property HandleHibernateKey + return qvariant_cast< QString >(parent()->property("HandleHibernateKey")); +} + +QString ManagerAdaptor::handleLidSwitch() const +{ + // get the value of property HandleLidSwitch + return qvariant_cast< QString >(parent()->property("HandleLidSwitch")); +} + +QString ManagerAdaptor::handleLidSwitchDocked() const +{ + // get the value of property HandleLidSwitchDocked + return qvariant_cast< QString >(parent()->property("HandleLidSwitchDocked")); +} + +QString ManagerAdaptor::handlePowerKey() const +{ + // get the value of property HandlePowerKey + return qvariant_cast< QString >(parent()->property("HandlePowerKey")); +} + +QString ManagerAdaptor::handleSuspendKey() const +{ + // get the value of property HandleSuspendKey + return qvariant_cast< QString >(parent()->property("HandleSuspendKey")); +} + +qulonglong ManagerAdaptor::holdoffTimeoutUSec() const +{ + // get the value of property HoldoffTimeoutUSec + return qvariant_cast< qulonglong >(parent()->property("HoldoffTimeoutUSec")); +} + +QString ManagerAdaptor::idleAction() const +{ + // get the value of property IdleAction + return qvariant_cast< QString >(parent()->property("IdleAction")); +} + +qulonglong ManagerAdaptor::idleActionUSec() const +{ + // get the value of property IdleActionUSec + return qvariant_cast< qulonglong >(parent()->property("IdleActionUSec")); +} + +bool ManagerAdaptor::idleHint() const +{ + // get the value of property IdleHint + return qvariant_cast< bool >(parent()->property("IdleHint")); +} + +qulonglong ManagerAdaptor::idleSinceHint() const +{ + // get the value of property IdleSinceHint + return qvariant_cast< qulonglong >(parent()->property("IdleSinceHint")); +} + +qulonglong ManagerAdaptor::idleSinceHintMonotonic() const +{ + // get the value of property IdleSinceHintMonotonic + return qvariant_cast< qulonglong >(parent()->property("IdleSinceHintMonotonic")); +} + +qulonglong ManagerAdaptor::inhibitDelayMaxUSec() const +{ + // get the value of property InhibitDelayMaxUSec + return qvariant_cast< qulonglong >(parent()->property("InhibitDelayMaxUSec")); +} + +qulonglong ManagerAdaptor::inhibitorsMax() const +{ + // get the value of property InhibitorsMax + return qvariant_cast< qulonglong >(parent()->property("InhibitorsMax")); +} + +QStringList ManagerAdaptor::killExcludeUsers() const +{ + // get the value of property KillExcludeUsers + return qvariant_cast< QStringList >(parent()->property("KillExcludeUsers")); +} + +QStringList ManagerAdaptor::killOnlyUsers() const +{ + // get the value of property KillOnlyUsers + return qvariant_cast< QStringList >(parent()->property("KillOnlyUsers")); +} + +bool ManagerAdaptor::killUserProcesses() const +{ + // get the value of property KillUserProcesses + return qvariant_cast< bool >(parent()->property("KillUserProcesses")); +} + +uint ManagerAdaptor::nAutoVTs() const +{ + // get the value of property NAutoVTs + return qvariant_cast< uint >(parent()->property("NAutoVTs")); +} + +qulonglong ManagerAdaptor::nCurrentInhibitors() const +{ + // get the value of property NCurrentInhibitors + return qvariant_cast< qulonglong >(parent()->property("NCurrentInhibitors")); +} + +qulonglong ManagerAdaptor::nCurrentSessions() const +{ + // get the value of property NCurrentSessions + return qvariant_cast< qulonglong >(parent()->property("NCurrentSessions")); +} + +bool ManagerAdaptor::preparingForShutdown() const +{ + // get the value of property PreparingForShutdown + return qvariant_cast< bool >(parent()->property("PreparingForShutdown")); +} + +bool ManagerAdaptor::preparingForSleep() const +{ + // get the value of property PreparingForSleep + return qvariant_cast< bool >(parent()->property("PreparingForSleep")); +} + +bool ManagerAdaptor::rebootToFirmwareSetup() const +{ + // get the value of property RebootToFirmwareSetup + return qvariant_cast< bool >(parent()->property("RebootToFirmwareSetup")); +} + +bool ManagerAdaptor::removeIPC() const +{ + // get the value of property RemoveIPC + return qvariant_cast< bool >(parent()->property("RemoveIPC")); +} + +qulonglong ManagerAdaptor::runtimeDirectorySize() const +{ + // get the value of property RuntimeDirectorySize + return qvariant_cast< qulonglong >(parent()->property("RuntimeDirectorySize")); +} + +qulonglong ManagerAdaptor::sessionsMax() const +{ + // get the value of property SessionsMax + return qvariant_cast< qulonglong >(parent()->property("SessionsMax")); +} + +qulonglong ManagerAdaptor::userTasksMax() const +{ + // get the value of property UserTasksMax + return qvariant_cast< qulonglong >(parent()->property("UserTasksMax")); +} + +QString ManagerAdaptor::wallMessage() const +{ + // get the value of property WallMessage + return qvariant_cast< QString >(parent()->property("WallMessage")); +} + +void ManagerAdaptor::setWallMessage(const QString &value) +{ + // set the value of property WallMessage + parent()->setProperty("WallMessage", QVariant::fromValue(value)); +} + +void ManagerAdaptor::ActivateSession(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.ActivateSession + QMetaObject::invokeMethod(parent(), "ActivateSession", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::ActivateSessionOnSeat(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.login1.Manager.ActivateSessionOnSeat + QMetaObject::invokeMethod(parent(), "ActivateSessionOnSeat", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void ManagerAdaptor::AttachDevice(const QString &in0, const QString &in1, bool in2) +{ + // handle method call org.freedesktop.login1.Manager.AttachDevice + QMetaObject::invokeMethod(parent(), "AttachDevice", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(bool, in2)); +} + +QString ManagerAdaptor::CanHibernate() +{ + // handle method call org.freedesktop.login1.Manager.CanHibernate + QString out0; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString ManagerAdaptor::CanHybridSleep() +{ + // handle method call org.freedesktop.login1.Manager.CanHybridSleep + QString out0; + QMetaObject::invokeMethod(parent(), "CanHybridSleep", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString ManagerAdaptor::CanPowerOff() +{ + // handle method call org.freedesktop.login1.Manager.CanPowerOff + QString out0; + QMetaObject::invokeMethod(parent(), "CanPowerOff", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString ManagerAdaptor::CanReboot() +{ + // handle method call org.freedesktop.login1.Manager.CanReboot + QString out0; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString ManagerAdaptor::CanRebootToFirmwareSetup() +{ + // handle method call org.freedesktop.login1.Manager.CanRebootToFirmwareSetup + QString out0; + QMetaObject::invokeMethod(parent(), "CanRebootToFirmwareSetup", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString ManagerAdaptor::CanSuspend() +{ + // handle method call org.freedesktop.login1.Manager.CanSuspend + QString out0; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool ManagerAdaptor::CancelScheduledShutdown() +{ + // handle method call org.freedesktop.login1.Manager.CancelScheduledShutdown + bool out0; + QMetaObject::invokeMethod(parent(), "CancelScheduledShutdown", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void ManagerAdaptor::FlushDevices(bool in0) +{ + // handle method call org.freedesktop.login1.Manager.FlushDevices + QMetaObject::invokeMethod(parent(), "FlushDevices", Q_ARG(bool, in0)); +} + +QDBusObjectPath ManagerAdaptor::GetSeat(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.GetSeat + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetSeat", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetSession(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.GetSession + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetSession", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetSessionByPID(uint in0) +{ + // handle method call org.freedesktop.login1.Manager.GetSessionByPID + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetSessionByPID", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(uint, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetUser(uint in0) +{ + // handle method call org.freedesktop.login1.Manager.GetUser + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetUser", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(uint, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetUserByPID(uint in0) +{ + // handle method call org.freedesktop.login1.Manager.GetUserByPID + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetUserByPID", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(uint, in0)); + return out0; +} + +void ManagerAdaptor::Hibernate(bool in0) +{ + // handle method call org.freedesktop.login1.Manager.Hibernate + QMetaObject::invokeMethod(parent(), "Hibernate", Q_ARG(bool, in0)); +} + +void ManagerAdaptor::HybridSleep(bool in0) +{ + // handle method call org.freedesktop.login1.Manager.HybridSleep + QMetaObject::invokeMethod(parent(), "HybridSleep", Q_ARG(bool, in0)); +} + +QDBusUnixFileDescriptor ManagerAdaptor::Inhibit(const QString &in0, const QString &in1, const QString &in2, const QString &in3) +{ + // handle method call org.freedesktop.login1.Manager.Inhibit + QDBusUnixFileDescriptor out0; + QMetaObject::invokeMethod(parent(), "Inhibit", Q_RETURN_ARG(QDBusUnixFileDescriptor, out0), Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2), Q_ARG(QString, in3)); + return out0; +} + +void ManagerAdaptor::KillSession(const QString &in0, const QString &in1, int in2) +{ + // handle method call org.freedesktop.login1.Manager.KillSession + QMetaObject::invokeMethod(parent(), "KillSession", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); +} + +void ManagerAdaptor::KillUser(uint in0, int in1) +{ + // handle method call org.freedesktop.login1.Manager.KillUser + QMetaObject::invokeMethod(parent(), "KillUser", Q_ARG(uint, in0), Q_ARG(int, in1)); +} + +void ManagerAdaptor::LockSession(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.LockSession + QMetaObject::invokeMethod(parent(), "LockSession", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::LockSessions() +{ + // handle method call org.freedesktop.login1.Manager.LockSessions + QMetaObject::invokeMethod(parent(), "LockSessions"); +} + +void ManagerAdaptor::PowerOff(bool in0) +{ + // handle method call org.freedesktop.login1.Manager.PowerOff + QMetaObject::invokeMethod(parent(), "PowerOff", Q_ARG(bool, in0)); +} + +void ManagerAdaptor::Reboot(bool in0) +{ + // handle method call org.freedesktop.login1.Manager.Reboot + QMetaObject::invokeMethod(parent(), "Reboot", Q_ARG(bool, in0)); +} + +void ManagerAdaptor::ReleaseSession(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.ReleaseSession + QMetaObject::invokeMethod(parent(), "ReleaseSession", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::ScheduleShutdown(const QString &in0, qulonglong in1) +{ + // handle method call org.freedesktop.login1.Manager.ScheduleShutdown + QMetaObject::invokeMethod(parent(), "ScheduleShutdown", Q_ARG(QString, in0), Q_ARG(qulonglong, in1)); +} + +void ManagerAdaptor::SetRebootToFirmwareSetup(bool in0) +{ + // handle method call org.freedesktop.login1.Manager.SetRebootToFirmwareSetup + QMetaObject::invokeMethod(parent(), "SetRebootToFirmwareSetup", Q_ARG(bool, in0)); +} + +void ManagerAdaptor::SetUserLinger(uint in0, bool in1, bool in2) +{ + // handle method call org.freedesktop.login1.Manager.SetUserLinger + QMetaObject::invokeMethod(parent(), "SetUserLinger", Q_ARG(uint, in0), Q_ARG(bool, in1), Q_ARG(bool, in2)); +} + +void ManagerAdaptor::SetWallMessage(const QString &in0, bool in1) +{ + // handle method call org.freedesktop.login1.Manager.SetWallMessage + QMetaObject::invokeMethod(parent(), "SetWallMessage", Q_ARG(QString, in0), Q_ARG(bool, in1)); +} + +void ManagerAdaptor::Suspend(bool in0) +{ + // handle method call org.freedesktop.login1.Manager.Suspend + QMetaObject::invokeMethod(parent(), "Suspend", Q_ARG(bool, in0)); +} + +void ManagerAdaptor::TerminateSeat(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.TerminateSeat + QMetaObject::invokeMethod(parent(), "TerminateSeat", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::TerminateSession(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.TerminateSession + QMetaObject::invokeMethod(parent(), "TerminateSession", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::TerminateUser(uint in0) +{ + // handle method call org.freedesktop.login1.Manager.TerminateUser + QMetaObject::invokeMethod(parent(), "TerminateUser", Q_ARG(uint, in0)); +} + +void ManagerAdaptor::UnlockSession(const QString &in0) +{ + // handle method call org.freedesktop.login1.Manager.UnlockSession + QMetaObject::invokeMethod(parent(), "UnlockSession", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::UnlockSessions() +{ + // handle method call org.freedesktop.login1.Manager.UnlockSessions + QMetaObject::invokeMethod(parent(), "UnlockSessions"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor.h new file mode 100644 index 0000000..5893c3b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor.h @@ -0,0 +1,425 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.login1.Manager.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.ManagerAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.Manager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_FREEDESKTOP_LOGIN1_MANAGERADAPTOR_H +#define ORG_FREEDESKTOP_LOGIN1_MANAGERADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.Manager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.freedesktop.login1.Manager + */ +class ManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.login1.Manager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \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: + ManagerAdaptor(QObject *parent); + virtual ~ManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString BlockInhibited READ blockInhibited) + QString blockInhibited() const; + + Q_PROPERTY(QString DelayInhibited READ delayInhibited) + QString delayInhibited() const; + + Q_PROPERTY(bool Docked READ docked) + bool docked() const; + + Q_PROPERTY(bool EnableWallMessages READ enableWallMessages WRITE setEnableWallMessages) + bool enableWallMessages() const; + void setEnableWallMessages(bool value); + + Q_PROPERTY(QString HandleHibernateKey READ handleHibernateKey) + QString handleHibernateKey() const; + + Q_PROPERTY(QString HandleLidSwitch READ handleLidSwitch) + QString handleLidSwitch() const; + + Q_PROPERTY(QString HandleLidSwitchDocked READ handleLidSwitchDocked) + QString handleLidSwitchDocked() const; + + Q_PROPERTY(QString HandlePowerKey READ handlePowerKey) + QString handlePowerKey() const; + + Q_PROPERTY(QString HandleSuspendKey READ handleSuspendKey) + QString handleSuspendKey() const; + + Q_PROPERTY(qulonglong HoldoffTimeoutUSec READ holdoffTimeoutUSec) + qulonglong holdoffTimeoutUSec() const; + + Q_PROPERTY(QString IdleAction READ idleAction) + QString idleAction() const; + + Q_PROPERTY(qulonglong IdleActionUSec READ idleActionUSec) + qulonglong idleActionUSec() const; + + Q_PROPERTY(bool IdleHint READ idleHint) + bool idleHint() const; + + Q_PROPERTY(qulonglong IdleSinceHint READ idleSinceHint) + qulonglong idleSinceHint() const; + + Q_PROPERTY(qulonglong IdleSinceHintMonotonic READ idleSinceHintMonotonic) + qulonglong idleSinceHintMonotonic() const; + + Q_PROPERTY(qulonglong InhibitDelayMaxUSec READ inhibitDelayMaxUSec) + qulonglong inhibitDelayMaxUSec() const; + + Q_PROPERTY(qulonglong InhibitorsMax READ inhibitorsMax) + qulonglong inhibitorsMax() const; + + Q_PROPERTY(QStringList KillExcludeUsers READ killExcludeUsers) + QStringList killExcludeUsers() const; + + Q_PROPERTY(QStringList KillOnlyUsers READ killOnlyUsers) + QStringList killOnlyUsers() const; + + Q_PROPERTY(bool KillUserProcesses READ killUserProcesses) + bool killUserProcesses() const; + + Q_PROPERTY(uint NAutoVTs READ nAutoVTs) + uint nAutoVTs() const; + + Q_PROPERTY(qulonglong NCurrentInhibitors READ nCurrentInhibitors) + qulonglong nCurrentInhibitors() const; + + Q_PROPERTY(qulonglong NCurrentSessions READ nCurrentSessions) + qulonglong nCurrentSessions() const; + + Q_PROPERTY(bool PreparingForShutdown READ preparingForShutdown) + bool preparingForShutdown() const; + + Q_PROPERTY(bool PreparingForSleep READ preparingForSleep) + bool preparingForSleep() const; + + Q_PROPERTY(bool RebootToFirmwareSetup READ rebootToFirmwareSetup) + bool rebootToFirmwareSetup() const; + + Q_PROPERTY(bool RemoveIPC READ removeIPC) + bool removeIPC() const; + + Q_PROPERTY(qulonglong RuntimeDirectorySize READ runtimeDirectorySize) + qulonglong runtimeDirectorySize() const; + + Q_PROPERTY(qulonglong SessionsMax READ sessionsMax) + qulonglong sessionsMax() const; + + Q_PROPERTY(qulonglong UserTasksMax READ userTasksMax) + qulonglong userTasksMax() const; + + Q_PROPERTY(QString WallMessage READ wallMessage WRITE setWallMessage) + QString wallMessage() const; + void setWallMessage(const QString &value); + +public Q_SLOTS: // METHODS + void ActivateSession(const QString &in0); + void ActivateSessionOnSeat(const QString &in0, const QString &in1); + void AttachDevice(const QString &in0, const QString &in1, bool in2); + QString CanHibernate(); + QString CanHybridSleep(); + QString CanPowerOff(); + QString CanReboot(); + QString CanRebootToFirmwareSetup(); + QString CanSuspend(); + bool CancelScheduledShutdown(); + void FlushDevices(bool in0); + QDBusObjectPath GetSeat(const QString &in0); + QDBusObjectPath GetSession(const QString &in0); + QDBusObjectPath GetSessionByPID(uint in0); + QDBusObjectPath GetUser(uint in0); + QDBusObjectPath GetUserByPID(uint in0); + void Hibernate(bool in0); + void HybridSleep(bool in0); + QDBusUnixFileDescriptor Inhibit(const QString &in0, const QString &in1, const QString &in2, const QString &in3); + void KillSession(const QString &in0, const QString &in1, int in2); + void KillUser(uint in0, int in1); + void LockSession(const QString &in0); + void LockSessions(); + void PowerOff(bool in0); + void Reboot(bool in0); + void ReleaseSession(const QString &in0); + void ScheduleShutdown(const QString &in0, qulonglong in1); + void SetRebootToFirmwareSetup(bool in0); + void SetUserLinger(uint in0, bool in1, bool in2); + void SetWallMessage(const QString &in0, bool in1); + void Suspend(bool in0); + void TerminateSeat(const QString &in0); + void TerminateSession(const QString &in0); + void TerminateUser(uint in0); + void UnlockSession(const QString &in0); + void UnlockSessions(); +Q_SIGNALS: // SIGNALS + void PrepareForShutdown(bool in0); + void PrepareForSleep(bool in0); + void SeatNew(const QString &in0, const QDBusObjectPath &in1); + void SeatRemoved(const QString &in0, const QDBusObjectPath &in1); + void SessionNew(const QString &in0, const QDBusObjectPath &in1); + void SessionRemoved(const QString &in0, const QDBusObjectPath &in1); + void UserNew(uint in0, const QDBusObjectPath &in1); + void UserRemoved(uint in0, const QDBusObjectPath &in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor.cpp new file mode 100644 index 0000000..17941e3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor.cpp @@ -0,0 +1,239 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.login1.Session.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.Session.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/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SessionAdaptor + */ + +SessionAdaptor::SessionAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SessionAdaptor::~SessionAdaptor() +{ + // destructor +} + +bool SessionAdaptor::active() const +{ + // get the value of property Active + return qvariant_cast< bool >(parent()->property("Active")); +} + +uint SessionAdaptor::audit() const +{ + // get the value of property Audit + return qvariant_cast< uint >(parent()->property("Audit")); +} + +QString SessionAdaptor::desktop() const +{ + // get the value of property Desktop + return qvariant_cast< QString >(parent()->property("Desktop")); +} + +QString SessionAdaptor::display() const +{ + // get the value of property Display + return qvariant_cast< QString >(parent()->property("Display")); +} + +QString SessionAdaptor::id() const +{ + // get the value of property Id + return qvariant_cast< QString >(parent()->property("Id")); +} + +bool SessionAdaptor::idleHint() const +{ + // get the value of property IdleHint + return qvariant_cast< bool >(parent()->property("IdleHint")); +} + +qulonglong SessionAdaptor::idleSinceHint() const +{ + // get the value of property IdleSinceHint + return qvariant_cast< qulonglong >(parent()->property("IdleSinceHint")); +} + +qulonglong SessionAdaptor::idleSinceHintMonotonic() const +{ + // get the value of property IdleSinceHintMonotonic + return qvariant_cast< qulonglong >(parent()->property("IdleSinceHintMonotonic")); +} + +uint SessionAdaptor::leader() const +{ + // get the value of property Leader + return qvariant_cast< uint >(parent()->property("Leader")); +} + +bool SessionAdaptor::lockedHint() const +{ + // get the value of property LockedHint + return qvariant_cast< bool >(parent()->property("LockedHint")); +} + +QString SessionAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +bool SessionAdaptor::remote() const +{ + // get the value of property Remote + return qvariant_cast< bool >(parent()->property("Remote")); +} + +QString SessionAdaptor::remoteHost() const +{ + // get the value of property RemoteHost + return qvariant_cast< QString >(parent()->property("RemoteHost")); +} + +QString SessionAdaptor::remoteUser() const +{ + // get the value of property RemoteUser + return qvariant_cast< QString >(parent()->property("RemoteUser")); +} + +QString SessionAdaptor::scope() const +{ + // get the value of property Scope + return qvariant_cast< QString >(parent()->property("Scope")); +} + +QString SessionAdaptor::service() const +{ + // get the value of property Service + return qvariant_cast< QString >(parent()->property("Service")); +} + +QString SessionAdaptor::state() const +{ + // get the value of property State + return qvariant_cast< QString >(parent()->property("State")); +} + +QString SessionAdaptor::tTY() const +{ + // get the value of property TTY + return qvariant_cast< QString >(parent()->property("TTY")); +} + +qulonglong SessionAdaptor::timestamp() const +{ + // get the value of property Timestamp + return qvariant_cast< qulonglong >(parent()->property("Timestamp")); +} + +qulonglong SessionAdaptor::timestampMonotonic() const +{ + // get the value of property TimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("TimestampMonotonic")); +} + +QString SessionAdaptor::type() const +{ + // get the value of property Type + return qvariant_cast< QString >(parent()->property("Type")); +} + +uint SessionAdaptor::vTNr() const +{ + // get the value of property VTNr + return qvariant_cast< uint >(parent()->property("VTNr")); +} + +void SessionAdaptor::Activate() +{ + // handle method call org.freedesktop.login1.Session.Activate + QMetaObject::invokeMethod(parent(), "Activate"); +} + +void SessionAdaptor::Kill(const QString &in0, int in1) +{ + // handle method call org.freedesktop.login1.Session.Kill + QMetaObject::invokeMethod(parent(), "Kill", Q_ARG(QString, in0), Q_ARG(int, in1)); +} + +void SessionAdaptor::Lock() +{ + // handle method call org.freedesktop.login1.Session.Lock + QMetaObject::invokeMethod(parent(), "Lock"); +} + +void SessionAdaptor::PauseDeviceComplete(uint in0, uint in1) +{ + // handle method call org.freedesktop.login1.Session.PauseDeviceComplete + QMetaObject::invokeMethod(parent(), "PauseDeviceComplete", Q_ARG(uint, in0), Q_ARG(uint, in1)); +} + +void SessionAdaptor::ReleaseControl() +{ + // handle method call org.freedesktop.login1.Session.ReleaseControl + QMetaObject::invokeMethod(parent(), "ReleaseControl"); +} + +void SessionAdaptor::ReleaseDevice(uint in0, uint in1) +{ + // handle method call org.freedesktop.login1.Session.ReleaseDevice + QMetaObject::invokeMethod(parent(), "ReleaseDevice", Q_ARG(uint, in0), Q_ARG(uint, in1)); +} + +void SessionAdaptor::SetIdleHint(bool in0) +{ + // handle method call org.freedesktop.login1.Session.SetIdleHint + QMetaObject::invokeMethod(parent(), "SetIdleHint", Q_ARG(bool, in0)); +} + +void SessionAdaptor::SetLockedHint(bool in0) +{ + // handle method call org.freedesktop.login1.Session.SetLockedHint + QMetaObject::invokeMethod(parent(), "SetLockedHint", Q_ARG(bool, in0)); +} + +void SessionAdaptor::TakeControl(bool in0) +{ + // handle method call org.freedesktop.login1.Session.TakeControl + QMetaObject::invokeMethod(parent(), "TakeControl", Q_ARG(bool, in0)); +} + +QDBusUnixFileDescriptor SessionAdaptor::TakeDevice(uint in0, uint in1, bool &out1) +{ + // handle method call org.freedesktop.login1.Session.TakeDevice + //return static_cast(parent())->TakeDevice(in0, in1, out1); +} + +void SessionAdaptor::Terminate() +{ + // handle method call org.freedesktop.login1.Session.Terminate + QMetaObject::invokeMethod(parent(), "Terminate"); +} + +void SessionAdaptor::Unlock() +{ + // handle method call org.freedesktop.login1.Session.Unlock + QMetaObject::invokeMethod(parent(), "Unlock"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor.h new file mode 100644 index 0000000..2d5575e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor.h @@ -0,0 +1,225 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.login1.Session.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.SessionAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.Session.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_FREEDESKTOP_LOGIN1_SESSIONADAPTOR_H +#define ORG_FREEDESKTOP_LOGIN1_SESSIONADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.Session.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.freedesktop.login1.Session + */ +class SessionAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.login1.Session") + 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: + SessionAdaptor(QObject *parent); + virtual ~SessionAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Active READ active) + bool active() const; + + Q_PROPERTY(uint Audit READ audit) + uint audit() const; + + Q_PROPERTY(QString Desktop READ desktop) + QString desktop() const; + + Q_PROPERTY(QString Display READ display) + QString display() const; + + Q_PROPERTY(QString Id READ id) + QString id() const; + + Q_PROPERTY(bool IdleHint READ idleHint) + bool idleHint() const; + + Q_PROPERTY(qulonglong IdleSinceHint READ idleSinceHint) + qulonglong idleSinceHint() const; + + Q_PROPERTY(qulonglong IdleSinceHintMonotonic READ idleSinceHintMonotonic) + qulonglong idleSinceHintMonotonic() const; + + Q_PROPERTY(uint Leader READ leader) + uint leader() const; + + Q_PROPERTY(bool LockedHint READ lockedHint) + bool lockedHint() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(bool Remote READ remote) + bool remote() const; + + Q_PROPERTY(QString RemoteHost READ remoteHost) + QString remoteHost() const; + + Q_PROPERTY(QString RemoteUser READ remoteUser) + QString remoteUser() const; + + Q_PROPERTY(QString Scope READ scope) + QString scope() const; + + Q_PROPERTY(QString Service READ service) + QString service() const; + + Q_PROPERTY(QString State READ state) + QString state() const; + + Q_PROPERTY(QString TTY READ tTY) + QString tTY() const; + + Q_PROPERTY(qulonglong Timestamp READ timestamp) + qulonglong timestamp() const; + + Q_PROPERTY(qulonglong TimestampMonotonic READ timestampMonotonic) + qulonglong timestampMonotonic() const; + + Q_PROPERTY(QString Type READ type) + QString type() const; + + Q_PROPERTY(uint VTNr READ vTNr) + uint vTNr() const; + +public Q_SLOTS: // METHODS + void Activate(); + void Kill(const QString &in0, int in1); + void Lock(); + void PauseDeviceComplete(uint in0, uint in1); + void ReleaseControl(); + void ReleaseDevice(uint in0, uint in1); + void SetIdleHint(bool in0); + void SetLockedHint(bool in0); + void TakeControl(bool in0); + QDBusUnixFileDescriptor TakeDevice(uint in0, uint in1, bool &out1); + void Terminate(); + void Unlock(); +Q_SIGNALS: // SIGNALS + void PauseDevice(uint in0, uint in1, const QString &in2); + void ResumeDevice(uint in0, uint in1, const QDBusUnixFileDescriptor &in2); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor.cpp new file mode 100644 index 0000000..705d020 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor.cpp @@ -0,0 +1,137 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.login1.User.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.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/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.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 +} + +SessionPath UserAdaptor::display() const +{ + // get the value of property Display + return qvariant_cast< SessionPath >(parent()->property("Display")); +} + +uint UserAdaptor::gID() const +{ + // get the value of property GID + return qvariant_cast< uint >(parent()->property("GID")); +} + +bool UserAdaptor::idleHint() const +{ + // get the value of property IdleHint + return qvariant_cast< bool >(parent()->property("IdleHint")); +} + +qulonglong UserAdaptor::idleSinceHint() const +{ + // get the value of property IdleSinceHint + return qvariant_cast< qulonglong >(parent()->property("IdleSinceHint")); +} + +qulonglong UserAdaptor::idleSinceHintMonotonic() const +{ + // get the value of property IdleSinceHintMonotonic + return qvariant_cast< qulonglong >(parent()->property("IdleSinceHintMonotonic")); +} + +bool UserAdaptor::linger() const +{ + // get the value of property Linger + return qvariant_cast< bool >(parent()->property("Linger")); +} + +QString UserAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +QString UserAdaptor::runtimePath() const +{ + // get the value of property RuntimePath + return qvariant_cast< QString >(parent()->property("RuntimePath")); +} + +QString UserAdaptor::service() const +{ + // get the value of property Service + return qvariant_cast< QString >(parent()->property("Service")); +} + +SessionPathList UserAdaptor::sessions() const +{ + // get the value of property Sessions + return qvariant_cast< SessionPathList >(parent()->property("Sessions")); +} + +QString UserAdaptor::slice() const +{ + // get the value of property Slice + return qvariant_cast< QString >(parent()->property("Slice")); +} + +QString UserAdaptor::state() const +{ + // get the value of property State + return qvariant_cast< QString >(parent()->property("State")); +} + +qulonglong UserAdaptor::timestamp() const +{ + // get the value of property Timestamp + return qvariant_cast< qulonglong >(parent()->property("Timestamp")); +} + +qulonglong UserAdaptor::timestampMonotonic() const +{ + // get the value of property TimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("TimestampMonotonic")); +} + +uint UserAdaptor::uID() const +{ + // get the value of property UID + return qvariant_cast< uint >(parent()->property("UID")); +} + +void UserAdaptor::Kill(int in0) +{ + // handle method call org.freedesktop.login1.User.Kill + QMetaObject::invokeMethod(parent(), "Kill", Q_ARG(int, in0)); +} + +void UserAdaptor::Terminate() +{ + // handle method call org.freedesktop.login1.User.Terminate + QMetaObject::invokeMethod(parent(), "Terminate"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor.h new file mode 100644 index 0000000..7c2fcc7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor.h @@ -0,0 +1,137 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.login1.User.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.UserAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.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_FREEDESKTOP_LOGIN1_USERADAPTOR_H +#define ORG_FREEDESKTOP_LOGIN1_USERADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.login1.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.freedesktop.login1.User + */ +class UserAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.login1.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" + "") +public: + UserAdaptor(QObject *parent); + virtual ~UserAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(SessionPath Display READ display) + SessionPath display() const; + + Q_PROPERTY(uint GID READ gID) + uint gID() const; + + Q_PROPERTY(bool IdleHint READ idleHint) + bool idleHint() const; + + Q_PROPERTY(qulonglong IdleSinceHint READ idleSinceHint) + qulonglong idleSinceHint() const; + + Q_PROPERTY(qulonglong IdleSinceHintMonotonic READ idleSinceHintMonotonic) + qulonglong idleSinceHintMonotonic() const; + + Q_PROPERTY(bool Linger READ linger) + bool linger() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(QString RuntimePath READ runtimePath) + QString runtimePath() const; + + Q_PROPERTY(QString Service READ service) + QString service() const; + + Q_PROPERTY(SessionPathList Sessions READ sessions) + SessionPathList sessions() const; + + Q_PROPERTY(QString Slice READ slice) + QString slice() const; + + Q_PROPERTY(QString State READ state) + QString state() const; + + Q_PROPERTY(qulonglong Timestamp READ timestamp) + qulonglong timestamp() const; + + Q_PROPERTY(qulonglong TimestampMonotonic READ timestampMonotonic) + qulonglong timestampMonotonic() const; + + Q_PROPERTY(uint UID READ uID) + uint uID() const; + +public Q_SLOTS: // METHODS + void Kill(int in0); + void Terminate(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor.cpp new file mode 100644 index 0000000..17fdfa5 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.systemd1.Job.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.Job.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/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class JobAdaptor + */ + +JobAdaptor::JobAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +JobAdaptor::~JobAdaptor() +{ + // destructor +} + +uint JobAdaptor::id() const +{ + // get the value of property Id + return qvariant_cast< uint >(parent()->property("Id")); +} + +QString JobAdaptor::jobType() const +{ + // get the value of property JobType + return qvariant_cast< QString >(parent()->property("JobType")); +} + +QString JobAdaptor::state() const +{ + // get the value of property State + return qvariant_cast< QString >(parent()->property("State")); +} + +void JobAdaptor::Cancel() +{ + // handle method call org.freedesktop.systemd1.Job.Cancel + QMetaObject::invokeMethod(parent(), "Cancel"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor.h new file mode 100644 index 0000000..9f32ff7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor.h @@ -0,0 +1,61 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.systemd1.Job.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.JobAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.Job.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_FREEDESKTOP_SYSTEMD1_JOBADAPTOR_H +#define ORG_FREEDESKTOP_SYSTEMD1_JOBADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.Job.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.freedesktop.systemd1.Job + */ +class JobAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.systemd1.Job") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + JobAdaptor(QObject *parent); + virtual ~JobAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(uint Id READ id) + uint id() const; + + Q_PROPERTY(QString JobType READ jobType) + QString jobType() const; + + Q_PROPERTY(QString State READ state) + QString state() const; + +public Q_SLOTS: // METHODS + void Cancel(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor.cpp new file mode 100644 index 0000000..02132ef --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor.cpp @@ -0,0 +1,985 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.systemd1.Manager.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.Manager.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/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ManagerAdaptor + */ + +ManagerAdaptor::ManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ManagerAdaptor::~ManagerAdaptor() +{ + // destructor +} + +QString ManagerAdaptor::architecture() const +{ + // get the value of property Architecture + return qvariant_cast< QString >(parent()->property("Architecture")); +} + +bool ManagerAdaptor::confirmSpawn() const +{ + // get the value of property ConfirmSpawn + return qvariant_cast< bool >(parent()->property("ConfirmSpawn")); +} + +QString ManagerAdaptor::controlGroup() const +{ + // get the value of property ControlGroup + return qvariant_cast< QString >(parent()->property("ControlGroup")); +} + +bool ManagerAdaptor::defaultBlockIOAccounting() const +{ + // get the value of property DefaultBlockIOAccounting + return qvariant_cast< bool >(parent()->property("DefaultBlockIOAccounting")); +} + +bool ManagerAdaptor::defaultCPUAccounting() const +{ + // get the value of property DefaultCPUAccounting + return qvariant_cast< bool >(parent()->property("DefaultCPUAccounting")); +} + +qulonglong ManagerAdaptor::defaultLimitAS() const +{ + // get the value of property DefaultLimitAS + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitAS")); +} + +qulonglong ManagerAdaptor::defaultLimitASSoft() const +{ + // get the value of property DefaultLimitASSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitASSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitCORE() const +{ + // get the value of property DefaultLimitCORE + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitCORE")); +} + +qulonglong ManagerAdaptor::defaultLimitCORESoft() const +{ + // get the value of property DefaultLimitCORESoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitCORESoft")); +} + +qulonglong ManagerAdaptor::defaultLimitCPU() const +{ + // get the value of property DefaultLimitCPU + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitCPU")); +} + +qulonglong ManagerAdaptor::defaultLimitCPUSoft() const +{ + // get the value of property DefaultLimitCPUSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitCPUSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitDATA() const +{ + // get the value of property DefaultLimitDATA + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitDATA")); +} + +qulonglong ManagerAdaptor::defaultLimitDATASoft() const +{ + // get the value of property DefaultLimitDATASoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitDATASoft")); +} + +qulonglong ManagerAdaptor::defaultLimitFSIZE() const +{ + // get the value of property DefaultLimitFSIZE + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitFSIZE")); +} + +qulonglong ManagerAdaptor::defaultLimitFSIZESoft() const +{ + // get the value of property DefaultLimitFSIZESoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitFSIZESoft")); +} + +qulonglong ManagerAdaptor::defaultLimitLOCKS() const +{ + // get the value of property DefaultLimitLOCKS + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitLOCKS")); +} + +qulonglong ManagerAdaptor::defaultLimitLOCKSSoft() const +{ + // get the value of property DefaultLimitLOCKSSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitLOCKSSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitMEMLOCK() const +{ + // get the value of property DefaultLimitMEMLOCK + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitMEMLOCK")); +} + +qulonglong ManagerAdaptor::defaultLimitMEMLOCKSoft() const +{ + // get the value of property DefaultLimitMEMLOCKSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitMEMLOCKSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitMSGQUEUE() const +{ + // get the value of property DefaultLimitMSGQUEUE + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitMSGQUEUE")); +} + +qulonglong ManagerAdaptor::defaultLimitMSGQUEUESoft() const +{ + // get the value of property DefaultLimitMSGQUEUESoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitMSGQUEUESoft")); +} + +qulonglong ManagerAdaptor::defaultLimitNICE() const +{ + // get the value of property DefaultLimitNICE + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitNICE")); +} + +qulonglong ManagerAdaptor::defaultLimitNICESoft() const +{ + // get the value of property DefaultLimitNICESoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitNICESoft")); +} + +qulonglong ManagerAdaptor::defaultLimitNOFILE() const +{ + // get the value of property DefaultLimitNOFILE + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitNOFILE")); +} + +qulonglong ManagerAdaptor::defaultLimitNOFILESoft() const +{ + // get the value of property DefaultLimitNOFILESoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitNOFILESoft")); +} + +qulonglong ManagerAdaptor::defaultLimitNPROC() const +{ + // get the value of property DefaultLimitNPROC + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitNPROC")); +} + +qulonglong ManagerAdaptor::defaultLimitNPROCSoft() const +{ + // get the value of property DefaultLimitNPROCSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitNPROCSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitRSS() const +{ + // get the value of property DefaultLimitRSS + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitRSS")); +} + +qulonglong ManagerAdaptor::defaultLimitRSSSoft() const +{ + // get the value of property DefaultLimitRSSSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitRSSSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitRTPRIO() const +{ + // get the value of property DefaultLimitRTPRIO + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitRTPRIO")); +} + +qulonglong ManagerAdaptor::defaultLimitRTPRIOSoft() const +{ + // get the value of property DefaultLimitRTPRIOSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitRTPRIOSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitRTTIME() const +{ + // get the value of property DefaultLimitRTTIME + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitRTTIME")); +} + +qulonglong ManagerAdaptor::defaultLimitRTTIMESoft() const +{ + // get the value of property DefaultLimitRTTIMESoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitRTTIMESoft")); +} + +qulonglong ManagerAdaptor::defaultLimitSIGPENDING() const +{ + // get the value of property DefaultLimitSIGPENDING + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitSIGPENDING")); +} + +qulonglong ManagerAdaptor::defaultLimitSIGPENDINGSoft() const +{ + // get the value of property DefaultLimitSIGPENDINGSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitSIGPENDINGSoft")); +} + +qulonglong ManagerAdaptor::defaultLimitSTACK() const +{ + // get the value of property DefaultLimitSTACK + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitSTACK")); +} + +qulonglong ManagerAdaptor::defaultLimitSTACKSoft() const +{ + // get the value of property DefaultLimitSTACKSoft + return qvariant_cast< qulonglong >(parent()->property("DefaultLimitSTACKSoft")); +} + +bool ManagerAdaptor::defaultMemoryAccounting() const +{ + // get the value of property DefaultMemoryAccounting + return qvariant_cast< bool >(parent()->property("DefaultMemoryAccounting")); +} + +qulonglong ManagerAdaptor::defaultRestartUSec() const +{ + // get the value of property DefaultRestartUSec + return qvariant_cast< qulonglong >(parent()->property("DefaultRestartUSec")); +} + +QString ManagerAdaptor::defaultStandardError() const +{ + // get the value of property DefaultStandardError + return qvariant_cast< QString >(parent()->property("DefaultStandardError")); +} + +QString ManagerAdaptor::defaultStandardOutput() const +{ + // get the value of property DefaultStandardOutput + return qvariant_cast< QString >(parent()->property("DefaultStandardOutput")); +} + +uint ManagerAdaptor::defaultStartLimitBurst() const +{ + // get the value of property DefaultStartLimitBurst + return qvariant_cast< uint >(parent()->property("DefaultStartLimitBurst")); +} + +qulonglong ManagerAdaptor::defaultStartLimitIntervalUSec() const +{ + // get the value of property DefaultStartLimitIntervalUSec + return qvariant_cast< qulonglong >(parent()->property("DefaultStartLimitIntervalUSec")); +} + +bool ManagerAdaptor::defaultTasksAccounting() const +{ + // get the value of property DefaultTasksAccounting + return qvariant_cast< bool >(parent()->property("DefaultTasksAccounting")); +} + +qulonglong ManagerAdaptor::defaultTasksMax() const +{ + // get the value of property DefaultTasksMax + return qvariant_cast< qulonglong >(parent()->property("DefaultTasksMax")); +} + +qulonglong ManagerAdaptor::defaultTimeoutStartUSec() const +{ + // get the value of property DefaultTimeoutStartUSec + return qvariant_cast< qulonglong >(parent()->property("DefaultTimeoutStartUSec")); +} + +qulonglong ManagerAdaptor::defaultTimeoutStopUSec() const +{ + // get the value of property DefaultTimeoutStopUSec + return qvariant_cast< qulonglong >(parent()->property("DefaultTimeoutStopUSec")); +} + +qulonglong ManagerAdaptor::defaultTimerAccuracyUSec() const +{ + // get the value of property DefaultTimerAccuracyUSec + return qvariant_cast< qulonglong >(parent()->property("DefaultTimerAccuracyUSec")); +} + +QStringList ManagerAdaptor::environment() const +{ + // get the value of property Environment + return qvariant_cast< QStringList >(parent()->property("Environment")); +} + +uchar ManagerAdaptor::exitCode() const +{ + // get the value of property ExitCode + return qvariant_cast< uchar >(parent()->property("ExitCode")); +} + +QString ManagerAdaptor::features() const +{ + // get the value of property Features + return qvariant_cast< QString >(parent()->property("Features")); +} + +qulonglong ManagerAdaptor::finishTimestamp() const +{ + // get the value of property FinishTimestamp + return qvariant_cast< qulonglong >(parent()->property("FinishTimestamp")); +} + +qulonglong ManagerAdaptor::finishTimestampMonotonic() const +{ + // get the value of property FinishTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("FinishTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::firmwareTimestamp() const +{ + // get the value of property FirmwareTimestamp + return qvariant_cast< qulonglong >(parent()->property("FirmwareTimestamp")); +} + +qulonglong ManagerAdaptor::firmwareTimestampMonotonic() const +{ + // get the value of property FirmwareTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("FirmwareTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::generatorsFinishTimestamp() const +{ + // get the value of property GeneratorsFinishTimestamp + return qvariant_cast< qulonglong >(parent()->property("GeneratorsFinishTimestamp")); +} + +qulonglong ManagerAdaptor::generatorsFinishTimestampMonotonic() const +{ + // get the value of property GeneratorsFinishTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("GeneratorsFinishTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::generatorsStartTimestamp() const +{ + // get the value of property GeneratorsStartTimestamp + return qvariant_cast< qulonglong >(parent()->property("GeneratorsStartTimestamp")); +} + +qulonglong ManagerAdaptor::generatorsStartTimestampMonotonic() const +{ + // get the value of property GeneratorsStartTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("GeneratorsStartTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::initRDGeneratorsFinishTimestamp() const +{ + // get the value of property InitRDGeneratorsFinishTimestamp + return qvariant_cast< qulonglong >(parent()->property("InitRDGeneratorsFinishTimestamp")); +} + +qulonglong ManagerAdaptor::initRDGeneratorsFinishTimestampMonotonic() const +{ + // get the value of property InitRDGeneratorsFinishTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("InitRDGeneratorsFinishTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::initRDGeneratorsStartTimestamp() const +{ + // get the value of property InitRDGeneratorsStartTimestamp + return qvariant_cast< qulonglong >(parent()->property("InitRDGeneratorsStartTimestamp")); +} + +qulonglong ManagerAdaptor::initRDGeneratorsStartTimestampMonotonic() const +{ + // get the value of property InitRDGeneratorsStartTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("InitRDGeneratorsStartTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::initRDSecurityFinishTimestamp() const +{ + // get the value of property InitRDSecurityFinishTimestamp + return qvariant_cast< qulonglong >(parent()->property("InitRDSecurityFinishTimestamp")); +} + +qulonglong ManagerAdaptor::initRDSecurityFinishTimestampMonotonic() const +{ + // get the value of property InitRDSecurityFinishTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("InitRDSecurityFinishTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::initRDSecurityStartTimestamp() const +{ + // get the value of property InitRDSecurityStartTimestamp + return qvariant_cast< qulonglong >(parent()->property("InitRDSecurityStartTimestamp")); +} + +qulonglong ManagerAdaptor::initRDSecurityStartTimestampMonotonic() const +{ + // get the value of property InitRDSecurityStartTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("InitRDSecurityStartTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::initRDTimestamp() const +{ + // get the value of property InitRDTimestamp + return qvariant_cast< qulonglong >(parent()->property("InitRDTimestamp")); +} + +qulonglong ManagerAdaptor::initRDTimestampMonotonic() const +{ + // get the value of property InitRDTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("InitRDTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::initRDUnitsLoadFinishTimestamp() const +{ + // get the value of property InitRDUnitsLoadFinishTimestamp + return qvariant_cast< qulonglong >(parent()->property("InitRDUnitsLoadFinishTimestamp")); +} + +qulonglong ManagerAdaptor::initRDUnitsLoadFinishTimestampMonotonic() const +{ + // get the value of property InitRDUnitsLoadFinishTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("InitRDUnitsLoadFinishTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::initRDUnitsLoadStartTimestamp() const +{ + // get the value of property InitRDUnitsLoadStartTimestamp + return qvariant_cast< qulonglong >(parent()->property("InitRDUnitsLoadStartTimestamp")); +} + +qulonglong ManagerAdaptor::initRDUnitsLoadStartTimestampMonotonic() const +{ + // get the value of property InitRDUnitsLoadStartTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("InitRDUnitsLoadStartTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::kernelTimestamp() const +{ + // get the value of property KernelTimestamp + return qvariant_cast< qulonglong >(parent()->property("KernelTimestamp")); +} + +qulonglong ManagerAdaptor::kernelTimestampMonotonic() const +{ + // get the value of property KernelTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("KernelTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::loaderTimestamp() const +{ + // get the value of property LoaderTimestamp + return qvariant_cast< qulonglong >(parent()->property("LoaderTimestamp")); +} + +qulonglong ManagerAdaptor::loaderTimestampMonotonic() const +{ + // get the value of property LoaderTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("LoaderTimestampMonotonic")); +} + +QString ManagerAdaptor::logLevel() const +{ + // get the value of property LogLevel + return qvariant_cast< QString >(parent()->property("LogLevel")); +} + +void ManagerAdaptor::setLogLevel(const QString &value) +{ + // set the value of property LogLevel + parent()->setProperty("LogLevel", QVariant::fromValue(value)); +} + +QString ManagerAdaptor::logTarget() const +{ + // get the value of property LogTarget + return qvariant_cast< QString >(parent()->property("LogTarget")); +} + +void ManagerAdaptor::setLogTarget(const QString &value) +{ + // set the value of property LogTarget + parent()->setProperty("LogTarget", QVariant::fromValue(value)); +} + +uint ManagerAdaptor::nFailedJobs() const +{ + // get the value of property NFailedJobs + return qvariant_cast< uint >(parent()->property("NFailedJobs")); +} + +uint ManagerAdaptor::nFailedUnits() const +{ + // get the value of property NFailedUnits + return qvariant_cast< uint >(parent()->property("NFailedUnits")); +} + +uint ManagerAdaptor::nInstalledJobs() const +{ + // get the value of property NInstalledJobs + return qvariant_cast< uint >(parent()->property("NInstalledJobs")); +} + +uint ManagerAdaptor::nJobs() const +{ + // get the value of property NJobs + return qvariant_cast< uint >(parent()->property("NJobs")); +} + +uint ManagerAdaptor::nNames() const +{ + // get the value of property NNames + return qvariant_cast< uint >(parent()->property("NNames")); +} + +double ManagerAdaptor::progress() const +{ + // get the value of property Progress + return qvariant_cast< double >(parent()->property("Progress")); +} + +qulonglong ManagerAdaptor::runtimeWatchdogUSec() const +{ + // get the value of property RuntimeWatchdogUSec + return qvariant_cast< qulonglong >(parent()->property("RuntimeWatchdogUSec")); +} + +void ManagerAdaptor::setRuntimeWatchdogUSec(qulonglong value) +{ + // set the value of property RuntimeWatchdogUSec + parent()->setProperty("RuntimeWatchdogUSec", QVariant::fromValue(value)); +} + +qulonglong ManagerAdaptor::securityFinishTimestamp() const +{ + // get the value of property SecurityFinishTimestamp + return qvariant_cast< qulonglong >(parent()->property("SecurityFinishTimestamp")); +} + +qulonglong ManagerAdaptor::securityFinishTimestampMonotonic() const +{ + // get the value of property SecurityFinishTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("SecurityFinishTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::securityStartTimestamp() const +{ + // get the value of property SecurityStartTimestamp + return qvariant_cast< qulonglong >(parent()->property("SecurityStartTimestamp")); +} + +qulonglong ManagerAdaptor::securityStartTimestampMonotonic() const +{ + // get the value of property SecurityStartTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("SecurityStartTimestampMonotonic")); +} + +bool ManagerAdaptor::serviceWatchdogs() const +{ + // get the value of property ServiceWatchdogs + return qvariant_cast< bool >(parent()->property("ServiceWatchdogs")); +} + +void ManagerAdaptor::setServiceWatchdogs(bool value) +{ + // set the value of property ServiceWatchdogs + parent()->setProperty("ServiceWatchdogs", QVariant::fromValue(value)); +} + +bool ManagerAdaptor::showStatus() const +{ + // get the value of property ShowStatus + return qvariant_cast< bool >(parent()->property("ShowStatus")); +} + +qulonglong ManagerAdaptor::shutdownWatchdogUSec() const +{ + // get the value of property ShutdownWatchdogUSec + return qvariant_cast< qulonglong >(parent()->property("ShutdownWatchdogUSec")); +} + +void ManagerAdaptor::setShutdownWatchdogUSec(qulonglong value) +{ + // set the value of property ShutdownWatchdogUSec + parent()->setProperty("ShutdownWatchdogUSec", QVariant::fromValue(value)); +} + +QString ManagerAdaptor::systemState() const +{ + // get the value of property SystemState + return qvariant_cast< QString >(parent()->property("SystemState")); +} + +QString ManagerAdaptor::tainted() const +{ + // get the value of property Tainted + return qvariant_cast< QString >(parent()->property("Tainted")); +} + +qulonglong ManagerAdaptor::timerSlackNSec() const +{ + // get the value of property TimerSlackNSec + return qvariant_cast< qulonglong >(parent()->property("TimerSlackNSec")); +} + +QStringList ManagerAdaptor::unitPath() const +{ + // get the value of property UnitPath + return qvariant_cast< QStringList >(parent()->property("UnitPath")); +} + +qulonglong ManagerAdaptor::unitsLoadFinishTimestamp() const +{ + // get the value of property UnitsLoadFinishTimestamp + return qvariant_cast< qulonglong >(parent()->property("UnitsLoadFinishTimestamp")); +} + +qulonglong ManagerAdaptor::unitsLoadFinishTimestampMonotonic() const +{ + // get the value of property UnitsLoadFinishTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("UnitsLoadFinishTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::unitsLoadStartTimestamp() const +{ + // get the value of property UnitsLoadStartTimestamp + return qvariant_cast< qulonglong >(parent()->property("UnitsLoadStartTimestamp")); +} + +qulonglong ManagerAdaptor::unitsLoadStartTimestampMonotonic() const +{ + // get the value of property UnitsLoadStartTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("UnitsLoadStartTimestampMonotonic")); +} + +qulonglong ManagerAdaptor::userspaceTimestamp() const +{ + // get the value of property UserspaceTimestamp + return qvariant_cast< qulonglong >(parent()->property("UserspaceTimestamp")); +} + +qulonglong ManagerAdaptor::userspaceTimestampMonotonic() const +{ + // get the value of property UserspaceTimestampMonotonic + return qvariant_cast< qulonglong >(parent()->property("UserspaceTimestampMonotonic")); +} + +QString ManagerAdaptor::version() const +{ + // get the value of property Version + return qvariant_cast< QString >(parent()->property("Version")); +} + +QString ManagerAdaptor::virtualization() const +{ + // get the value of property Virtualization + return qvariant_cast< QString >(parent()->property("Virtualization")); +} + +void ManagerAdaptor::AbandonScope(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.AbandonScope + QMetaObject::invokeMethod(parent(), "AbandonScope", Q_ARG(QString, in0)); +} + +QString ManagerAdaptor::Dump() +{ + // handle method call org.freedesktop.systemd1.Manager.Dump + QString out0; + QMetaObject::invokeMethod(parent(), "Dump", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusUnixFileDescriptor ManagerAdaptor::DumpByFileDescriptor() +{ + // handle method call org.freedesktop.systemd1.Manager.DumpByFileDescriptor + QDBusUnixFileDescriptor out0; + QMetaObject::invokeMethod(parent(), "DumpByFileDescriptor", Q_RETURN_ARG(QDBusUnixFileDescriptor, out0)); + return out0; +} + +void ManagerAdaptor::Exit() +{ + // handle method call org.freedesktop.systemd1.Manager.Exit + QMetaObject::invokeMethod(parent(), "Exit"); +} + +QDBusObjectPath ManagerAdaptor::GetJob(uint in0) +{ + // handle method call org.freedesktop.systemd1.Manager.GetJob + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetJob", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(uint, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetUnit(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.GetUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetUnitByControlGroup(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.GetUnitByControlGroup + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetUnitByControlGroup", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetUnitByInvocationID(const QByteArray &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.GetUnitByInvocationID + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetUnitByInvocationID", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QByteArray, in0)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::GetUnitByPID(uint in0) +{ + // handle method call org.freedesktop.systemd1.Manager.GetUnitByPID + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetUnitByPID", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(uint, in0)); + return out0; +} + +QStringList ManagerAdaptor::GetUnitFileLinks(const QString &in0, bool in1) +{ + // handle method call org.freedesktop.systemd1.Manager.GetUnitFileLinks + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetUnitFileLinks", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, in0), Q_ARG(bool, in1)); + return out0; +} + +QString ManagerAdaptor::GetUnitFileState(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.GetUnitFileState + QString out0; + QMetaObject::invokeMethod(parent(), "GetUnitFileState", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +void ManagerAdaptor::Halt() +{ + // handle method call org.freedesktop.systemd1.Manager.Halt + QMetaObject::invokeMethod(parent(), "Halt"); +} + +void ManagerAdaptor::KExec() +{ + // handle method call org.freedesktop.systemd1.Manager.KExec + QMetaObject::invokeMethod(parent(), "KExec"); +} + +void ManagerAdaptor::KillUnit(const QString &in0, const QString &in1, int in2) +{ + // handle method call org.freedesktop.systemd1.Manager.KillUnit + QMetaObject::invokeMethod(parent(), "KillUnit", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); +} + +QDBusObjectPath ManagerAdaptor::LoadUnit(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.LoadUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "LoadUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0)); + return out0; +} + +uint ManagerAdaptor::LookupDynamicUserByName(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.LookupDynamicUserByName + uint out0; + QMetaObject::invokeMethod(parent(), "LookupDynamicUserByName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0)); + return out0; +} + +QString ManagerAdaptor::LookupDynamicUserByUID(uint in0) +{ + // handle method call org.freedesktop.systemd1.Manager.LookupDynamicUserByUID + QString out0; + QMetaObject::invokeMethod(parent(), "LookupDynamicUserByUID", Q_RETURN_ARG(QString, out0), Q_ARG(uint, in0)); + return out0; +} + +StringStructList ManagerAdaptor::MaskUnitFiles(const QStringList &in0, bool in1, bool in2) +{ + // handle method call org.freedesktop.systemd1.Manager.MaskUnitFiles + StringStructList out0; + QMetaObject::invokeMethod(parent(), "MaskUnitFiles", Q_RETURN_ARG(StringStructList, out0), Q_ARG(QStringList, in0), Q_ARG(bool, in1), Q_ARG(bool, in2)); + return out0; +} + +void ManagerAdaptor::PowerOff() +{ + // handle method call org.freedesktop.systemd1.Manager.PowerOff + QMetaObject::invokeMethod(parent(), "PowerOff"); +} + +void ManagerAdaptor::Reboot() +{ + // handle method call org.freedesktop.systemd1.Manager.Reboot + QMetaObject::invokeMethod(parent(), "Reboot"); +} + +void ManagerAdaptor::Reexecute() +{ + // handle method call org.freedesktop.systemd1.Manager.Reexecute + QMetaObject::invokeMethod(parent(), "Reexecute"); +} + +void ManagerAdaptor::RefUnit(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.RefUnit + QMetaObject::invokeMethod(parent(), "RefUnit", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::Reload() +{ + // handle method call org.freedesktop.systemd1.Manager.Reload + QMetaObject::invokeMethod(parent(), "Reload"); +} + +QDBusObjectPath ManagerAdaptor::ReloadOrRestartUnit(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "ReloadOrRestartUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::ReloadOrTryRestartUnit(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.ReloadOrTryRestartUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "ReloadOrTryRestartUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::ReloadUnit(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.ReloadUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "ReloadUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +void ManagerAdaptor::ResetFailedUnit(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.ResetFailedUnit + QMetaObject::invokeMethod(parent(), "ResetFailedUnit", Q_ARG(QString, in0)); +} + +QDBusObjectPath ManagerAdaptor::RestartUnit(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.RestartUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "RestartUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +void ManagerAdaptor::SetEnvironment(const QStringList &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.SetEnvironment + QMetaObject::invokeMethod(parent(), "SetEnvironment", Q_ARG(QStringList, in0)); +} + +void ManagerAdaptor::SetExitCode(uchar in0) +{ + // handle method call org.freedesktop.systemd1.Manager.SetExitCode + QMetaObject::invokeMethod(parent(), "SetExitCode", Q_ARG(uchar, in0)); +} + +QDBusObjectPath ManagerAdaptor::StartUnit(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.StartUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "StartUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::StartUnitReplace(const QString &in0, const QString &in1, const QString &in2) +{ + // handle method call org.freedesktop.systemd1.Manager.StartUnitReplace + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "StartUnitReplace", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2)); + return out0; +} + +QDBusObjectPath ManagerAdaptor::StopUnit(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.StopUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "StopUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +void ManagerAdaptor::Subscribe() +{ + // handle method call org.freedesktop.systemd1.Manager.Subscribe + QMetaObject::invokeMethod(parent(), "Subscribe"); +} + +void ManagerAdaptor::SwitchRoot(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.SwitchRoot + QMetaObject::invokeMethod(parent(), "SwitchRoot", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +QDBusObjectPath ManagerAdaptor::TryRestartUnit(const QString &in0, const QString &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.TryRestartUnit + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "TryRestartUnit", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +StringStructList ManagerAdaptor::UnmaskUnitFiles(const QStringList &in0, bool in1) +{ + // handle method call org.freedesktop.systemd1.Manager.UnmaskUnitFiles + StringStructList out0; + QMetaObject::invokeMethod(parent(), "UnmaskUnitFiles", Q_RETURN_ARG(StringStructList, out0), Q_ARG(QStringList, in0), Q_ARG(bool, in1)); + return out0; +} + +void ManagerAdaptor::UnrefUnit(const QString &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.UnrefUnit + QMetaObject::invokeMethod(parent(), "UnrefUnit", Q_ARG(QString, in0)); +} + +void ManagerAdaptor::UnsetAndSetEnvironment(const QStringList &in0, const QStringList &in1) +{ + // handle method call org.freedesktop.systemd1.Manager.UnsetAndSetEnvironment + QMetaObject::invokeMethod(parent(), "UnsetAndSetEnvironment", Q_ARG(QStringList, in0), Q_ARG(QStringList, in1)); +} + +void ManagerAdaptor::UnsetEnvironment(const QStringList &in0) +{ + // handle method call org.freedesktop.systemd1.Manager.UnsetEnvironment + QMetaObject::invokeMethod(parent(), "UnsetEnvironment", Q_ARG(QStringList, in0)); +} + +void ManagerAdaptor::Unsubscribe() +{ + // handle method call org.freedesktop.systemd1.Manager.Unsubscribe + QMetaObject::invokeMethod(parent(), "Unsubscribe"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor.h new file mode 100644 index 0000000..036ae6b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor.h @@ -0,0 +1,919 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-session/dbus/interface/org.freedesktop.systemd1.Manager.xml -a ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.ManagerAdaptor -i ./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.Manager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_FREEDESKTOP_SYSTEMD1_MANAGERADAPTOR_H +#define ORG_FREEDESKTOP_SYSTEMD1_MANAGERADAPTOR_H + +#include +#include +#include "./dde-session/toolGenerate/qdbusxml2cpp/org.freedesktop.systemd1.Manager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.freedesktop.systemd1.Manager + */ +class ManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.systemd1.Manager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \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: + ManagerAdaptor(QObject *parent); + virtual ~ManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString Architecture READ architecture) + QString architecture() const; + + Q_PROPERTY(bool ConfirmSpawn READ confirmSpawn) + bool confirmSpawn() const; + + Q_PROPERTY(QString ControlGroup READ controlGroup) + QString controlGroup() const; + + Q_PROPERTY(bool DefaultBlockIOAccounting READ defaultBlockIOAccounting) + bool defaultBlockIOAccounting() const; + + Q_PROPERTY(bool DefaultCPUAccounting READ defaultCPUAccounting) + bool defaultCPUAccounting() const; + + Q_PROPERTY(qulonglong DefaultLimitAS READ defaultLimitAS) + qulonglong defaultLimitAS() const; + + Q_PROPERTY(qulonglong DefaultLimitASSoft READ defaultLimitASSoft) + qulonglong defaultLimitASSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitCORE READ defaultLimitCORE) + qulonglong defaultLimitCORE() const; + + Q_PROPERTY(qulonglong DefaultLimitCORESoft READ defaultLimitCORESoft) + qulonglong defaultLimitCORESoft() const; + + Q_PROPERTY(qulonglong DefaultLimitCPU READ defaultLimitCPU) + qulonglong defaultLimitCPU() const; + + Q_PROPERTY(qulonglong DefaultLimitCPUSoft READ defaultLimitCPUSoft) + qulonglong defaultLimitCPUSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitDATA READ defaultLimitDATA) + qulonglong defaultLimitDATA() const; + + Q_PROPERTY(qulonglong DefaultLimitDATASoft READ defaultLimitDATASoft) + qulonglong defaultLimitDATASoft() const; + + Q_PROPERTY(qulonglong DefaultLimitFSIZE READ defaultLimitFSIZE) + qulonglong defaultLimitFSIZE() const; + + Q_PROPERTY(qulonglong DefaultLimitFSIZESoft READ defaultLimitFSIZESoft) + qulonglong defaultLimitFSIZESoft() const; + + Q_PROPERTY(qulonglong DefaultLimitLOCKS READ defaultLimitLOCKS) + qulonglong defaultLimitLOCKS() const; + + Q_PROPERTY(qulonglong DefaultLimitLOCKSSoft READ defaultLimitLOCKSSoft) + qulonglong defaultLimitLOCKSSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitMEMLOCK READ defaultLimitMEMLOCK) + qulonglong defaultLimitMEMLOCK() const; + + Q_PROPERTY(qulonglong DefaultLimitMEMLOCKSoft READ defaultLimitMEMLOCKSoft) + qulonglong defaultLimitMEMLOCKSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitMSGQUEUE READ defaultLimitMSGQUEUE) + qulonglong defaultLimitMSGQUEUE() const; + + Q_PROPERTY(qulonglong DefaultLimitMSGQUEUESoft READ defaultLimitMSGQUEUESoft) + qulonglong defaultLimitMSGQUEUESoft() const; + + Q_PROPERTY(qulonglong DefaultLimitNICE READ defaultLimitNICE) + qulonglong defaultLimitNICE() const; + + Q_PROPERTY(qulonglong DefaultLimitNICESoft READ defaultLimitNICESoft) + qulonglong defaultLimitNICESoft() const; + + Q_PROPERTY(qulonglong DefaultLimitNOFILE READ defaultLimitNOFILE) + qulonglong defaultLimitNOFILE() const; + + Q_PROPERTY(qulonglong DefaultLimitNOFILESoft READ defaultLimitNOFILESoft) + qulonglong defaultLimitNOFILESoft() const; + + Q_PROPERTY(qulonglong DefaultLimitNPROC READ defaultLimitNPROC) + qulonglong defaultLimitNPROC() const; + + Q_PROPERTY(qulonglong DefaultLimitNPROCSoft READ defaultLimitNPROCSoft) + qulonglong defaultLimitNPROCSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitRSS READ defaultLimitRSS) + qulonglong defaultLimitRSS() const; + + Q_PROPERTY(qulonglong DefaultLimitRSSSoft READ defaultLimitRSSSoft) + qulonglong defaultLimitRSSSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitRTPRIO READ defaultLimitRTPRIO) + qulonglong defaultLimitRTPRIO() const; + + Q_PROPERTY(qulonglong DefaultLimitRTPRIOSoft READ defaultLimitRTPRIOSoft) + qulonglong defaultLimitRTPRIOSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitRTTIME READ defaultLimitRTTIME) + qulonglong defaultLimitRTTIME() const; + + Q_PROPERTY(qulonglong DefaultLimitRTTIMESoft READ defaultLimitRTTIMESoft) + qulonglong defaultLimitRTTIMESoft() const; + + Q_PROPERTY(qulonglong DefaultLimitSIGPENDING READ defaultLimitSIGPENDING) + qulonglong defaultLimitSIGPENDING() const; + + Q_PROPERTY(qulonglong DefaultLimitSIGPENDINGSoft READ defaultLimitSIGPENDINGSoft) + qulonglong defaultLimitSIGPENDINGSoft() const; + + Q_PROPERTY(qulonglong DefaultLimitSTACK READ defaultLimitSTACK) + qulonglong defaultLimitSTACK() const; + + Q_PROPERTY(qulonglong DefaultLimitSTACKSoft READ defaultLimitSTACKSoft) + qulonglong defaultLimitSTACKSoft() const; + + Q_PROPERTY(bool DefaultMemoryAccounting READ defaultMemoryAccounting) + bool defaultMemoryAccounting() const; + + Q_PROPERTY(qulonglong DefaultRestartUSec READ defaultRestartUSec) + qulonglong defaultRestartUSec() const; + + Q_PROPERTY(QString DefaultStandardError READ defaultStandardError) + QString defaultStandardError() const; + + Q_PROPERTY(QString DefaultStandardOutput READ defaultStandardOutput) + QString defaultStandardOutput() const; + + Q_PROPERTY(uint DefaultStartLimitBurst READ defaultStartLimitBurst) + uint defaultStartLimitBurst() const; + + Q_PROPERTY(qulonglong DefaultStartLimitIntervalUSec READ defaultStartLimitIntervalUSec) + qulonglong defaultStartLimitIntervalUSec() const; + + Q_PROPERTY(bool DefaultTasksAccounting READ defaultTasksAccounting) + bool defaultTasksAccounting() const; + + Q_PROPERTY(qulonglong DefaultTasksMax READ defaultTasksMax) + qulonglong defaultTasksMax() const; + + Q_PROPERTY(qulonglong DefaultTimeoutStartUSec READ defaultTimeoutStartUSec) + qulonglong defaultTimeoutStartUSec() const; + + Q_PROPERTY(qulonglong DefaultTimeoutStopUSec READ defaultTimeoutStopUSec) + qulonglong defaultTimeoutStopUSec() const; + + Q_PROPERTY(qulonglong DefaultTimerAccuracyUSec READ defaultTimerAccuracyUSec) + qulonglong defaultTimerAccuracyUSec() const; + + Q_PROPERTY(QStringList Environment READ environment) + QStringList environment() const; + + Q_PROPERTY(uchar ExitCode READ exitCode) + uchar exitCode() const; + + Q_PROPERTY(QString Features READ features) + QString features() const; + + Q_PROPERTY(qulonglong FinishTimestamp READ finishTimestamp) + qulonglong finishTimestamp() const; + + Q_PROPERTY(qulonglong FinishTimestampMonotonic READ finishTimestampMonotonic) + qulonglong finishTimestampMonotonic() const; + + Q_PROPERTY(qulonglong FirmwareTimestamp READ firmwareTimestamp) + qulonglong firmwareTimestamp() const; + + Q_PROPERTY(qulonglong FirmwareTimestampMonotonic READ firmwareTimestampMonotonic) + qulonglong firmwareTimestampMonotonic() const; + + Q_PROPERTY(qulonglong GeneratorsFinishTimestamp READ generatorsFinishTimestamp) + qulonglong generatorsFinishTimestamp() const; + + Q_PROPERTY(qulonglong GeneratorsFinishTimestampMonotonic READ generatorsFinishTimestampMonotonic) + qulonglong generatorsFinishTimestampMonotonic() const; + + Q_PROPERTY(qulonglong GeneratorsStartTimestamp READ generatorsStartTimestamp) + qulonglong generatorsStartTimestamp() const; + + Q_PROPERTY(qulonglong GeneratorsStartTimestampMonotonic READ generatorsStartTimestampMonotonic) + qulonglong generatorsStartTimestampMonotonic() const; + + Q_PROPERTY(qulonglong InitRDGeneratorsFinishTimestamp READ initRDGeneratorsFinishTimestamp) + qulonglong initRDGeneratorsFinishTimestamp() const; + + Q_PROPERTY(qulonglong InitRDGeneratorsFinishTimestampMonotonic READ initRDGeneratorsFinishTimestampMonotonic) + qulonglong initRDGeneratorsFinishTimestampMonotonic() const; + + Q_PROPERTY(qulonglong InitRDGeneratorsStartTimestamp READ initRDGeneratorsStartTimestamp) + qulonglong initRDGeneratorsStartTimestamp() const; + + Q_PROPERTY(qulonglong InitRDGeneratorsStartTimestampMonotonic READ initRDGeneratorsStartTimestampMonotonic) + qulonglong initRDGeneratorsStartTimestampMonotonic() const; + + Q_PROPERTY(qulonglong InitRDSecurityFinishTimestamp READ initRDSecurityFinishTimestamp) + qulonglong initRDSecurityFinishTimestamp() const; + + Q_PROPERTY(qulonglong InitRDSecurityFinishTimestampMonotonic READ initRDSecurityFinishTimestampMonotonic) + qulonglong initRDSecurityFinishTimestampMonotonic() const; + + Q_PROPERTY(qulonglong InitRDSecurityStartTimestamp READ initRDSecurityStartTimestamp) + qulonglong initRDSecurityStartTimestamp() const; + + Q_PROPERTY(qulonglong InitRDSecurityStartTimestampMonotonic READ initRDSecurityStartTimestampMonotonic) + qulonglong initRDSecurityStartTimestampMonotonic() const; + + Q_PROPERTY(qulonglong InitRDTimestamp READ initRDTimestamp) + qulonglong initRDTimestamp() const; + + Q_PROPERTY(qulonglong InitRDTimestampMonotonic READ initRDTimestampMonotonic) + qulonglong initRDTimestampMonotonic() const; + + Q_PROPERTY(qulonglong InitRDUnitsLoadFinishTimestamp READ initRDUnitsLoadFinishTimestamp) + qulonglong initRDUnitsLoadFinishTimestamp() const; + + Q_PROPERTY(qulonglong InitRDUnitsLoadFinishTimestampMonotonic READ initRDUnitsLoadFinishTimestampMonotonic) + qulonglong initRDUnitsLoadFinishTimestampMonotonic() const; + + Q_PROPERTY(qulonglong InitRDUnitsLoadStartTimestamp READ initRDUnitsLoadStartTimestamp) + qulonglong initRDUnitsLoadStartTimestamp() const; + + Q_PROPERTY(qulonglong InitRDUnitsLoadStartTimestampMonotonic READ initRDUnitsLoadStartTimestampMonotonic) + qulonglong initRDUnitsLoadStartTimestampMonotonic() const; + + Q_PROPERTY(qulonglong KernelTimestamp READ kernelTimestamp) + qulonglong kernelTimestamp() const; + + Q_PROPERTY(qulonglong KernelTimestampMonotonic READ kernelTimestampMonotonic) + qulonglong kernelTimestampMonotonic() const; + + Q_PROPERTY(qulonglong LoaderTimestamp READ loaderTimestamp) + qulonglong loaderTimestamp() const; + + Q_PROPERTY(qulonglong LoaderTimestampMonotonic READ loaderTimestampMonotonic) + qulonglong loaderTimestampMonotonic() const; + + Q_PROPERTY(QString LogLevel READ logLevel WRITE setLogLevel) + QString logLevel() const; + void setLogLevel(const QString &value); + + Q_PROPERTY(QString LogTarget READ logTarget WRITE setLogTarget) + QString logTarget() const; + void setLogTarget(const QString &value); + + Q_PROPERTY(uint NFailedJobs READ nFailedJobs) + uint nFailedJobs() const; + + Q_PROPERTY(uint NFailedUnits READ nFailedUnits) + uint nFailedUnits() const; + + Q_PROPERTY(uint NInstalledJobs READ nInstalledJobs) + uint nInstalledJobs() const; + + Q_PROPERTY(uint NJobs READ nJobs) + uint nJobs() const; + + Q_PROPERTY(uint NNames READ nNames) + uint nNames() const; + + Q_PROPERTY(double Progress READ progress) + double progress() const; + + Q_PROPERTY(qulonglong RuntimeWatchdogUSec READ runtimeWatchdogUSec WRITE setRuntimeWatchdogUSec) + qulonglong runtimeWatchdogUSec() const; + void setRuntimeWatchdogUSec(qulonglong value); + + Q_PROPERTY(qulonglong SecurityFinishTimestamp READ securityFinishTimestamp) + qulonglong securityFinishTimestamp() const; + + Q_PROPERTY(qulonglong SecurityFinishTimestampMonotonic READ securityFinishTimestampMonotonic) + qulonglong securityFinishTimestampMonotonic() const; + + Q_PROPERTY(qulonglong SecurityStartTimestamp READ securityStartTimestamp) + qulonglong securityStartTimestamp() const; + + Q_PROPERTY(qulonglong SecurityStartTimestampMonotonic READ securityStartTimestampMonotonic) + qulonglong securityStartTimestampMonotonic() const; + + Q_PROPERTY(bool ServiceWatchdogs READ serviceWatchdogs WRITE setServiceWatchdogs) + bool serviceWatchdogs() const; + void setServiceWatchdogs(bool value); + + Q_PROPERTY(bool ShowStatus READ showStatus) + bool showStatus() const; + + Q_PROPERTY(qulonglong ShutdownWatchdogUSec READ shutdownWatchdogUSec WRITE setShutdownWatchdogUSec) + qulonglong shutdownWatchdogUSec() const; + void setShutdownWatchdogUSec(qulonglong value); + + Q_PROPERTY(QString SystemState READ systemState) + QString systemState() const; + + Q_PROPERTY(QString Tainted READ tainted) + QString tainted() const; + + Q_PROPERTY(qulonglong TimerSlackNSec READ timerSlackNSec) + qulonglong timerSlackNSec() const; + + Q_PROPERTY(QStringList UnitPath READ unitPath) + QStringList unitPath() const; + + Q_PROPERTY(qulonglong UnitsLoadFinishTimestamp READ unitsLoadFinishTimestamp) + qulonglong unitsLoadFinishTimestamp() const; + + Q_PROPERTY(qulonglong UnitsLoadFinishTimestampMonotonic READ unitsLoadFinishTimestampMonotonic) + qulonglong unitsLoadFinishTimestampMonotonic() const; + + Q_PROPERTY(qulonglong UnitsLoadStartTimestamp READ unitsLoadStartTimestamp) + qulonglong unitsLoadStartTimestamp() const; + + Q_PROPERTY(qulonglong UnitsLoadStartTimestampMonotonic READ unitsLoadStartTimestampMonotonic) + qulonglong unitsLoadStartTimestampMonotonic() const; + + Q_PROPERTY(qulonglong UserspaceTimestamp READ userspaceTimestamp) + qulonglong userspaceTimestamp() const; + + Q_PROPERTY(qulonglong UserspaceTimestampMonotonic READ userspaceTimestampMonotonic) + qulonglong userspaceTimestampMonotonic() const; + + Q_PROPERTY(QString Version READ version) + QString version() const; + + Q_PROPERTY(QString Virtualization READ virtualization) + QString virtualization() const; + +public Q_SLOTS: // METHODS + void AbandonScope(const QString &in0); + QString Dump(); + QDBusUnixFileDescriptor DumpByFileDescriptor(); + void Exit(); + QDBusObjectPath GetJob(uint in0); + QDBusObjectPath GetUnit(const QString &in0); + QDBusObjectPath GetUnitByControlGroup(const QString &in0); + QDBusObjectPath GetUnitByInvocationID(const QByteArray &in0); + QDBusObjectPath GetUnitByPID(uint in0); + QStringList GetUnitFileLinks(const QString &in0, bool in1); + QString GetUnitFileState(const QString &in0); + void Halt(); + void KExec(); + void KillUnit(const QString &in0, const QString &in1, int in2); + QDBusObjectPath LoadUnit(const QString &in0); + uint LookupDynamicUserByName(const QString &in0); + QString LookupDynamicUserByUID(uint in0); + StringStructList MaskUnitFiles(const QStringList &in0, bool in1, bool in2); + void PowerOff(); + void Reboot(); + void Reexecute(); + void RefUnit(const QString &in0); + void Reload(); + QDBusObjectPath ReloadOrRestartUnit(const QString &in0, const QString &in1); + QDBusObjectPath ReloadOrTryRestartUnit(const QString &in0, const QString &in1); + QDBusObjectPath ReloadUnit(const QString &in0, const QString &in1); + void ResetFailedUnit(const QString &in0); + QDBusObjectPath RestartUnit(const QString &in0, const QString &in1); + void SetEnvironment(const QStringList &in0); + void SetExitCode(uchar in0); + QDBusObjectPath StartUnit(const QString &in0, const QString &in1); + QDBusObjectPath StartUnitReplace(const QString &in0, const QString &in1, const QString &in2); + QDBusObjectPath StopUnit(const QString &in0, const QString &in1); + void Subscribe(); + void SwitchRoot(const QString &in0, const QString &in1); + QDBusObjectPath TryRestartUnit(const QString &in0, const QString &in1); + StringStructList UnmaskUnitFiles(const QStringList &in0, bool in1); + void UnrefUnit(const QString &in0); + void UnsetAndSetEnvironment(const QStringList &in0, const QStringList &in1); + void UnsetEnvironment(const QStringList &in0); + void Unsubscribe(); +Q_SIGNALS: // SIGNALS + void JobNew(uint in0, const QDBusObjectPath &in1, const QString &in2); + void JobRemoved(uint in0, const QDBusObjectPath &in1, const QString &in2, const QString &in3); + void Reloading(bool in0); + void StartupFinished(qulonglong in0, qulonglong in1, qulonglong in2, qulonglong in3, qulonglong in4, qulonglong in5); + void UnitFilesChanged(); + void UnitNew(const QString &in0, const QDBusObjectPath &in1); + void UnitRemoved(const QString &in0, const QDBusObjectPath &in1); +}; + +#endif