Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files generated by qdbusXML2cpp and DCONG2cpp #185

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -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
59 changes: 59 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp
Original file line number Diff line number Diff line change
@@ -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"

Check warning on line 11 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.h" not found.
#include <QtCore/QMetaObject>

Check warning on line 12 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QMetaObject> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QtCore/QByteArray>

Check warning on line 13 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QByteArray> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QtCore/QList>

Check warning on line 14 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QList> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QtCore/QMap>

Check warning on line 15 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QMap> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QtCore/QString>

Check warning on line 16 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QString> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QtCore/QStringList>

Check warning on line 17 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QStringList> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QtCore/QVariant>

Check warning on line 18 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QVariant> not found. Please note: Cppcheck does not need standard library headers to get proper results.

/*
* 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");
}

61 changes: 61 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1Adaptor.h
Original file line number Diff line number Diff line change
@@ -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 <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Clipboard1.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
QT_END_NAMESPACE

/*
* Adaptor class for interface org.deepin.dde.Clipboard1
*/
class Clipboard1Adaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Clipboard1")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.dde.Clipboard1\">\n"
" <method name=\"Toggle\"/>\n"
" <method name=\"Show\"/>\n"
" <method name=\"Hide\"/>\n"
" <property access=\"read\" type=\"b\" name=\"clipboardVisible\"/>\n"
" <signal name=\"clipboardVisibleChanged\">\n"
" <arg type=\"b\" name=\"visible\"/>\n"
" </signal>\n"
" </interface>\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
209 changes: 209 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp
Original file line number Diff line number Diff line change
@@ -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"

Check warning on line 11 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "./dde-clipboard/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h" not found.
#include <QtCore/QMetaObject>

Check warning on line 12 in toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QtCore/QMetaObject> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
* 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));
}

Loading
Loading