-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp Log: Add files generated by qdbusXML2cpp and DCONG2cpp
- Loading branch information
1 parent
fd51f24
commit 10a8594
Showing
5 changed files
with
459 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
#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 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)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
165
toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
#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 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; | ||
} | ||
|
Oops, something went wrong.