Skip to content
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 @@ -38,3 +38,8 @@ License: CC0-1.0
Files: *.ts .tx/*
Copyright: None
License: CC0-1.0

Files: toolGenerate/**/*
Copyright: None
License: CC0-1.0

61 changes: 61 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor.cpp
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 ./deepin-service-manager/src/demo/plugin-qt/demo2/org.deepin.service.demo2a.xml -a ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor -i ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2a.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 "./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor.h"

Check warning on line 11 in toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor.h" not found.
#include <QtCore/QMetaObject>

Check warning on line 12 in toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor.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.service.demo2aAdaptor.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.service.demo2aAdaptor.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.service.demo2aAdaptor.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.service.demo2aAdaptor.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.service.demo2aAdaptor.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.service.demo2aAdaptor.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 Demo2aAdaptor
*/

Demo2aAdaptor::Demo2aAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}

Demo2aAdaptor::~Demo2aAdaptor()
{
// destructor
}

QString Demo2aAdaptor::msg() const
{
// get the value of property msg
return qvariant_cast< QString >(parent()->property("msg"));
}

void Demo2aAdaptor::setMsg(const QString &value)
{
// set the value of property msg
parent()->setProperty("msg", QVariant::fromValue(value));
}

QString Demo2aAdaptor::Hello()
{
// handle method call org.deepin.service.demo2a.Hello
QString out0;
QMetaObject::invokeMethod(parent(), "Hello", Q_RETURN_ARG(QString, out0));
return out0;
}

bool Demo2aAdaptor::Register(const QString &id, QString &result2)
{
// handle method call org.deepin.service.demo2a.Register
//return static_cast<YourObjectType *>(parent())->Register(id, result2);
}

62 changes: 62 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./deepin-service-manager/src/demo/plugin-qt/demo2/org.deepin.service.demo2a.xml -a ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2aAdaptor -i ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2a.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_SERVICE_DEMO2AADAPTOR_H
#define ORG_DEEPIN_SERVICE_DEMO2AADAPTOR_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2a.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.service.demo2a
*/
class Demo2aAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.service.demo2a")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.service.demo2a\">\n"
" <method name=\"Hello\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"Register\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result2\"/>\n"
" </method>\n"
" <property access=\"readwrite\" type=\"s\" name=\"msg\"/>\n"
" </interface>\n"
"")
public:
Demo2aAdaptor(QObject *parent);
virtual ~Demo2aAdaptor();

public: // PROPERTIES
Q_PROPERTY(QString msg READ msg WRITE setMsg)
QString msg() const;
void setMsg(const QString &value);

public Q_SLOTS: // METHODS
QString Hello();
bool Register(const QString &id, QString &result2);
Q_SIGNALS: // SIGNALS
};

#endif
99 changes: 99 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./deepin-service-manager/src/demo/plugin-qt/demo2/org.deepin.service.demo2b.xml -a ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor -i ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2b.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 "./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor.h"

Check warning on line 11 in toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor.h" not found.
#include <QtCore/QMetaObject>

Check warning on line 12 in toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor.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 Demo2bAdaptor
*/

Demo2bAdaptor::Demo2bAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}

Demo2bAdaptor::~Demo2bAdaptor()
{
// destructor
}

uint Demo2bAdaptor::age() const
{
// get the value of property Age
return qvariant_cast< uint >(parent()->property("Age"));
}

void Demo2bAdaptor::setAge(uint value)
{
// set the value of property Age
parent()->setProperty("Age", QVariant::fromValue(value));
}

bool Demo2bAdaptor::locked() const
{
// get the value of property Locked
return qvariant_cast< bool >(parent()->property("Locked"));
}

AreaList Demo2bAdaptor::areas() const
{
// get the value of property areas
return qvariant_cast< AreaList >(parent()->property("areas"));
}

void Demo2bAdaptor::setAreas(AreaList value)
{
// set the value of property areas
parent()->setProperty("areas", QVariant::fromValue(value));
}

QString Demo2bAdaptor::msg() const
{
// get the value of property msg
return qvariant_cast< QString >(parent()->property("msg"));
}

void Demo2bAdaptor::setMsg(const QString &value)
{
// set the value of property msg
parent()->setProperty("msg", QVariant::fromValue(value));
}

QString Demo2bAdaptor::Hello()
{
// handle method call org.deepin.service.demo2b.Hello
QString out0;
QMetaObject::invokeMethod(parent(), "Hello", Q_RETURN_ARG(QString, out0));
return out0;
}

