Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qspi_struct_marshallers.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
6
7#include <atspi/atspi-constants.h>
8#include <QtCore/qdebug.h>
9#include <QtDBus/qdbusmetatype.h>
10
12
13#if QT_CONFIG(accessibility)
15
33
35 : path(QDBusObjectPath(ATSPI_DBUS_PATH_NULL))
36{}
37
38/* QSpiAccessibleCacheArray */
39/*---------------------------------------------------------------------------*/
40
42{
44 argument << item.path;
45 argument << item.application;
46 argument << item.parent;
47 argument << item.children;
48 argument << item.supportedInterfaces;
49 argument << item.name;
50 argument << item.role;
51 argument << item.description;
52 argument << item.state;
54 return argument;
55}
56
58{
60 argument >> item.path;
61 argument >> item.application;
62 argument >> item.parent;
63 argument >> item.children;
64 argument >> item.supportedInterfaces;
65 argument >> item.name;
66 argument >> item.role;
67 argument >> item.description;
68 argument >> item.state;
70 return argument;
71}
72
73/* QSpiObjectReference */
74/*---------------------------------------------------------------------------*/
75
77{
79 argument << address.service;
80 argument << address.path;
82 return argument;
83}
84
86{
88 argument >> address.service;
89 argument >> address.path;
91 return argument;
92}
93
94/* QSpiAction */
95/*---------------------------------------------------------------------------*/
96
98{
100 argument << action.name;
101 argument << action.description;
102 argument << action.keyBinding;
104 return argument;
105}
106
108{
110 argument >> action.name;
111 argument >> action.description;
112 argument >> action.keyBinding;
114 return argument;
115}
116
117
119{
121 argument << ev.listenerAddress;
122 argument << ev.eventName;
124 return argument;
125}
126
128{
130 argument >> ev.listenerAddress;
131 argument >> ev.eventName;
133 return argument;
134}
135
136/* QSpiAppUpdate */
137/*---------------------------------------------------------------------------*/
138
141 argument << update.type << update.address;
143 return argument;
144}
145
148 argument >> update.type >> update.address;
150 return argument;
151}
152
153/* QSpiRelationArrayEntry */
154/*---------------------------------------------------------------------------*/
155
158 argument << entry.first << entry.second;
160 return argument;
161}
162
165 argument >> entry.first >> entry.second;
167 return argument;
168}
169
170/* QSpiDeviceEvent */
171/*---------------------------------------------------------------------------*/
172
175 argument << event.type
176 << event.id
177 << event.hardwareCode
178 << event.modifiers
179 << event.timestamp
180 << event.text
181 << event.isText;
183 return argument;
184}
185
188 argument >> event.type
189 >> event.id
190 >> event.hardwareCode
191 >> event.modifiers
192 >> event.timestamp
193 >> event.text
194 >> event.isText;
196 return argument;
197}
198
200{
201 qDBusRegisterMetaType<QSpiIntList>();
202 qDBusRegisterMetaType<QSpiUIntList>();
203 qDBusRegisterMetaType<QSpiAccessibleCacheItem>();
204 qDBusRegisterMetaType<QSpiAccessibleCacheArray>();
205 qDBusRegisterMetaType<QSpiObjectReference>();
206 qDBusRegisterMetaType<QSpiObjectReferenceArray>();
207 qDBusRegisterMetaType<QSpiAttributeSet>();
208 qDBusRegisterMetaType<QSpiAction>();
209 qDBusRegisterMetaType<QSpiActionArray>();
210 qDBusRegisterMetaType<QSpiEventListener>();
211 qDBusRegisterMetaType<QSpiEventListenerArray>();
212 qDBusRegisterMetaType<QSpiDeviceEvent>();
213 qDBusRegisterMetaType<QSpiAppUpdate>();
214 qDBusRegisterMetaType<QSpiRelationArrayEntry>();
215 qDBusRegisterMetaType<QSpiRelationArray>();
216}
217
219#endif // QT_CONFIG(accessibility)
\inmodule QtDBus
void beginStructure()
Opens a new D-Bus structure suitable for appending new arguments.
void endStructure()
Closes a D-Bus structure opened with beginStructure().
\inmodule QtDBus
Combined button and popup list for selecting options.
#define QT_IMPL_METATYPE_EXTERN(TYPE)
Definition qmetatype.h:1390
struct _cl_event * event
GLuint entry
GLuint GLuint64EXT address
GLsizei const GLchar *const * path
QList< QSpiAccessibleCacheItem > QSpiAccessibleCacheArray
QList< QSpiTextRange > QSpiTextRangeList
QList< QSpiRelationArrayEntry > QSpiRelationArray
void qSpiInitializeStructTypes()
QList< QSpiAction > QSpiActionArray
QList< QSpiEventListener > QSpiEventListenerArray
QPair< unsigned int, QSpiObjectReferenceArray > QSpiRelationArrayEntry
QDataStream & operator<<(QDataStream &out, const MyClass &myObj)
[4]
QDataStream & operator>>(QDataStream &in, MyClass &myObj)
QGraphicsItem * item
QDBusArgument argument