5#include <QDBusArgument>
6#include <QDBusMetaType>
22 Q_CLASSINFO(
"D-Bus Interface",
"org.qtproject.QtDBus.MyObject")
24" <interface name=\"org.qtproject.QtDBus.MyObject\" >\n"
25" <property access=\"readwrite\" type=\"i\" name=\"prop1\" />\n"
26" <property name=\"complexProp\" type=\"ai\" access=\"readwrite\">\n"
27" <annotation name=\"org.qtproject.QtDBus.QtTypeName\" value=\"QList<int>\"/>\n"
29" <signal name=\"somethingHappened\" >\n"
30" <arg direction=\"out\" type=\"s\" />\n"
32" <method name=\"ping\" >\n"
33" <arg direction=\"in\" type=\"v\" name=\"ping\" />\n"
34" <arg direction=\"out\" type=\"v\" name=\"ping\" />\n"
36" <method name=\"ping_invokable\" >\n"
37" <arg direction=\"in\" type=\"v\" name=\"ping_invokable\" />\n"
38" <arg direction=\"out\" type=\"v\" name=\"ping_invokable\" />\n"
40" <method name=\"ping\" >\n"
41" <arg direction=\"in\" type=\"v\" name=\"ping1\" />\n"
42" <arg direction=\"in\" type=\"v\" name=\"ping2\" />\n"
43" <arg direction=\"out\" type=\"v\" name=\"pong1\" />\n"
44" <arg direction=\"out\" type=\"v\" name=\"pong2\" />\n"
46" <method name=\"ping_invokable\" >\n"
47" <arg direction=\"in\" type=\"v\" name=\"ping1_invokable\" />\n"
48" <arg direction=\"in\" type=\"v\" name=\"ping2_invokable\" />\n"
49" <arg direction=\"out\" type=\"v\" name=\"pong1_invokable\" />\n"
50" <arg direction=\"out\" type=\"v\" name=\"pong2_invokable\" />\n"
52" <method name=\"ping\" >\n"
53" <arg direction=\"in\" type=\"ai\" name=\"ping\" />\n"
54" <arg direction=\"out\" type=\"ai\" name=\"ping\" />\n"
55" <annotation name=\"org.qtproject.QtDBus.QtTypeName.In0\" value=\"QList<int>\"/>\n"
56" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"QList<int>\"/>\n"
58" <method name=\"ping_invokable\" >\n"
59" <arg direction=\"in\" type=\"ai\" name=\"ping_invokable\" />\n"
60" <arg direction=\"out\" type=\"ai\" name=\"ping_invokable\" />\n"
61" <annotation name=\"org.qtproject.QtDBus.QtTypeName.In0\" value=\"QList<int>\"/>\n"
62" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"QList<int>\"/>\n"
66 Q_PROPERTY(
int prop1 READ prop1 WRITE setProp1)
104 argument << myStruct.count << myStruct.name;
132qDBusRegisterMetaType<MyStructure>();
187 for (
const auto &element : myArray)
198 argument.
beginMap(QMetaType::fromType<int>(), QMetaType::fromType<MyValue>());
void beginMapEntry()
Opens a D-Bus map entry suitable for appending the key and value entries.
void endArray()
Closes a D-Bus array opened with beginArray().
void endMapEntry()
Closes a D-Bus map entry opened with beginMapEntry().
void beginStructure()
Opens a new D-Bus structure suitable for appending new arguments.
void endMap()
Closes a D-Bus map opened with beginMap().
bool atEnd() const
Returns true if there are no more elements to be extracted from this QDBusArgument.
void endStructure()
Closes a D-Bus structure opened with beginStructure().
void beginArray(int elementMetaTypeId)
void beginMap(int keyMetaTypeId, int valueMetaTypeId)
const_iterator cbegin() const noexcept
const_iterator cend() const noexcept
void clear() noexcept(std::is_nothrow_destructible< Node >::value)
Removes all items from the hash and frees up all memory used by it.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
void append(parameter_type t)
Q_WEAK_OVERLOAD void setObjectName(const QString &name)
Sets the object's name to name.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QDBusArgument & operator<<(QDBusArgument &argument, const MyStructure &myStruct)
[5]
QDBusArgument & operator<<(QDBusArgument &argument, const MyStructure &myStruct)
[4]
const QDBusArgument & operator>>(const QDBusArgument &argument, MyStructure &myStruct)
[7]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
const QDBusArgument & operator>>(const QDBusArgument &argument, MyStructure &myStruct)
QDBusArgument & operator<<(QDBusArgument &argument, const MyStructure &myStruct)
QHash< int, MyElement > MyDictionary
void registerMyStructure()
QList< MyElement > MyArray