qdbusmisc.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbusmisc.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 <string.h>-
41-
42#ifndef QT_BOOTSTRAPPED-
43#include <QtCore/qcoreapplication.h>-
44#include <QtCore/qvariant.h>-
45#include <QtCore/qmetaobject.h>-
46-
47#include "qdbusutil_p.h"-
48#include "qdbusconnection_p.h"-
49#include "qdbusabstractadaptor_p.h" // for QCLASSINFO_DBUS_*-
50#endif-
51#include <QtCore/qvector.h>-
52#include "qdbusmetatype_p.h"-
53-
54#ifndef QT_NO_DBUS-
55-
56QT_BEGIN_NAMESPACE-
57-
58bool qDBusCheckAsyncTag(const char *tag)-
59{-
60 static const char noReplyTag[] = "Q_NOREPLY";-
61 if (!tag || !*tag)
!tagDescription
TRUEnever evaluated
FALSEevaluated 3570 times by 15 tests
Evaluated 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_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
!*tagDescription
TRUEevaluated 3569 times by 15 tests
Evaluated 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_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
0-3570
62 return false;
executed 3569 times by 15 tests: return false;
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_qdbuscontext - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
3569
63-
64 const char *p = strstr(tag, noReplyTag);-
65 if (p != NULL &&
p != __nullDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
FALSEnever evaluated
0-1
66 (p == tag || *(p-1) == ' ') &&
p == tagDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
FALSEnever evaluated
*(p-1) == ' 'Description
TRUEnever evaluated
FALSEnever evaluated
0-1
67 (p[sizeof noReplyTag - 1] == '\0' || p[sizeof noReplyTag - 1] == ' '))
p[sizeof noRep...g - 1] == '\0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
FALSEnever evaluated
p[sizeof noRep...ag - 1] == ' 'Description
TRUEnever evaluated
FALSEnever evaluated
0-1
68 return true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
1
69-
70 return false;
never executed: return false;
0
71}-
72-
73#ifndef QT_BOOTSTRAPPED-
74-
75QString qDBusInterfaceFromMetaObject(const QMetaObject *mo)-
76{-
77 QString interface;-
78-
79 int idx = mo->indexOfClassInfo(QCLASSINFO_DBUS_INTERFACE);-
80 if (idx >= mo->classInfoOffset()) {
idx >= mo->classInfoOffset()Description
TRUEevaluated 1977 times by 10 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_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
6-1977
81 interface = QLatin1String(mo->classInfo(idx).value());-
82 } else {
executed 1977 times by 10 tests: end of block
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_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
1977
83 interface = QLatin1String(mo->className());-
84 interface.replace(QLatin1String("::"), QLatin1String("."));-
85-
86 if (interface.startsWith(QLatin1String("QDBus"))) {
interface.star...ring("QDBus"))Description
TRUEnever evaluated
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
0-6
87 interface.prepend(QLatin1String("org.qtproject.QtDBus."));-
88 } else if (interface.startsWith(QLatin1Char('Q')) &&
never executed: end of block
interface.star...tin1Char('Q'))Description
TRUEnever evaluated
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
0-6
89 interface.length() >= 2 && interface.at(1).isUpper()) {
interface.length() >= 2Description
TRUEnever evaluated
FALSEnever evaluated
interface.at(1).isUpper()Description
TRUEnever evaluated
FALSEnever evaluated
0
90 // assume it's Qt-
91 interface.prepend(QLatin1String("org.qtproject.Qt."));-
92 } else if (!QCoreApplication::instance()||
never executed: end of block
!QCoreApplication::instance()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbusconnection_no_app - unknown status
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
0-4
93 QCoreApplication::instance()->applicationName().isEmpty()) {
QCoreApplicati...me().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
0-4
94 interface.prepend(QLatin1String("local."));-
95 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qdbusconnection_no_app - unknown status
2
96 interface.prepend(QLatin1Char('.')).prepend(QCoreApplication::instance()->applicationName());-
97 const QString organizationDomain = QCoreApplication::instance()->organizationDomain();-
98 const auto domainName = organizationDomain.splitRef(QLatin1Char('.'), QString::SkipEmptyParts);-
99 if (domainName.isEmpty()) {
domainName.isEmpty()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
FALSEnever evaluated
0-4
100 interface.prepend(QLatin1String("local."));-
101 } else {
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
4
102 QString composedDomain;-
103 // + 1 for additional dot, e.g. organizationDomain equals "example.com",-
104 // then composedDomain will be equal "com.example."-
105 composedDomain.reserve(organizationDomain.size() + 1);-
106 for (auto it = domainName.rbegin(), end = domainName.rend(); it != end; ++it)
it != endDescription
TRUEnever evaluated
FALSEnever evaluated
0
107 composedDomain += *it + QLatin1Char('.');
never executed: composedDomain += *it + QLatin1Char('.');
0
108-
109 interface.prepend(composedDomain);-
110 }
never executed: end of block
0
111 }-
112 }-
113-
114 return interface;
executed 1983 times by 10 tests: return interface;
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_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
1983
115}-
116-
117bool qDBusInterfaceInObject(QObject *obj, const QString &interface_name)-
118{-
119 const QMetaObject *mo = obj->metaObject();-
120 for ( ; mo != &QObject::staticMetaObject; mo = mo->superClass())
mo != &QObject...aticMetaObjectDescription
TRUEevaluated 941 times by 8 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_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
FALSEnever evaluated
0-941
121 if (interface_name == qDBusInterfaceFromMetaObject(mo))
interface_name...MetaObject(mo)Description
TRUEevaluated 938 times by 8 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_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 3 times by 3 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
3-938
122 return true;
executed 938 times by 8 tests: return true;
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_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
938
123 return false;
never executed: return false;
0
124}-
125-
126// calculates the metatypes for the method-
127// the slot must have the parameters in the following form:-
128// - zero or more value or const-ref parameters of any kind-
129// - zero or one const ref of QDBusMessage-
130// - zero or more non-const ref parameters-
131// No parameter may be a template.-
132// this function returns -1 if the parameters don't match the above form-
133// this function returns the number of *input* parameters, including the QDBusMessage one if any-
134// this function does not check the return type, so metaTypes[0] is always 0 and always present-
135// metaTypes.count() >= retval + 1 in all cases-
136//-
137// sig must be the normalised signature for the method-
138int qDBusParametersForMethod(const QMetaMethod &mm, QVector<int> &metaTypes, QString &errorMsg)-
139{-
140 return qDBusParametersForMethod(mm.parameterTypes(), metaTypes, errorMsg);
executed 4528 times by 177 tests: return qDBusParametersForMethod(mm.parameterTypes(), metaTypes, errorMsg);
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
  • ...
4528
141}-
142-
143#endif // QT_BOOTSTRAPPED-
144-
145int qDBusParametersForMethod(const QList<QByteArray> &parameterTypes, QVector<int>& metaTypes, QString &errorMsg)-
146{-
147 QDBusMetaTypeId::init();-
148 metaTypes.clear();-
149-
150 metaTypes.append(0); // return type-
151 int inputCount = 0;-
152 bool seenMessage = false;-
153 QList<QByteArray>::ConstIterator it = parameterTypes.constBegin();-
154 QList<QByteArray>::ConstIterator end = parameterTypes.constEnd();-
155 for ( ; it != end; ++it) {
it != endDescription
TRUEevaluated 10831 times by 176 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 5580 times by 177 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
  • ...
5580-10831
156 const QByteArray &type = *it;-
157 if (type.endsWith('*')) {
type.endsWith('*')Description
TRUEevaluated 36 times by 16 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
FALSEevaluated 10795 times by 176 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
  • ...
36-10795
158 errorMsg = QLatin1String("Pointers are not supported: ") + QLatin1String(type);-
159 return -1;
executed 36 times by 16 tests: return -1;
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
36
160 }-
161-
162 if (type.endsWith('&')) {
type.endsWith('&')Description
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
FALSEevaluated 10777 times by 176 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
  • ...
18-10777
163 QByteArray basictype = type;-
164 basictype.truncate(type.length() - 1);-
165-
166 int id = QMetaType::type(basictype);-
167 if (id == 0) {
id == 0Description
TRUEnever evaluated
FALSEevaluated 18 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
0-18
168 errorMsg = QLatin1String("Unregistered output type in parameter list: ") + QLatin1String(type);-
169 return -1;
never executed: return -1;
0
170 } else if (QDBusMetaType::typeToSignature(id) == 0)
QDBusMetaType:...ature(id) == 0Description
TRUEnever evaluated
FALSEevaluated 18 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
0-18
171 return -1;
never executed: return -1;
0
172-
173 metaTypes.append( id );-
174 seenMessage = true; // it cannot appear anymore anyways-
175 continue;
executed 18 times by 4 tests: continue;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
18
176 }-
177-
178 if (seenMessage) { // && !type.endsWith('&')
seenMessageDescription
TRUEnever evaluated
FALSEevaluated 10777 times by 176 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-10777
179 errorMsg = QLatin1String("Invalid method, non-output parameters after message or after output parameters: ") + QLatin1String(type);-
180 return -1; // not allowed
never executed: return -1;
0
181 }-
182-
183 int id = QMetaType::type(type);-
184 if (id == QMetaType::UnknownType) {
id == QMetaType::UnknownTypeDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuslocalcalls - unknown status
FALSEevaluated 10771 times by 176 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
  • ...
6-10771
185 errorMsg = QLatin1String("Unregistered input type in parameter list: ") + QLatin1String(type);-
186 return -1;
executed 6 times by 2 tests: return -1;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuslocalcalls - unknown status
6
187 }-
188-
189 if (id == QDBusMetaTypeId::message())
id == QDBusMet...eId::message()Description
TRUEevaluated 434 times by 9 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
FALSEevaluated 10337 times by 175 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
  • ...
434-10337
190 seenMessage = true;
executed 434 times by 9 tests: seenMessage = true;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
434
191 else if (QDBusMetaType::typeToSignature(id) == 0) {
QDBusMetaType:...ature(id) == 0Description
TRUEnever evaluated
FALSEevaluated 10337 times by 175 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-10337
192 errorMsg = QLatin1String("Type not registered with QtDBus in parameter list: ") + QLatin1String(type);-
193 return -1;
never executed: return -1;
0
194 }-
195-
196 metaTypes.append(id);-
197 ++inputCount;-
198 }
executed 10771 times by 176 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
  • ...
10771
199-
200 return inputCount;
executed 5580 times by 177 tests: return inputCount;
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
  • ...
5580
201}-
202-
203QT_END_NAMESPACE-
204-
205#endif // QT_NO_DBUS-
Source codeSwitch to Preprocessed file

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