bool Demo2bAdaptor::Register(const QString &id, QString &result2)
{
// handle method call org.deepin.service.demo2b.Register
//return static_cast<YourObjectType *>(parent())->Register(id, result2);
}

bool Demo2bAdaptor::SetArea(const QString &id, AreaList area)
{
// handle method call org.deepin.service.demo2b.SetArea
bool result;
QMetaObject::invokeMethod(parent(), "SetArea", Q_RETURN_ARG(bool, result), Q_ARG(QString, id), Q_ARG(AreaList, area));
return result;
}

95 changes: 95 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./deepin-service-manager/src/demo/plugin-qt/demo2/org.deepin.service.demo2b.xml -a ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2bAdaptor -i ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2b.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_SERVICE_DEMO2BADAPTOR_H
#define ORG_DEEPIN_SERVICE_DEMO2BADAPTOR_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.demo2b.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.service.demo2b
*/
class Demo2bAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.deepin.service.demo2b")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.deepin.service.demo2b\">\n"
" <method name=\"Hello\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" </method>\n"
" <method name=\"Register\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"result2\"/>\n"
" </method>\n"
" <method name=\"SetArea\">\n"
" <arg direction=\"in\" type=\"s\" name=\"id\"/>\n"
" <arg direction=\"in\" type=\"a(iiii)\" name=\"area\"/>\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" <annotation value=\"AreaList\" name=\"org.qtproject.QtDBus.QtTypeName.In1\"/>\n"
" </method>\n"
" <signal name=\"Tick\"/>\n"
" <signal name=\"AreaTestSig\">\n"
" <arg type=\"s\" name=\"id\"/>\n"
" <arg type=\"a(iiii)\" name=\"aaa\"/>\n"
" <annotation value=\"AreaList\" name=\"org.qtproject.QtDBus.QtTypeName.In1\"/>\n"
" </signal>\n"
" <property access=\"read\" type=\"b\" name=\"Locked\"/>\n"
" <property access=\"readwrite\" type=\"u\" name=\"Age\">\n"
" <annotation value=\"const\" name=\"org.freedesktop.DBus.Property.EmitsChangedSignal\"/>\n"
" </property>\n"
" <property access=\"readwrite\" type=\"s\" name=\"msg\"/>\n"
" <property access=\"readwrite\" type=\"a(iiii)\" name=\"areas\">\n"
" <annotation value=\"AreaList\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" </interface>\n"
"")
public:
Demo2bAdaptor(QObject *parent);
virtual ~Demo2bAdaptor();

public: // PROPERTIES
Q_PROPERTY(uint Age READ age WRITE setAge)
uint age() const;
void setAge(uint value);

Q_PROPERTY(bool Locked READ locked)
bool locked() const;

Q_PROPERTY(AreaList areas READ areas WRITE setAreas)
AreaList areas() const;
void setAreas(AreaList value);

Q_PROPERTY(QString msg READ msg WRITE setMsg)
QString msg() const;
void setMsg(const QString &value);

public Q_SLOTS: // METHODS
QString Hello();
bool Register(const QString &id, QString &result2);
bool SetArea(const QString &id, AreaList area);
Q_SIGNALS: // SIGNALS
void AreaTestSig(const QString &id, AreaList aaa);
void Tick();
};

#endif
61 changes: 61 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.deepin.service.sdk.demoAdaptor.cpp
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 ./deepin-service-manager/src/demo/libqdbusservice-demo/org.deepin.service.sdk.demo.xml -a ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.sdk.demoAdaptor -i ./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.sdk.demo.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 "./deepin-service-manager/toolGenerate/qdbusxml2cpp/org.deepin.service.sdk.demoAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
* Implementation of adaptor class DemoAdaptor
*/

DemoAdaptor::DemoAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}

DemoAdaptor::~DemoAdaptor()
{
// destructor
}

QString DemoAdaptor::msg() const
{
// get the value of property msg
return qvariant_cast< QString >(parent()->property("msg"));
}

void DemoAdaptor::setMsg(const QString &value)
{
// set the value of property msg
parent()->setProperty("msg", QVariant::fromValue(value));
}

QString DemoAdaptor::Hello()
{
// handle method call org.deepin.service.sdk.demo.Hello
QString out0;
QMetaObject::invokeMethod(parent(), "Hello", Q_RETURN_ARG(QString, out0));
return out0;
}

bool DemoAdaptor::Register(const QString &id, QString &result2)
{
// handle method call org.deepin.service.sdk.demo.Register
//return static_cast<YourObjectType *>(parent())->Register(id, result2);
}

Loading
Loading