Qt Accessibility Client

qt-atspi.cpp
1/*
2 SPDX-FileCopyrightText: 2012 Frederik Gladhorn <gladhorn@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "qt-atspi.h"
8#include <QDBusMetaType>
9
10namespace QAccessibleClient {
11
12void registerDBusTypes()
13{
14 qRegisterMetaType<QAccessibleClient::QSpiObjectReference>();
15 qDBusRegisterMetaType<QAccessibleClient::QSpiObjectReference>();
16
17 qRegisterMetaType<QAccessibleClient::QSpiObjectReferenceList>();
18 qDBusRegisterMetaType<QAccessibleClient::QSpiObjectReferenceList>();
19
20 qRegisterMetaType<QAccessibleClient::QSpiAction>();
21 qDBusRegisterMetaType<QAccessibleClient::QSpiAction>();
22
23 qRegisterMetaType<QAccessibleClient::QSpiActionArray>();
24 qDBusRegisterMetaType<QAccessibleClient::QSpiActionArray>();
25}
26
27/* QSpiObjectReference */
28/*---------------------------------------------------------------------------*/
29
31{
32 argument.beginStructure();
33 argument << address.service;
34 argument << address.path;
35 argument.endStructure();
36 return argument;
37}
38
40{
41 argument.beginStructure();
42 argument >> address.service;
43 argument >> address.path;
44 argument.endStructure();
45 return argument;
46}
47
48QDBusArgument &operator<<(QDBusArgument &argument, const QAccessibleClient::QSpiAction &action)
49{
50 argument.beginStructure();
51 argument << action.name;
52 argument << action.description;
53 argument << action.keyBinding;
54 argument.endStructure();
55 return argument;
56}
57
58const QDBusArgument &operator>>(const QDBusArgument &argument, QAccessibleClient::QSpiAction &action)
59{
60 argument.beginStructure();
61 argument >> action.name;
62 argument >> action.description;
63 argument >> action.keyBinding;
64 argument.endStructure();
65 return argument;
66}
67
68}
69QDebug operator<<(QDebug d, const QAccessibleClient::QSpiAction &t)
70{
71 d << "name " << t.name;
72 d << "description " << t.description;
73 d << "keyBinding " << t.keyBinding;
74 return d;
75}
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
PostalAddress address(const QVariant &location)
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor &cursor)
void beginStructure()
void endStructure()
The QSpiObjectReference struct is a dbus service and path representing a remote accessible object.
Definition qt-atspi.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:57:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.