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 #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@ License: LGPL-2.1-only or GPL-3.0-only
Files: xcb/libqt5xcbqpa-dev/5.1*.*/* xcb/libqt6xcbqpa-dev/6.*.*/*
Copyright: The Qt Company Ltd.
License: LicenseRef-Qt-Commercial or LGPL-3.0-only or GPL-2.0-only or GPL-3.0-or-later

Files: toolGenerate/**/*
Copyright: None
License: CC0-1.0
71 changes: 71 additions & 0 deletions toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./qt6platform-plugins/misc/com.deepin.im.xml -a ./qt6platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor -i ./qt6platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.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 "./qt6platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h"

Check warning on line 11 in toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "./qt6platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h" not found.
#include <QtCore/QMetaObject>

Check warning on line 12 in toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.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/com.deepin.imAdaptor.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/com.deepin.imAdaptor.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/com.deepin.imAdaptor.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/com.deepin.imAdaptor.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/com.deepin.imAdaptor.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/com.deepin.imAdaptor.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 ImAdaptor
*/

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

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

QRect ImAdaptor::geometry() const
{
// get the value of property geometry
return qvariant_cast< QRect >(parent()->property("geometry"));
}

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

void ImAdaptor::setImActive(bool value)
{
// set the value of property imActive
parent()->setProperty("imActive", QVariant::fromValue(value));
}

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

void ImAdaptor::setImSignalLock(bool value)
{
// set the value of property imSignalLock
parent()->setProperty("imSignalLock", QVariant::fromValue(value));
}

void ImAdaptor::setKeyboardHeight(int h)
{
// handle method call com.deepin.im.setKeyboardHeight
QMetaObject::invokeMethod(parent(), "setKeyboardHeight", Q_ARG(int, h));
}

80 changes: 80 additions & 0 deletions toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./qt6platform-plugins/misc/com.deepin.im.xml -a ./qt6platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor -i ./qt6platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.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_IMADAPTOR_H
#define COM_DEEPIN_IMADAPTOR_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "./qt6platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
QT_END_NAMESPACE

/*
* Adaptor class for interface com.deepin.im
*/
class ImAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "com.deepin.im")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"com.deepin.im\">\n"
" <property access=\"read\" type=\"(iiii)\" name=\"geometry\">\n"
" <annotation value=\"QRect\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"readwrite\" type=\"b\" name=\"imActive\"/>\n"
" <property access=\"readwrite\" type=\"b\" name=\"imSignalLock\"/>\n"
" <signal name=\"geometryChanged\">\n"
" <arg direction=\"out\" type=\"(iiii)\" name=\"rect\"/>\n"
" <annotation value=\"QRect\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
" </signal>\n"
" <signal name=\"imActiveChanged\">\n"
" <arg direction=\"out\" type=\"b\" name=\"is\"/>\n"
" </signal>\n"
" <signal name=\"imSignalLockChanged\">\n"
" <arg direction=\"out\" type=\"b\" name=\"is\"/>\n"
" </signal>\n"
" <method name=\"setKeyboardHeight\">\n"
" <arg direction=\"in\" type=\"i\" name=\"h\"/>\n"
" </method>\n"
" </interface>\n"
"")
public:
ImAdaptor(QObject *parent);
virtual ~ImAdaptor();

public: // PROPERTIES
Q_PROPERTY(QRect geometry READ geometry)
QRect geometry() const;

Q_PROPERTY(bool imActive READ imActive WRITE setImActive)
bool imActive() const;
void setImActive(bool value);

Q_PROPERTY(bool imSignalLock READ imSignalLock WRITE setImSignalLock)
bool imSignalLock() const;
void setImSignalLock(bool value);

public Q_SLOTS: // METHODS
void setKeyboardHeight(int h);
Q_SIGNALS: // SIGNALS
void geometryChanged(const QRect &rect);
void imActiveChanged(bool is);
void imSignalLockChanged(bool is);
};

#endif
165 changes: 165 additions & 0 deletions toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./qt6platform-plugins/misc/org.freedesktop.DBus.xml -a ./qt6platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./qt6platform-plugins/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 "./qt6platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h"

Check warning on line 11 in toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "./qt6platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h" not found.
#include <QtCore/QMetaObject>

Check warning on line 12 in toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.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 DBusAdaptor
*/

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

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

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;
}

Loading
Loading