Skip to content

Commit dbfa64d

Browse files
committed
feat:Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp Log: Add files generated by qdbusXML2cpp and DCONG2cpp
1 parent 90dedac commit dbfa64d

File tree

4 files changed

+455
-0
lines changed

4 files changed

+455
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/*
2+
* This file was generated by qdbusxml2cpp version 0.8
3+
* Command line was: qdbusxml2cpp ./qt5platform-plugins/misc/com.deepin.im.xml -a ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor -i ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.h
4+
*
5+
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
6+
*
7+
* This is an auto-generated file.
8+
* Do not edit! All changes made to it will be lost.
9+
*/
10+
11+
#include "./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor.h"
12+
#include <QtCore/QMetaObject>
13+
#include <QtCore/QByteArray>
14+
#include <QtCore/QList>
15+
#include <QtCore/QMap>
16+
#include <QtCore/QString>
17+
#include <QtCore/QStringList>
18+
#include <QtCore/QVariant>
19+
20+
/*
21+
* Implementation of adaptor class ImAdaptor
22+
*/
23+
24+
ImAdaptor::ImAdaptor(QObject *parent)
25+
: QDBusAbstractAdaptor(parent)
26+
{
27+
// constructor
28+
setAutoRelaySignals(true);
29+
}
30+
31+
ImAdaptor::~ImAdaptor()
32+
{
33+
// destructor
34+
}
35+
36+
QRect ImAdaptor::geometry() const
37+
{
38+
// get the value of property geometry
39+
return qvariant_cast< QRect >(parent()->property("geometry"));
40+
}
41+
42+
bool ImAdaptor::imActive() const
43+
{
44+
// get the value of property imActive
45+
return qvariant_cast< bool >(parent()->property("imActive"));
46+
}
47+
48+
void ImAdaptor::setImActive(bool value)
49+
{
50+
// set the value of property imActive
51+
parent()->setProperty("imActive", QVariant::fromValue(value));
52+
}
53+
54+
bool ImAdaptor::imSignalLock() const
55+
{
56+
// get the value of property imSignalLock
57+
return qvariant_cast< bool >(parent()->property("imSignalLock"));
58+
}
59+
60+
void ImAdaptor::setImSignalLock(bool value)
61+
{
62+
// set the value of property imSignalLock
63+
parent()->setProperty("imSignalLock", QVariant::fromValue(value));
64+
}
65+
66+
void ImAdaptor::setKeyboardHeight(int h)
67+
{
68+
// handle method call com.deepin.im.setKeyboardHeight
69+
QMetaObject::invokeMethod(parent(), "setKeyboardHeight", Q_ARG(int, h));
70+
}
71+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/*
2+
* This file was generated by qdbusxml2cpp version 0.8
3+
* Command line was: qdbusxml2cpp ./qt5platform-plugins/misc/com.deepin.im.xml -a ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.imAdaptor -i ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.h
4+
*
5+
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
6+
*
7+
* This is an auto-generated file.
8+
* This file may have been hand-edited. Look for HAND-EDIT comments
9+
* before re-generating it.
10+
*/
11+
12+
#ifndef COM_DEEPIN_IMADAPTOR_H
13+
#define COM_DEEPIN_IMADAPTOR_H
14+
15+
#include <QtCore/QObject>
16+
#include <QtDBus/QtDBus>
17+
#include "./qt5platform-plugins/toolGenerate/qdbusxml2cpp/com.deepin.im.h"
18+
QT_BEGIN_NAMESPACE
19+
class QByteArray;
20+
template<class T> class QList;
21+
template<class Key, class Value> class QMap;
22+
class QString;
23+
class QStringList;
24+
class QVariant;
25+
QT_END_NAMESPACE
26+
27+
/*
28+
* Adaptor class for interface com.deepin.im
29+
*/
30+
class ImAdaptor: public QDBusAbstractAdaptor
31+
{
32+
Q_OBJECT
33+
Q_CLASSINFO("D-Bus Interface", "com.deepin.im")
34+
Q_CLASSINFO("D-Bus Introspection", ""
35+
" <interface name=\"com.deepin.im\">\n"
36+
" <property access=\"read\" type=\"(iiii)\" name=\"geometry\">\n"
37+
" <annotation value=\"QRect\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
38+
" </property>\n"
39+
" <property access=\"readwrite\" type=\"b\" name=\"imActive\"/>\n"
40+
" <property access=\"readwrite\" type=\"b\" name=\"imSignalLock\"/>\n"
41+
" <signal name=\"geometryChanged\">\n"
42+
" <arg direction=\"out\" type=\"(iiii)\" name=\"rect\"/>\n"
43+
" <annotation value=\"QRect\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
44+
" </signal>\n"
45+
" <signal name=\"imActiveChanged\">\n"
46+
" <arg direction=\"out\" type=\"b\" name=\"is\"/>\n"
47+
" </signal>\n"
48+
" <signal name=\"imSignalLockChanged\">\n"
49+
" <arg direction=\"out\" type=\"b\" name=\"is\"/>\n"
50+
" </signal>\n"
51+
" <method name=\"setKeyboardHeight\">\n"
52+
" <arg direction=\"in\" type=\"i\" name=\"h\"/>\n"
53+
" </method>\n"
54+
" </interface>\n"
55+
"")
56+
public:
57+
ImAdaptor(QObject *parent);
58+
virtual ~ImAdaptor();
59+
60+
public: // PROPERTIES
61+
Q_PROPERTY(QRect geometry READ geometry)
62+
QRect geometry() const;
63+
64+
Q_PROPERTY(bool imActive READ imActive WRITE setImActive)
65+
bool imActive() const;
66+
void setImActive(bool value);
67+
68+
Q_PROPERTY(bool imSignalLock READ imSignalLock WRITE setImSignalLock)
69+
bool imSignalLock() const;
70+
void setImSignalLock(bool value);
71+
72+
public Q_SLOTS: // METHODS
73+
void setKeyboardHeight(int h);
74+
Q_SIGNALS: // SIGNALS
75+
void geometryChanged(const QRect &rect);
76+
void imActiveChanged(bool is);
77+
void imSignalLockChanged(bool is);
78+
};
79+
80+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
/*
2+
* This file was generated by qdbusxml2cpp version 0.8
3+
* Command line was: qdbusxml2cpp ./qt5platform-plugins/misc/org.freedesktop.DBus.xml -a ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.h
4+
*
5+
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
6+
*
7+
* This is an auto-generated file.
8+
* Do not edit! All changes made to it will be lost.
9+
*/
10+
11+
#include "./qt5platform-plugins/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h"
12+
#include <QtCore/QMetaObject>
13+
#include <QtCore/QByteArray>
14+
#include <QtCore/QList>
15+
#include <QtCore/QMap>
16+
#include <QtCore/QString>
17+
#include <QtCore/QStringList>
18+
#include <QtCore/QVariant>
19+
20+
/*
21+
* Implementation of adaptor class DBusAdaptor
22+
*/
23+
24+
DBusAdaptor::DBusAdaptor(QObject *parent)
25+
: QDBusAbstractAdaptor(parent)
26+
{
27+
// constructor
28+
setAutoRelaySignals(true);
29+
}
30+
31+
DBusAdaptor::~DBusAdaptor()
32+
{
33+
// destructor
34+
}
35+
36+
void DBusAdaptor::AddMatch(const QString &in0)
37+
{
38+
// handle method call org.freedesktop.DBus.AddMatch
39+
QMetaObject::invokeMethod(parent(), "AddMatch", Q_ARG(QString, in0));
40+
}
41+
42+
QByteArray DBusAdaptor::GetAdtAuditSessionData(const QString &in0)
43+
{
44+
// handle method call org.freedesktop.DBus.GetAdtAuditSessionData
45+
QByteArray out0;
46+
QMetaObject::invokeMethod(parent(), "GetAdtAuditSessionData", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, in0));
47+
return out0;
48+
}
49+
50+
QByteArray DBusAdaptor::GetConnectionSELinuxSecurityContext(const QString &in0)
51+
{
52+
// handle method call org.freedesktop.DBus.GetConnectionSELinuxSecurityContext
53+
QByteArray out0;
54+
QMetaObject::invokeMethod(parent(), "GetConnectionSELinuxSecurityContext", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, in0));
55+
return out0;
56+
}
57+
58+
uint DBusAdaptor::GetConnectionUnixProcessID(const QString &in0)
59+
{
60+
// handle method call org.freedesktop.DBus.GetConnectionUnixProcessID
61+
uint out0;
62+
QMetaObject::invokeMethod(parent(), "GetConnectionUnixProcessID", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0));
63+
return out0;
64+
}
65+
66+
uint DBusAdaptor::GetConnectionUnixUser(const QString &in0)
67+
{
68+
// handle method call org.freedesktop.DBus.GetConnectionUnixUser
69+
uint out0;
70+
QMetaObject::invokeMethod(parent(), "GetConnectionUnixUser", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0));
71+
return out0;
72+
}
73+
74+
QString DBusAdaptor::GetId()
75+
{
76+
// handle method call org.freedesktop.DBus.GetId
77+
QString out0;
78+
QMetaObject::invokeMethod(parent(), "GetId", Q_RETURN_ARG(QString, out0));
79+
return out0;
80+
}
81+
82+
QString DBusAdaptor::GetNameOwner(const QString &in0)
83+
{
84+
// handle method call org.freedesktop.DBus.GetNameOwner
85+
QString out0;
86+
QMetaObject::invokeMethod(parent(), "GetNameOwner", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0));
87+
return out0;
88+
}
89+
90+
QString DBusAdaptor::Hello()
91+
{
92+
// handle method call org.freedesktop.DBus.Hello
93+
QString out0;
94+
QMetaObject::invokeMethod(parent(), "Hello", Q_RETURN_ARG(QString, out0));
95+
return out0;
96+
}
97+
98+
QStringList DBusAdaptor::ListActivatableNames()
99+
{
100+
// handle method call org.freedesktop.DBus.ListActivatableNames
101+
QStringList out0;
102+
QMetaObject::invokeMethod(parent(), "ListActivatableNames", Q_RETURN_ARG(QStringList, out0));
103+
return out0;
104+
}
105+
106+
QStringList DBusAdaptor::ListNames()
107+
{
108+
// handle method call org.freedesktop.DBus.ListNames
109+
QStringList out0;
110+
QMetaObject::invokeMethod(parent(), "ListNames", Q_RETURN_ARG(QStringList, out0));
111+
return out0;
112+
}
113+
114+
QStringList DBusAdaptor::ListQueuedOwners(const QString &in0)
115+
{
116+
// handle method call org.freedesktop.DBus.ListQueuedOwners
117+
QStringList out0;
118+
QMetaObject::invokeMethod(parent(), "ListQueuedOwners", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, in0));
119+
return out0;
120+
}
121+
122+
bool DBusAdaptor::NameHasOwner(const QString &in0)
123+
{
124+
// handle method call org.freedesktop.DBus.NameHasOwner
125+
bool out0;
126+
QMetaObject::invokeMethod(parent(), "NameHasOwner", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0));
127+
return out0;
128+
}
129+
130+
uint DBusAdaptor::ReleaseName(const QString &in0)
131+
{
132+
// handle method call org.freedesktop.DBus.ReleaseName
133+
uint out0;
134+
QMetaObject::invokeMethod(parent(), "ReleaseName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0));
135+
return out0;
136+
}
137+
138+
void DBusAdaptor::ReloadConfig()
139+
{
140+
// handle method call org.freedesktop.DBus.ReloadConfig
141+
QMetaObject::invokeMethod(parent(), "ReloadConfig");
142+
}
143+
144+
void DBusAdaptor::RemoveMatch(const QString &in0)
145+
{
146+
// handle method call org.freedesktop.DBus.RemoveMatch
147+
QMetaObject::invokeMethod(parent(), "RemoveMatch", Q_ARG(QString, in0));
148+
}
149+
150+
uint DBusAdaptor::RequestName(const QString &in0, uint in1)
151+
{
152+
// handle method call org.freedesktop.DBus.RequestName
153+
uint out0;
154+
QMetaObject::invokeMethod(parent(), "RequestName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1));
155+
return out0;
156+
}
157+
158+
uint DBusAdaptor::StartServiceByName(const QString &in0, uint in1)
159+
{
160+
// handle method call org.freedesktop.DBus.StartServiceByName
161+
uint out0;
162+
QMetaObject::invokeMethod(parent(), "StartServiceByName", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1));
163+
return out0;
164+
}
165+

0 commit comments

Comments
 (0)