qdbusmetatype.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbusmetatype.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtDBus module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qdbusmetatype.h"-
41#include "qdbusmetatype_p.h"-
42-
43#include <string.h>-
44#include "qdbus_symbols_p.h"-
45-
46#include <qbytearray.h>-
47#include <qglobal.h>-
48#include <qreadwritelock.h>-
49#include <qvector.h>-
50-
51#include "qdbusargument_p.h"-
52#include "qdbusutil_p.h"-
53#include "qdbusunixfiledescriptor.h"-
54#ifndef QT_BOOTSTRAPPED-
55#include "qdbusmessage.h"-
56#endif-
57-
58#ifndef QT_NO_DBUS-
59-
60#ifndef DBUS_TYPE_UNIX_FD-
61# define DBUS_TYPE_UNIX_FD int('h')-
62# define DBUS_TYPE_UNIX_FD_AS_STRING "h"-
63#endif-
64-
65QT_BEGIN_NAMESPACE-
66-
67class QDBusCustomTypeInfo-
68{-
69public:-
70 QDBusCustomTypeInfo() : signature(), marshall(0), demarshall(0)-
71 { }
executed 385518 times by 164 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
385518
72-
73 // Suggestion:-
74 // change 'signature' to char* and make QDBusCustomTypeInfo a Movable type-
75 QByteArray signature;-
76 QDBusMetaType::MarshallFunction marshall;-
77 QDBusMetaType::DemarshallFunction demarshall;-
78};-
79-
80template<typename T>-
81inline static void registerHelper(T * = 0)-
82{-
83 void (*mf)(QDBusArgument &, const T *) = qDBusMarshallHelper<T>;-
84 void (*df)(const QDBusArgument &, T *) = qDBusDemarshallHelper<T>;-
85 QDBusMetaType::registerMarshallOperators(qMetaTypeId<T>(),-
86 reinterpret_cast<QDBusMetaType::MarshallFunction>(mf),-
87 reinterpret_cast<QDBusMetaType::DemarshallFunction>(df));-
88}
executed 5166 times by 164 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
5166
89-
90void QDBusMetaTypeId::init()-
91{-
92 static QBasicAtomicInt initialized = Q_BASIC_ATOMIC_INITIALIZER(false);-
93-
94 // reentrancy is not a problem since everything else is locked on their own-
95 // set the guard variable at the end-
96 if (!initialized.load()) {
!initialized.load()Description
TRUEevaluated 369 times by 164 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 29101 times by 180 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
369-29101
97 // register our types with Qt Core (calling qMetaTypeId<T>() does this implicitly)-
98 (void)message();-
99 (void)argument();-
100 (void)variant();-
101 (void)objectpath();-
102 (void)signature();-
103 (void)error();-
104 (void)unixfd();-
105-
106#ifndef QDBUS_NO_SPECIALTYPES-
107 // and register Qt Core's with us-
108 registerHelper<QDate>();-
109 registerHelper<QTime>();-
110 registerHelper<QDateTime>();-
111 registerHelper<QRect>();-
112 registerHelper<QRectF>();-
113 registerHelper<QSize>();-
114 registerHelper<QSizeF>();-
115 registerHelper<QPoint>();-
116 registerHelper<QPointF>();-
117 registerHelper<QLine>();-
118 registerHelper<QLineF>();-
119 registerHelper<QVariantList>();-
120 registerHelper<QVariantMap>();-
121 registerHelper<QVariantHash>();-
122-
123 qDBusRegisterMetaType<QList<bool> >();-
124 qDBusRegisterMetaType<QList<short> >();-
125 qDBusRegisterMetaType<QList<ushort> >();-
126 qDBusRegisterMetaType<QList<int> >();-
127 qDBusRegisterMetaType<QList<uint> >();-
128 qDBusRegisterMetaType<QList<qlonglong> >();-
129 qDBusRegisterMetaType<QList<qulonglong> >();-
130 qDBusRegisterMetaType<QList<double> >();-
131 qDBusRegisterMetaType<QList<QDBusObjectPath> >();-
132 qDBusRegisterMetaType<QList<QDBusSignature> >();-
133 qDBusRegisterMetaType<QList<QDBusUnixFileDescriptor> >();-
134#endif-
135-
136 initialized.store(true);-
137 }
executed 369 times by 164 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
369
138}
executed 29470 times by 182 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
29470
139-
140Q_GLOBAL_STATIC(QVector<QDBusCustomTypeInfo>, customTypes)
executed 370 times by 167 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
executed 370 times by 167 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
executed 21162 times by 182 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 370 times by 167 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEnever evaluated
0-21162
141Q_GLOBAL_STATIC(QReadWriteLock, customTypesLock)
executed 370 times by 167 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
executed 370 times by 167 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
executed 22713 times by 182 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 370 times by 167 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEnever evaluated
0-22713
142-
143/*!-
144 \class QDBusMetaType-
145 \inmodule QtDBus-
146 \brief Meta-type registration system for the Qt D-Bus module.-
147 \internal-
148-
149 The QDBusMetaType class allows you to register class types for-
150 marshalling and demarshalling over D-Bus. D-Bus supports a very-
151 limited set of primitive types, but allows one to extend the type-
152 system by creating compound types, such as arrays (lists) and-
153 structs. In order to use them with Qt D-Bus, those types must be-
154 registered.-
155-
156 See \l {qdbustypesystem.html}{Qt D-Bus Type System} for more-
157 information on the type system and how to register additional-
158 types.-
159-
160 \sa {qdbustypesystem.html}{Qt D-Bus Type System},-
161 qDBusRegisterMetaType(), QMetaType, QVariant, QDBusArgument-
162*/-
163-
164/*!-
165 \fn int qDBusRegisterMetaType()-
166 \relates QDBusArgument-
167 \threadsafe-
168 \since 4.2-
169-
170 Registers \c{T} with the-
171 \l {qdbustypesystem.html}{Qt D-Bus Type System} and the Qt \l-
172 {QMetaType}{meta-type system}, if it's not already registered.-
173-
174 To register a type, it must be declared as a meta-type with the-
175 Q_DECLARE_METATYPE() macro, and then registered as in the-
176 following example:-
177-
178 \snippet code/src_qdbus_qdbusmetatype.cpp 0-
179-
180 If \c{T} isn't one of-
181 Qt's \l{container classes}, the \c{operator<<} and-
182 \c{operator>>} streaming operators between \c{T} and QDBusArgument-
183 must be already declared. See the \l {qdbustypesystem.html}{Qt D-Bus-
184 Type System} page for more information on how to declare such-
185 types.-
186-
187 This function returns the Qt meta type id for the type (the same-
188 value that is returned from qRegisterMetaType()).-
189-
190 \note The feature that a \c{T} inheriting a streamable type (including-
191 the containers QList, QHash or QMap) can be streamed without providing-
192 custom \c{operator<<} and \c{operator>>} is deprecated as of Qt 5.7,-
193 because it ignores everything in \c{T} except the base class. There is-
194 no diagnostic. You should always provide these operators for all types-
195 you wish to stream and not rely on Qt-provided stream operators for-
196 base classes.-
197-
198 \sa {qdbustypesystem.html}{Qt D-Bus Type System}, qRegisterMetaType(), QMetaType-
199*/-
200-
201/*!-
202 \typedef QDBusMetaType::MarshallFunction-
203 \internal-
204*/-
205-
206/*!-
207 \typedef QDBusMetaType::DemarshallFunction-
208 \internal-
209*/-
210-
211/*!-
212 \internal-
213 Registers the marshalling and demarshalling functions for meta-
214 type \a id.-
215*/-
216void QDBusMetaType::registerMarshallOperators(int id, MarshallFunction mf,-
217 DemarshallFunction df)-
218{-
219 QByteArray var;-
220 QVector<QDBusCustomTypeInfo> *ct = customTypes();-
221 if (id < 0 || !mf || !df || !ct)
id < 0Description
TRUEnever evaluated
FALSEevaluated 9454 times by 164 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
!mfDescription
TRUEnever evaluated
FALSEevaluated 9454 times by 164 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
!dfDescription
TRUEnever evaluated
FALSEevaluated 9454 times by 164 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
!ctDescription
TRUEnever evaluated
FALSEevaluated 9454 times by 164 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
0-9454
222 return; // error!
never executed: return;
0
223-
224 QWriteLocker locker(customTypesLock());-
225 if (id >= ct->size())
id >= ct->size()Description
TRUEevaluated 7830 times by 164 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 1624 times by 164 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
1624-7830
226 ct->resize(id + 1);
executed 7830 times by 164 tests: ct->resize(id + 1);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
7830
227 QDBusCustomTypeInfo &info = (*ct)[id];-
228 info.marshall = mf;-
229 info.demarshall = df;-
230}
executed 9454 times by 164 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
9454
231-
232/*!-
233 \internal-
234 Executes the marshalling of type \a id (whose data is contained in-
235 \a data) to the D-Bus marshalling argument \a arg. Returns \c true if-
236 the marshalling succeeded, or false if an error occurred.-
237*/-
238bool QDBusMetaType::marshall(QDBusArgument &arg, int id, const void *data)-
239{-
240 QDBusMetaTypeId::init();-
241-
242 MarshallFunction mf;-
243 {-
244 QReadLocker locker(customTypesLock());-
245 QVector<QDBusCustomTypeInfo> *ct = customTypes();-
246 if (id >= ct->size())
id >= ct->size()Description
TRUEnever evaluated
FALSEevaluated 1860 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
0-1860
247 return false; // non-existent
never executed: return false;
0
248-
249 const QDBusCustomTypeInfo &info = (*ct).at(id);-
250 if (!info.marshall) {
!info.marshallDescription
TRUEnever evaluated
FALSEevaluated 1860 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
0-1860
251 mf = 0; // make gcc happy-
252 return false;
never executed: return false;
0
253 } else-
254 mf = info.marshall;
executed 1860 times by 31 tests: mf = info.marshall;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
1860
255 }-
256-
257 mf(arg, data);-
258 return true;
executed 1860 times by 31 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
1860
259}-
260-
261/*!-
262 \internal-
263 Executes the demarshalling of type \a id (whose data will be placed in-
264 \a data) from the D-Bus marshalling argument \a arg. Returns \c true if-
265 the demarshalling succeeded, or false if an error occurred.-
266*/-
267bool QDBusMetaType::demarshall(const QDBusArgument &arg, int id, void *data)-
268{-
269 QDBusMetaTypeId::init();-
270-
271 DemarshallFunction df;-
272 {-
273 QReadLocker locker(customTypesLock());-
274 QVector<QDBusCustomTypeInfo> *ct = customTypes();-
275 if (id >= ct->size())
id >= ct->size()Description
TRUEnever evaluated
FALSEevaluated 51 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusreply - unknown status
0-51
276 return false; // non-existent
never executed: return false;
0
277-
278 const QDBusCustomTypeInfo &info = (*ct).at(id);-
279 if (!info.demarshall) {
!info.demarshallDescription
TRUEnever evaluated
FALSEevaluated 51 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusreply - unknown status
0-51
280 df = 0; // make gcc happy-
281 return false;
never executed: return false;
0
282 } else-
283 df = info.demarshall;
executed 51 times by 5 tests: df = info.demarshall;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusreply - unknown status
51
284 }-
285#ifndef QT_BOOTSTRAPPED-
286 QDBusArgument copy = arg;-
287 df(copy, data);-
288#else-
289 Q_UNUSED(arg);-
290 Q_UNUSED(data);-
291 Q_UNUSED(df);-
292#endif-
293 return true;
executed 51 times by 5 tests: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusreply - unknown status
51
294}-
295-
296/*!-
297 \fn QDBusMetaType::signatureToType(const char *signature)-
298 \internal-
299-
300 Returns the Qt meta type id for the given D-Bus signature for exactly one full type, given-
301 by \a signature.-
302-
303 Note: this function only handles the basic D-Bus types.-
304-
305 \sa QDBusUtil::isValidSingleSignature(), typeToSignature(),-
306 QVariant::type(), QVariant::userType()-
307*/-
308int QDBusMetaType::signatureToType(const char *signature)-
309{-
310 if (!signature)
!signatureDescription
TRUEnever evaluated
FALSEevaluated 9252 times by 14 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
0-9252
311 return QMetaType::UnknownType;
never executed: return QMetaType::UnknownType;
0
312-
313 QDBusMetaTypeId::init();-
314 switch (signature[0])-
315 {-
316 case DBUS_TYPE_BOOLEAN:
executed 251 times by 6 tests: case ((int) 'b'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
251
317 return QVariant::Bool;
executed 251 times by 6 tests: return QVariant::Bool;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
251
318-
319 case DBUS_TYPE_BYTE:
executed 89 times by 5 tests: case ((int) 'y'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
89
320 return QMetaType::UChar;
executed 89 times by 5 tests: return QMetaType::UChar;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
89
321-
322 case DBUS_TYPE_INT16:
executed 249 times by 6 tests: case ((int) 'n'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
323 return QMetaType::Short;
executed 249 times by 6 tests: return QMetaType::Short;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
324-
325 case DBUS_TYPE_UINT16:
executed 249 times by 6 tests: case ((int) 'q'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
326 return QMetaType::UShort;
executed 249 times by 6 tests: return QMetaType::UShort;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
327-
328 case DBUS_TYPE_INT32:
executed 1143 times by 11 tests: case ((int) 'i'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
1143
329 return QVariant::Int;
executed 1143 times by 11 tests: return QVariant::Int;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
1143
330-
331 case DBUS_TYPE_UINT32:
executed 249 times by 6 tests: case ((int) 'u'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
332 return QVariant::UInt;
executed 249 times by 6 tests: return QVariant::UInt;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
333-
334 case DBUS_TYPE_INT64:
executed 409 times by 6 tests: case ((int) 'x'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
409
335 return QVariant::LongLong;
executed 409 times by 6 tests: return QVariant::LongLong;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
409
336-
337 case DBUS_TYPE_UINT64:
executed 89 times by 5 tests: case ((int) 't'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
89
338 return QVariant::ULongLong;
executed 89 times by 5 tests: return QVariant::ULongLong;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
89
339-
340 case DBUS_TYPE_DOUBLE:
executed 249 times by 6 tests: case ((int) 'd'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
341 return QVariant::Double;
executed 249 times by 6 tests: return QVariant::Double;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
342-
343 case DBUS_TYPE_STRING:
executed 623 times by 14 tests: case ((int) 's'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
623
344 return QVariant::String;
executed 623 times by 14 tests: return QVariant::String;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
623
345-
346 case DBUS_TYPE_OBJECT_PATH:
executed 250 times by 7 tests: case ((int) 'o'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
250
347 return QDBusMetaTypeId::objectpath();
executed 250 times by 7 tests: return QDBusMetaTypeId::objectpath();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
250
348-
349 case DBUS_TYPE_SIGNATURE:
executed 249 times by 6 tests: case ((int) 'g'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
350 return QDBusMetaTypeId::signature();
executed 249 times by 6 tests: return QDBusMetaTypeId::signature();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
351-
352 case DBUS_TYPE_UNIX_FD:
executed 172 times by 3 tests: case ((int) 'h'):
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
172
353 return QDBusMetaTypeId::unixfd();
executed 172 times by 3 tests: return QDBusMetaTypeId::unixfd();
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusxml2cpp - unknown status
172
354-
355 case DBUS_TYPE_VARIANT:
executed 161 times by 12 tests: case ((int) 'v'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
161
356 return QDBusMetaTypeId::variant();
executed 161 times by 12 tests: return QDBusMetaTypeId::variant();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
161
357-
358 case DBUS_TYPE_ARRAY: // special case
executed 2965 times by 14 tests: case ((int) 'a'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
2965
359 switch (signature[1]) {-
360 case DBUS_TYPE_BYTE:
executed 250 times by 7 tests: case ((int) 'y'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
250
361 return QVariant::ByteArray;
executed 250 times by 7 tests: return QVariant::ByteArray;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
250
362-
363 case DBUS_TYPE_STRING:
executed 109 times by 13 tests: case ((int) 's'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
109
364 return QVariant::StringList;
executed 109 times by 13 tests: return QVariant::StringList;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
109
365-
366 case DBUS_TYPE_VARIANT:
executed 249 times by 6 tests: case ((int) 'v'):
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
367 return QVariant::List;
executed 249 times by 6 tests: return QVariant::List;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
249
368-
369 case DBUS_TYPE_OBJECT_PATH:
executed 163 times by 3 tests: case ((int) 'o'):
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusreply - unknown status
163
370 return qMetaTypeId<QList<QDBusObjectPath> >();
executed 163 times by 3 tests: return qMetaTypeId<QList<QDBusObjectPath> >();
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbusreply - unknown status
163
371-
372 case DBUS_TYPE_SIGNATURE:
executed 161 times by 2 tests: case ((int) 'g'):
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
161
373 return qMetaTypeId<QList<QDBusSignature> >();
executed 161 times by 2 tests: return qMetaTypeId<QList<QDBusSignature> >();
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmetaobject - unknown status
161
374-
375 }-
376 // fall through-
377 default:
code before this statement executed 2033 times by 12 tests: default:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
executed 3888 times by 13 tests: default:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
2033-3888
378 return QMetaType::UnknownType;
executed 3888 times by 13 tests: return QMetaType::UnknownType;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmetaobject - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusxml2cpp - unknown status
3888
379 }-
380}-
381-
382/*!-
383 \fn QDBusMetaType::typeToSignature(int type)-
384 \internal-
385-
386 Returns the D-Bus signature equivalent to the supplied meta type id \a type.-
387-
388 More types can be registered with the qDBusRegisterMetaType() function.-
389-
390 \sa QDBusUtil::isValidSingleSignature(), signatureToType(),-
391 QVariant::type(), QVariant::userType()-
392*/-
393const char *QDBusMetaType::typeToSignature(int type)-
394{-
395 // check if it's a static type-
396 switch (type)-
397 {-
398 case QMetaType::UChar:
executed 91 times by 5 tests: case QMetaType::UChar:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
91
399 return DBUS_TYPE_BYTE_AS_STRING;
executed 91 times by 5 tests: return "y";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
91
400-
401 case QVariant::Bool:
executed 774 times by 134 tests: case QVariant::Bool:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
774
402 return DBUS_TYPE_BOOLEAN_AS_STRING;
executed 774 times by 134 tests: return "b";
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
774
403-
404 case QMetaType::Short:
executed 583 times by 6 tests: case QMetaType::Short:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
583
405 return DBUS_TYPE_INT16_AS_STRING;
executed 583 times by 6 tests: return "n";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
583
406-
407 case QMetaType::UShort:
executed 553 times by 6 tests: case QMetaType::UShort:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
553
408 return DBUS_TYPE_UINT16_AS_STRING;
executed 553 times by 6 tests: return "q";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
553
409-
410 case QVariant::Int:
executed 1864 times by 13 tests: case QVariant::Int:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1864
411 return DBUS_TYPE_INT32_AS_STRING;
executed 1864 times by 13 tests: return "i";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
1864
412-
413 case QVariant::UInt:
executed 617 times by 13 tests: case QVariant::UInt:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusservicewatcher - unknown status
617
414 return DBUS_TYPE_UINT32_AS_STRING;
executed 617 times by 13 tests: return "u";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusservicewatcher - unknown status
617
415-
416 case QVariant::LongLong:
executed 892 times by 7 tests: case QVariant::LongLong:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
892
417 return DBUS_TYPE_INT64_AS_STRING;
executed 892 times by 7 tests: return "x";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
892
418-
419 case QVariant::ULongLong:
executed 157 times by 6 tests: case QVariant::ULongLong:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
157
420 return DBUS_TYPE_UINT64_AS_STRING;
executed 157 times by 6 tests: return "t";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
157
421-
422 case QVariant::Double:
executed 561 times by 6 tests: case QVariant::Double:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
561
423 return DBUS_TYPE_DOUBLE_AS_STRING;
executed 561 times by 6 tests: return "d";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
561
424-
425 case QVariant::String:
executed 5852 times by 161 tests: case QVariant::String:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
5852
426 return DBUS_TYPE_STRING_AS_STRING;
executed 5852 times by 161 tests: return "s";
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
5852
427-
428 case QVariant::StringList:
executed 96 times by 7 tests: case QVariant::StringList:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
96
429 return DBUS_TYPE_ARRAY_AS_STRING
executed 96 times by 7 tests: return "a" "s";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
96
430 DBUS_TYPE_STRING_AS_STRING; // as
executed 96 times by 7 tests: return "a" "s";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
96
431-
432 case QVariant::ByteArray:
executed 425 times by 6 tests: case QVariant::ByteArray:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
425
433 return DBUS_TYPE_ARRAY_AS_STRING
executed 425 times by 6 tests: return "a" "y";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
425
434 DBUS_TYPE_BYTE_AS_STRING; // ay
executed 425 times by 6 tests: return "a" "y";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
425
435 }-
436-
437 QDBusMetaTypeId::init();-
438 if (type == QDBusMetaTypeId::variant())
type == QDBusM...eId::variant()Description
TRUEevaluated 692 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
FALSEevaluated 11325 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • ...
692-11325
439 return DBUS_TYPE_VARIANT_AS_STRING;
executed 692 times by 31 tests: return "v";
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
692
440 else if (type == QDBusMetaTypeId::objectpath())
type == QDBusM...::objectpath()Description
TRUEevaluated 682 times by 40 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qftp - unknown status
  • ...
FALSEevaluated 10643 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • ...
682-10643
441 return DBUS_TYPE_OBJECT_PATH_AS_STRING;
executed 682 times by 40 tests: return "o";
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qftp - unknown status
  • ...
682
442 else if (type == QDBusMetaTypeId::signature())
type == QDBusM...d::signature()Description
TRUEevaluated 459 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 10184 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • ...
459-10184
443 return DBUS_TYPE_SIGNATURE_AS_STRING;
executed 459 times by 6 tests: return "g";
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
459
444 else if (type == QDBusMetaTypeId::unixfd())
type == QDBusM...peId::unixfd()Description
TRUEevaluated 387 times by 2 tests
Evaluated by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 9797 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • ...
387-9797
445 return DBUS_TYPE_UNIX_FD_AS_STRING;
executed 387 times by 2 tests: return "h";
Executed by:
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusmarshall - unknown status
387
446-
447 // try the database-
448 QVector<QDBusCustomTypeInfo> *ct = customTypes();-
449 {-
450 QReadLocker locker(customTypesLock());-
451 if (type >= ct->size())
type >= ct->size()Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
FALSEevaluated 9794 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • ...
3-9794
452 return 0; // type not registered with us
executed 3 times by 2 tests: return 0;
Executed by:
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
3
453-
454 const QDBusCustomTypeInfo &info = (*ct).at(type);-
455-
456 if (!info.signature.isNull())
!info.signature.isNull()Description
TRUEevaluated 8218 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • ...
FALSEevaluated 1576 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
1576-8218
457 return info.signature;
executed 8218 times by 49 tests: return info.signature;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • ...
8218
458-
459 if (!info.marshall)
!info.marshallDescription
TRUEevaluated 25 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
FALSEevaluated 1551 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
25-1551
460 return 0; // type not registered with us
executed 25 times by 4 tests: return 0;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusmetatype - unknown status
25
461 }-
462-
463 // call to user code to construct the signature type-
464 QDBusCustomTypeInfo *info;-
465 {-
466 // createSignature will never return a null QByteArray-
467 // if there was an error, it'll return ""-
468 QByteArray signature = QDBusArgumentPrivate::createSignature(type);-
469-
470 // re-acquire lock-
471 QWriteLocker locker(customTypesLock());-
472 info = &(*ct)[type];-
473 info->signature = signature;-
474 }-
475 return info->signature;
executed 1551 times by 31 tests: return info->signature;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
1551
476}-
477-
478QT_END_NAMESPACE-
479-
480#endif // QT_NO_DBUS-
Source codeSwitch to Preprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9