diff --git a/.reuse/dep5 b/.reuse/dep5 index 66e525e..3ac4c4f 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -62,3 +62,8 @@ License: CC0-1.0 Files: dock-clipboard-plugin/resources/*.svg dock-clipboard-plugin/resources/*.dci Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later + + +Files: toolGenerate/**/* +Copyright: None +License: CC0-1.0 diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp new file mode 100644 index 0000000..4d34650 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dde-clipboard/org.deepin.dde.Clipboard1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1.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-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Clipboard1Adaptor + */ + +Clipboard1Adaptor::Clipboard1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Clipboard1Adaptor::~Clipboard1Adaptor() +{ + // destructor +} + +bool Clipboard1Adaptor::clipboardVisible() const +{ + // get the value of property clipboardVisible + return qvariant_cast< bool >(parent()->property("clipboardVisible")); +} + +void Clipboard1Adaptor::Hide() +{ + // handle method call org.deepin.dde.Clipboard1.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +void Clipboard1Adaptor::Show() +{ + // handle method call org.deepin.dde.Clipboard1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void Clipboard1Adaptor::Toggle() +{ + // handle method call org.deepin.dde.Clipboard1.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.h new file mode 100644 index 0000000..26306ce --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.h @@ -0,0 +1,61 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dde-clipboard/org.deepin.dde.Clipboard1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1.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_CLIPBOARD1ADAPTOR_H +#define ORG_DEEPIN_DDE_CLIPBOARD1ADAPTOR_H + +#include +#include +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1.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.Clipboard1 + */ +class Clipboard1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Clipboard1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Clipboard1Adaptor(QObject *parent); + virtual ~Clipboard1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool clipboardVisible READ clipboardVisible) + bool clipboardVisible() const; + +public Q_SLOTS: // METHODS + void Hide(); + void Show(); + void Toggle(); +Q_SIGNALS: // SIGNALS + void clipboardVisibleChanged(bool visible); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp new file mode 100644 index 0000000..32e8fe0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp @@ -0,0 +1,209 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dbus/org.deepin.dde.Display1.Monitor.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MonitorAdaptor + */ + +MonitorAdaptor::MonitorAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MonitorAdaptor::~MonitorAdaptor() +{ + // destructor +} + +QStringList MonitorAdaptor::availableFillModes() const +{ + // get the value of property AvailableFillModes + return qvariant_cast< QStringList >(parent()->property("AvailableFillModes")); +} + +Resolution MonitorAdaptor::bestMode() const +{ + // get the value of property BestMode + return qvariant_cast< Resolution >(parent()->property("BestMode")); +} + +bool MonitorAdaptor::connected() const +{ + // get the value of property Connected + return qvariant_cast< bool >(parent()->property("Connected")); +} + +QString MonitorAdaptor::currentFillMode() const +{ + // get the value of property CurrentFillMode + return qvariant_cast< QString >(parent()->property("CurrentFillMode")); +} + +void MonitorAdaptor::setCurrentFillMode(const QString &value) +{ + // set the value of property CurrentFillMode + parent()->setProperty("CurrentFillMode", QVariant::fromValue(value)); +} + +Resolution MonitorAdaptor::currentMode() const +{ + // get the value of property CurrentMode + return qvariant_cast< Resolution >(parent()->property("CurrentMode")); +} + +uchar MonitorAdaptor::currentRotateMode() const +{ + // get the value of property CurrentRotateMode + return qvariant_cast< uchar >(parent()->property("CurrentRotateMode")); +} + +bool MonitorAdaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +ushort MonitorAdaptor::height() const +{ + // get the value of property Height + return qvariant_cast< ushort >(parent()->property("Height")); +} + +QString MonitorAdaptor::manufacturer() const +{ + // get the value of property Manufacturer + return qvariant_cast< QString >(parent()->property("Manufacturer")); +} + +uint MonitorAdaptor::mmHeight() const +{ + // get the value of property MmHeight + return qvariant_cast< uint >(parent()->property("MmHeight")); +} + +uint MonitorAdaptor::mmWidth() const +{ + // get the value of property MmWidth + return qvariant_cast< uint >(parent()->property("MmWidth")); +} + +QString MonitorAdaptor::model() const +{ + // get the value of property Model + return qvariant_cast< QString >(parent()->property("Model")); +} + +ResolutionList MonitorAdaptor::modes() const +{ + // get the value of property Modes + return qvariant_cast< ResolutionList >(parent()->property("Modes")); +} + +QString MonitorAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +ushort MonitorAdaptor::reflect() const +{ + // get the value of property Reflect + return qvariant_cast< ushort >(parent()->property("Reflect")); +} + +ReflectList MonitorAdaptor::reflects() const +{ + // get the value of property Reflects + return qvariant_cast< ReflectList >(parent()->property("Reflects")); +} + +double MonitorAdaptor::refreshRate() const +{ + // get the value of property RefreshRate + return qvariant_cast< double >(parent()->property("RefreshRate")); +} + +ushort MonitorAdaptor::rotation() const +{ + // get the value of property Rotation + return qvariant_cast< ushort >(parent()->property("Rotation")); +} + +RotationList MonitorAdaptor::rotations() const +{ + // get the value of property Rotations + return qvariant_cast< RotationList >(parent()->property("Rotations")); +} + +ushort MonitorAdaptor::width() const +{ + // get the value of property Width + return qvariant_cast< ushort >(parent()->property("Width")); +} + +short MonitorAdaptor::x() const +{ + // get the value of property X + return qvariant_cast< short >(parent()->property("X")); +} + +short MonitorAdaptor::y() const +{ + // get the value of property Y + return qvariant_cast< short >(parent()->property("Y")); +} + +void MonitorAdaptor::Enable(bool in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, in0)); +} + +void MonitorAdaptor::SetMode(uint in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetMode + QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(uint, in0)); +} + +void MonitorAdaptor::SetModeBySize(ushort in0, ushort in1) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetModeBySize + QMetaObject::invokeMethod(parent(), "SetModeBySize", Q_ARG(ushort, in0), Q_ARG(ushort, in1)); +} + +void MonitorAdaptor::SetPosition(short in0, short in1) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetPosition + QMetaObject::invokeMethod(parent(), "SetPosition", Q_ARG(short, in0), Q_ARG(short, in1)); +} + +void MonitorAdaptor::SetReflect(ushort in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetReflect + QMetaObject::invokeMethod(parent(), "SetReflect", Q_ARG(ushort, in0)); +} + +void MonitorAdaptor::SetRotation(ushort in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetRotation + QMetaObject::invokeMethod(parent(), "SetRotation", Q_ARG(ushort, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h new file mode 100644 index 0000000..99ae46f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h @@ -0,0 +1,172 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dbus/org.deepin.dde.Display1.Monitor.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DISPLAY1_MONITORADAPTOR_H +#define ORG_DEEPIN_DDE_DISPLAY1_MONITORADAPTOR_H + +#include +#include +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Display1.Monitor + */ +class MonitorAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1.Monitor") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MonitorAdaptor(QObject *parent); + virtual ~MonitorAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QStringList AvailableFillModes READ availableFillModes) + QStringList availableFillModes() const; + + Q_PROPERTY(Resolution BestMode READ bestMode) + Resolution bestMode() const; + + Q_PROPERTY(bool Connected READ connected) + bool connected() const; + + Q_PROPERTY(QString CurrentFillMode READ currentFillMode WRITE setCurrentFillMode) + QString currentFillMode() const; + void setCurrentFillMode(const QString &value); + + Q_PROPERTY(Resolution CurrentMode READ currentMode) + Resolution currentMode() const; + + Q_PROPERTY(uchar CurrentRotateMode READ currentRotateMode) + uchar currentRotateMode() const; + + Q_PROPERTY(bool Enabled READ enabled) + bool enabled() const; + + Q_PROPERTY(ushort Height READ height) + ushort height() const; + + Q_PROPERTY(QString Manufacturer READ manufacturer) + QString manufacturer() const; + + Q_PROPERTY(uint MmHeight READ mmHeight) + uint mmHeight() const; + + Q_PROPERTY(uint MmWidth READ mmWidth) + uint mmWidth() const; + + Q_PROPERTY(QString Model READ model) + QString model() const; + + Q_PROPERTY(ResolutionList Modes READ modes) + ResolutionList modes() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(ushort Reflect READ reflect) + ushort reflect() const; + + Q_PROPERTY(ReflectList Reflects READ reflects) + ReflectList reflects() const; + + Q_PROPERTY(double RefreshRate READ refreshRate) + double refreshRate() const; + + Q_PROPERTY(ushort Rotation READ rotation) + ushort rotation() const; + + Q_PROPERTY(RotationList Rotations READ rotations) + RotationList rotations() const; + + Q_PROPERTY(ushort Width READ width) + ushort width() const; + + Q_PROPERTY(short X READ x) + short x() const; + + Q_PROPERTY(short Y READ y) + short y() const; + +public Q_SLOTS: // METHODS + void Enable(bool in0); + void SetMode(uint in0); + void SetModeBySize(ushort in0, ushort in1); + void SetPosition(short in0, short in1); + void SetReflect(ushort in0); + void SetRotation(ushort in0); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp new file mode 100644 index 0000000..4d1646b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp @@ -0,0 +1,251 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dbus/org.deepin.dde.Display1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Display1Adaptor + */ + +Display1Adaptor::Display1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Display1Adaptor::~Display1Adaptor() +{ + // destructor +} + +BrightnessMap Display1Adaptor::brightness() const +{ + // get the value of property Brightness + return qvariant_cast< BrightnessMap >(parent()->property("Brightness")); +} + +int Display1Adaptor::colorTemperatureManual() const +{ + // get the value of property ColorTemperatureManual + return qvariant_cast< int >(parent()->property("ColorTemperatureManual")); +} + +int Display1Adaptor::colorTemperatureMode() const +{ + // get the value of property ColorTemperatureMode + return qvariant_cast< int >(parent()->property("ColorTemperatureMode")); +} + +QString Display1Adaptor::currentCustomId() const +{ + // get the value of property CurrentCustomId + return qvariant_cast< QString >(parent()->property("CurrentCustomId")); +} + +QStringList Display1Adaptor::customIdList() const +{ + // get the value of property CustomIdList + return qvariant_cast< QStringList >(parent()->property("CustomIdList")); +} + +uchar Display1Adaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< uchar >(parent()->property("DisplayMode")); +} + +bool Display1Adaptor::hasChanged() const +{ + // get the value of property HasChanged + return qvariant_cast< bool >(parent()->property("HasChanged")); +} + +uint Display1Adaptor::maxBacklightBrightness() const +{ + // get the value of property MaxBacklightBrightness + return qvariant_cast< uint >(parent()->property("MaxBacklightBrightness")); +} + +QList Display1Adaptor::monitors() const +{ + // get the value of property Monitors + return qvariant_cast< QList >(parent()->property("Monitors")); +} + +QString Display1Adaptor::primary() const +{ + // get the value of property Primary + return qvariant_cast< QString >(parent()->property("Primary")); +} + +ScreenRect Display1Adaptor::primaryRect() const +{ + // get the value of property PrimaryRect + return qvariant_cast< ScreenRect >(parent()->property("PrimaryRect")); +} + +ushort Display1Adaptor::screenHeight() const +{ + // get the value of property ScreenHeight + return qvariant_cast< ushort >(parent()->property("ScreenHeight")); +} + +ushort Display1Adaptor::screenWidth() const +{ + // get the value of property ScreenWidth + return qvariant_cast< ushort >(parent()->property("ScreenWidth")); +} + +TouchscreenMap Display1Adaptor::touchMap() const +{ + // get the value of property TouchMap + return qvariant_cast< TouchscreenMap >(parent()->property("TouchMap")); +} + +TouchscreenInfoList Display1Adaptor::touchscreens() const +{ + // get the value of property Touchscreens + return qvariant_cast< TouchscreenInfoList >(parent()->property("Touchscreens")); +} + +TouchscreenInfoList_V2 Display1Adaptor::touchscreensV2() const +{ + // get the value of property TouchscreensV2 + return qvariant_cast< TouchscreenInfoList_V2 >(parent()->property("TouchscreensV2")); +} + +void Display1Adaptor::ApplyChanges() +{ + // handle method call org.deepin.dde.Display1.ApplyChanges + QMetaObject::invokeMethod(parent(), "ApplyChanges"); +} + +void Display1Adaptor::AssociateTouch(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.AssociateTouch + QMetaObject::invokeMethod(parent(), "AssociateTouch", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::AssociateTouchByUUID(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.AssociateTouchByUUID + QMetaObject::invokeMethod(parent(), "AssociateTouchByUUID", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::ChangeBrightness(bool in0) +{ + // handle method call org.deepin.dde.Display1.ChangeBrightness + QMetaObject::invokeMethod(parent(), "ChangeBrightness", Q_ARG(bool, in0)); +} + +void Display1Adaptor::DeleteCustomMode(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.DeleteCustomMode + QMetaObject::invokeMethod(parent(), "DeleteCustomMode", Q_ARG(QString, in0)); +} + +uchar Display1Adaptor::GetRealDisplayMode() +{ + // handle method call org.deepin.dde.Display1.GetRealDisplayMode + uchar out0; + QMetaObject::invokeMethod(parent(), "GetRealDisplayMode", Q_RETURN_ARG(uchar, out0)); + return out0; +} + +QStringList Display1Adaptor::ListOutputNames() +{ + // handle method call org.deepin.dde.Display1.ListOutputNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListOutputNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +ResolutionList Display1Adaptor::ListOutputsCommonModes() +{ + // handle method call org.deepin.dde.Display1.ListOutputsCommonModes + ResolutionList out0; + QMetaObject::invokeMethod(parent(), "ListOutputsCommonModes", Q_RETURN_ARG(ResolutionList, out0)); + return out0; +} + +void Display1Adaptor::ModifyConfigName(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.ModifyConfigName + QMetaObject::invokeMethod(parent(), "ModifyConfigName", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Display1Adaptor::RefreshBrightness() +{ + // handle method call org.deepin.dde.Display1.RefreshBrightness + QMetaObject::invokeMethod(parent(), "RefreshBrightness"); +} + +void Display1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Display1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Display1Adaptor::ResetChanges() +{ + // handle method call org.deepin.dde.Display1.ResetChanges + QMetaObject::invokeMethod(parent(), "ResetChanges"); +} + +void Display1Adaptor::Save() +{ + // handle method call org.deepin.dde.Display1.Save + QMetaObject::invokeMethod(parent(), "Save"); +} + +void Display1Adaptor::SetAndSaveBrightness(const QString &in0, double in1) +{ + // handle method call org.deepin.dde.Display1.SetAndSaveBrightness + QMetaObject::invokeMethod(parent(), "SetAndSaveBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void Display1Adaptor::SetBrightness(const QString &in0, double in1) +{ + // handle method call org.deepin.dde.Display1.SetBrightness + QMetaObject::invokeMethod(parent(), "SetBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void Display1Adaptor::SetColorTemperature(int in0) +{ + // handle method call org.deepin.dde.Display1.SetColorTemperature + QMetaObject::invokeMethod(parent(), "SetColorTemperature", Q_ARG(int, in0)); +} + +void Display1Adaptor::SetMethodAdjustCCT(int in0) +{ + // handle method call org.deepin.dde.Display1.SetMethodAdjustCCT + QMetaObject::invokeMethod(parent(), "SetMethodAdjustCCT", Q_ARG(int, in0)); +} + +void Display1Adaptor::SetPrimary(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.SetPrimary + QMetaObject::invokeMethod(parent(), "SetPrimary", Q_ARG(QString, in0)); +} + +void Display1Adaptor::SwitchMode(uchar in0, const QString &in1) +{ + // handle method call org.deepin.dde.Display1.SwitchMode + QMetaObject::invokeMethod(parent(), "SwitchMode", Q_ARG(uchar, in0), Q_ARG(QString, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h new file mode 100644 index 0000000..3e93a94 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h @@ -0,0 +1,194 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dbus/org.deepin.dde.Display1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H +#define ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H + +#include +#include +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Display1 + */ +class Display1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Display1Adaptor(QObject *parent); + virtual ~Display1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(BrightnessMap Brightness READ brightness) + BrightnessMap brightness() const; + + Q_PROPERTY(int ColorTemperatureManual READ colorTemperatureManual) + int colorTemperatureManual() const; + + Q_PROPERTY(int ColorTemperatureMode READ colorTemperatureMode) + int colorTemperatureMode() const; + + Q_PROPERTY(QString CurrentCustomId READ currentCustomId) + QString currentCustomId() const; + + Q_PROPERTY(QStringList CustomIdList READ customIdList) + QStringList customIdList() const; + + Q_PROPERTY(uchar DisplayMode READ displayMode) + uchar displayMode() const; + + Q_PROPERTY(bool HasChanged READ hasChanged) + bool hasChanged() const; + + Q_PROPERTY(uint MaxBacklightBrightness READ maxBacklightBrightness) + uint maxBacklightBrightness() const; + + Q_PROPERTY(QList Monitors READ monitors) + QList monitors() const; + + Q_PROPERTY(QString Primary READ primary) + QString primary() const; + + Q_PROPERTY(ScreenRect PrimaryRect READ primaryRect) + ScreenRect primaryRect() const; + + Q_PROPERTY(ushort ScreenHeight READ screenHeight) + ushort screenHeight() const; + + Q_PROPERTY(ushort ScreenWidth READ screenWidth) + ushort screenWidth() const; + + Q_PROPERTY(TouchscreenMap TouchMap READ touchMap) + TouchscreenMap touchMap() const; + + Q_PROPERTY(TouchscreenInfoList Touchscreens READ touchscreens) + TouchscreenInfoList touchscreens() const; + + Q_PROPERTY(TouchscreenInfoList_V2 TouchscreensV2 READ touchscreensV2) + TouchscreenInfoList_V2 touchscreensV2() const; + +public Q_SLOTS: // METHODS + void ApplyChanges(); + void AssociateTouch(const QString &in0, const QString &in1); + void AssociateTouchByUUID(const QString &in0, const QString &in1); + void ChangeBrightness(bool in0); + void DeleteCustomMode(const QString &in0); + uchar GetRealDisplayMode(); + QStringList ListOutputNames(); + ResolutionList ListOutputsCommonModes(); + void ModifyConfigName(const QString &in0, const QString &in1); + void RefreshBrightness(); + void Reset(); + void ResetChanges(); + void Save(); + void SetAndSaveBrightness(const QString &in0, double in1); + void SetBrightness(const QString &in0, double in1); + void SetColorTemperature(int in0); + void SetMethodAdjustCCT(int in0); + void SetPrimary(const QString &in0); + void SwitchMode(uchar in0, const QString &in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp new file mode 100644 index 0000000..a4595ea --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp @@ -0,0 +1,131 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dbus/org.deepin.dde.daemon.Dock1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Dock1Adaptor + */ + +Dock1Adaptor::Dock1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Dock1Adaptor::~Dock1Adaptor() +{ + // destructor +} + +int Dock1Adaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< int >(parent()->property("DisplayMode")); +} + +void Dock1Adaptor::setDisplayMode(int value) +{ + // set the value of property DisplayMode + parent()->setProperty("DisplayMode", QVariant::fromValue(value)); +} + +QRect Dock1Adaptor::frontendWindowRect() const +{ + // get the value of property FrontendWindowRect + return qvariant_cast< QRect >(parent()->property("FrontendWindowRect")); +} + +int Dock1Adaptor::hideMode() const +{ + // get the value of property HideMode + return qvariant_cast< int >(parent()->property("HideMode")); +} + +void Dock1Adaptor::setHideMode(int value) +{ + // set the value of property HideMode + parent()->setProperty("HideMode", QVariant::fromValue(value)); +} + +int Dock1Adaptor::hideState() const +{ + // get the value of property HideState + return qvariant_cast< int >(parent()->property("HideState")); +} + +int Dock1Adaptor::position() const +{ + // get the value of property Position + return qvariant_cast< int >(parent()->property("Position")); +} + +void Dock1Adaptor::setPosition(int value) +{ + // set the value of property Position + parent()->setProperty("Position", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSizeEfficient() const +{ + // get the value of property WindowSizeEfficient + return qvariant_cast< uint >(parent()->property("WindowSizeEfficient")); +} + +void Dock1Adaptor::setWindowSizeEfficient(uint value) +{ + // set the value of property WindowSizeEfficient + parent()->setProperty("WindowSizeEfficient", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSizeFashion() const +{ + // get the value of property WindowSizeFashion + return qvariant_cast< uint >(parent()->property("WindowSizeFashion")); +} + +void Dock1Adaptor::setWindowSizeFashion(uint value) +{ + // set the value of property WindowSizeFashion + parent()->setProperty("WindowSizeFashion", QVariant::fromValue(value)); +} + +bool Dock1Adaptor::IsDocked(const QString &desktopFile) +{ + // handle method call org.deepin.dde.daemon.Dock1.IsDocked + bool out0; + QMetaObject::invokeMethod(parent(), "IsDocked", Q_RETURN_ARG(bool, out0), Q_ARG(QString, desktopFile)); + return out0; +} + +bool Dock1Adaptor::RequestDock(const QString &desktopFile, int index) +{ + // handle method call org.deepin.dde.daemon.Dock1.RequestDock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestDock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, desktopFile), Q_ARG(int, index)); + return out0; +} + +bool Dock1Adaptor::RequestUndock(const QString &desktopFile) +{ + // handle method call org.deepin.dde.daemon.Dock1.RequestUndock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestUndock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, desktopFile)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h new file mode 100644 index 0000000..4069b1e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h @@ -0,0 +1,127 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dbus/org.deepin.dde.daemon.Dock1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DAEMON_DOCK1ADAPTOR_H +#define ORG_DEEPIN_DDE_DAEMON_DOCK1ADAPTOR_H + +#include +#include +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.daemon.Dock1 + */ +class Dock1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.daemon.Dock1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Dock1Adaptor(QObject *parent); + virtual ~Dock1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode) + int displayMode() const; + void setDisplayMode(int value); + + Q_PROPERTY(QRect FrontendWindowRect READ frontendWindowRect) + QRect frontendWindowRect() const; + + Q_PROPERTY(int HideMode READ hideMode WRITE setHideMode) + int hideMode() const; + void setHideMode(int value); + + Q_PROPERTY(int HideState READ hideState) + int hideState() const; + + Q_PROPERTY(int Position READ position WRITE setPosition) + int position() const; + void setPosition(int value); + + Q_PROPERTY(uint WindowSizeEfficient READ windowSizeEfficient WRITE setWindowSizeEfficient) + uint windowSizeEfficient() const; + void setWindowSizeEfficient(uint value); + + Q_PROPERTY(uint WindowSizeFashion READ windowSizeFashion WRITE setWindowSizeFashion) + uint windowSizeFashion() const; + void setWindowSizeFashion(uint value); + +public Q_SLOTS: // METHODS + bool IsDocked(const QString &desktopFile); + bool RequestDock(const QString &desktopFile, int index); + bool RequestUndock(const QString &desktopFile); +Q_SIGNALS: // SIGNALS + void DisplayModeChanged(int displaymode); + void FrontendWindowRectChanged(const QRect &FrontendWindowRect); + void HideModeChanged(int hideMode); + void HideStateChanged(int hideState); + void PositionChanged(int Position); + void WindowSizeEfficientChanged(uint size); + void WindowSizeFashionChanged(uint size); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor.cpp new file mode 100644 index 0000000..9c8ef48 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor.cpp @@ -0,0 +1,19 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dde-clipboard-daemon/protocol/wlr-data-control-unstable-v1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1.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-clipboard/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + diff --git a/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor.h b/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor.h new file mode 100644 index 0000000..b9fbc62 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor.h @@ -0,0 +1,27 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-clipboard/dde-clipboard-daemon/protocol/wlr-data-control-unstable-v1.xml -a ./dde-clipboard/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1Adaptor -i ./dde-clipboard/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1.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 WLR-DATA-CONTROL-UNSTABLE-V1ADAPTOR_H +#define WLR-DATA-CONTROL-UNSTABLE-V1ADAPTOR_H + +#include +#include +#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/wlr-data-control-unstable-v1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +#endif