qdbusmessage.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbusmessage.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Copyright (C) 2016 Intel Corporation.-
5** Contact: https://www.qt.io/licensing/-
6**-
7** This file is part of the QtDBus module of the Qt Toolkit.-
8**-
9** $QT_BEGIN_LICENSE:LGPL$-
10** Commercial License Usage-
11** Licensees holding valid commercial Qt licenses may use this file in-
12** accordance with the commercial license agreement provided with the-
13** Software or, alternatively, in accordance with the terms contained in-
14** a written agreement between you and The Qt Company. For licensing terms-
15** and conditions see https://www.qt.io/terms-conditions. For further-
16** information use the contact form at https://www.qt.io/contact-us.-
17**-
18** GNU Lesser General Public License Usage-
19** Alternatively, this file may be used under the terms of the GNU Lesser-
20** General Public License version 3 as published by the Free Software-
21** Foundation and appearing in the file LICENSE.LGPL3 included in the-
22** packaging of this file. Please review the following information to-
23** ensure the GNU Lesser General Public License version 3 requirements-
24** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
25**-
26** GNU General Public License Usage-
27** Alternatively, this file may be used under the terms of the GNU-
28** General Public License version 2.0 or (at your option) the GNU General-
29** Public license version 3 or any later version approved by the KDE Free-
30** Qt Foundation. The licenses are as published by the Free Software-
31** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
32** included in the packaging of this file. Please review the following-
33** information to ensure the GNU General Public License requirements will-
34** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
35** https://www.gnu.org/licenses/gpl-3.0.html.-
36**-
37** $QT_END_LICENSE$-
38**-
39****************************************************************************/-
40-
41#include "qdbusmessage.h"-
42#include "qdbusmessage_p.h"-
43-
44#include <qdebug.h>-
45#include <qstringlist.h>-
46-
47#include "qdbus_symbols_p.h"-
48-
49#include "qdbusargument_p.h"-
50#include "qdbuserror.h"-
51#include "qdbusmetatype.h"-
52#include "qdbusconnection_p.h"-
53#include "qdbusutil_p.h"-
54-
55#ifndef QT_NO_DBUS-
56-
57QT_BEGIN_NAMESPACE-
58-
59Q_STATIC_ASSERT(QDBusMessage::InvalidMessage == DBUS_MESSAGE_TYPE_INVALID);-
60Q_STATIC_ASSERT(QDBusMessage::MethodCallMessage == DBUS_MESSAGE_TYPE_METHOD_CALL);-
61Q_STATIC_ASSERT(QDBusMessage::ReplyMessage == DBUS_MESSAGE_TYPE_METHOD_RETURN);-
62Q_STATIC_ASSERT(QDBusMessage::ErrorMessage == DBUS_MESSAGE_TYPE_ERROR);-
63Q_STATIC_ASSERT(QDBusMessage::SignalMessage == DBUS_MESSAGE_TYPE_SIGNAL);-
64-
65static inline const char *data(const QByteArray &arr)-
66{-
67 return arr.isEmpty() ? 0 : arr.constData();
executed 5448 times by 155 tests: return arr.isEmpty() ? 0 : arr.constData();
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
  • ...
5448
68}-
69-
70QDBusMessagePrivate::QDBusMessagePrivate()-
71 : msg(0), reply(0), localReply(0), ref(1), type(QDBusMessage::InvalidMessage),-
72 delayedReply(false), localMessage(false),-
73 parametersValidated(false), autoStartService(true)-
74{-
75}
executed 13488 times by 282 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
  • ...
13488
76-
77QDBusMessagePrivate::~QDBusMessagePrivate()-
78{-
79 if (msg)
msgDescription
TRUEevaluated 4139 times by 269 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 9300 times by 158 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
  • ...
4139-9300
80 q_dbus_message_unref(msg);
executed 4139 times by 269 tests: q_dbus_message_unref(msg);
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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
4139
81 if (reply)
replyDescription
TRUEevaluated 1038 times by 8 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 12401 times by 270 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
1038-12401
82 q_dbus_message_unref(reply);
executed 1038 times by 8 tests: q_dbus_message_unref(reply);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
1038
83 delete localReply;-
84}
executed 13439 times by 270 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
13439
85-
86/*!-
87 \since 4.3-
88 Returns the human-readable message associated with the error that was received.-
89*/-
90QString QDBusMessage::errorMessage() const-
91{-
92 if (d_ptr->type == ErrorMessage) {
d_ptr->type == ErrorMessageDescription
TRUEevaluated 908 times by 30 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_QSystemTrayIcon
  • 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
FALSEevaluated 236 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
236-908
93 if (!d_ptr->message.isEmpty())
!d_ptr->message.isEmpty()Description
TRUEevaluated 449 times by 11 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_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 459 times by 24 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_QSystemTrayIcon
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
449-459
94 return d_ptr->message;
executed 449 times by 11 tests: return d_ptr->message;
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_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
449
95 if (!d_ptr->arguments.isEmpty())
!d_ptr->arguments.isEmpty()Description
TRUEevaluated 457 times by 24 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_QSystemTrayIcon
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbuspendingcall - unknown status
2-457
96 return d_ptr->arguments.at(0).toString();
executed 457 times by 24 tests: return d_ptr->arguments.at(0).toString();
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_QSystemTrayIcon
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
457
97 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qdbuspendingcall - unknown status
2
98 return QString();
executed 238 times by 5 tests: return QString();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
238
99}-
100-
101/*!-
102 \internal-
103 Constructs a DBusMessage object from \a message. The returned value must be de-referenced-
104 with q_dbus_message_unref. The \a capabilities flags indicates which capabilities to use.-
105-
106 The \a error object is set to indicate the error if anything went wrong with the-
107 marshalling. Usually, this error message will be placed in the reply, as if the call failed.-
108 The \a error pointer must not be null.-
109*/-
110DBusMessage *QDBusMessagePrivate::toDBusMessage(const QDBusMessage &message, QDBusConnection::ConnectionCapabilities capabilities,-
111 QDBusError *error)-
112{-
113 if (!qdbus_loadLibDBus()) {
!qdbus_loadLibDBus()Description
TRUEnever evaluated
FALSEevaluated 4285 times by 157 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-4285
114 *error = QDBusError(QDBusError::Failed, QLatin1String("Could not open lidbus-1 library"));-
115 return 0;
never executed: return 0;
0
116 }-
117-
118 DBusMessage *msg = 0;-
119 const QDBusMessagePrivate *d_ptr = message.d_ptr;-
120-
121 switch (d_ptr->type) {-
122 case QDBusMessage::InvalidMessage:
never executed: case QDBusMessage::InvalidMessage:
0
123 //qDebug() << "QDBusMessagePrivate::toDBusMessage" << "message is invalid";-
124 break;
never executed: break;
0
125 case QDBusMessage::MethodCallMessage:
executed 2242 times by 155 tests: case QDBusMessage::MethodCallMessage:
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
  • ...
2242
126 // only service and interface can be empty -> path and name must not be empty-
127 if (!d_ptr->parametersValidated) {
!d_ptr->parametersValidatedDescription
TRUEevaluated 1012 times by 10 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
FALSEevaluated 1230 times by 153 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
  • ...
1012-1230
128 if (!QDBusUtil::checkBusName(d_ptr->service, QDBusUtil::EmptyAllowed, error))
!QDBusUtil::ch...llowed, error)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 1011 times by 10 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
1-1011
129 return 0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_qdbusmarshall - unknown status
1
130 if (!QDBusUtil::checkObjectPath(d_ptr->path, QDBusUtil::EmptyNotAllowed, error))
!QDBusUtil::ch...llowed, error)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 1009 times by 10 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
2-1009
131 return 0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_qdbusmarshall - unknown status
2
132 if (!QDBusUtil::checkInterfaceName(d_ptr->interface, QDBusUtil::EmptyAllowed, error))
!QDBusUtil::ch...llowed, error)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 1008 times by 10 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
1-1008
133 return 0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_qdbusmarshall - unknown status
1
134 if (!QDBusUtil::checkMemberName(d_ptr->name, QDBusUtil::EmptyNotAllowed, error, "method"))
!QDBusUtil::ch...ror, "method")Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
FALSEevaluated 1006 times by 10 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
2-1006
135 return 0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_qdbusmarshall - unknown status
2
136 }
executed 1006 times by 10 tests: end of block
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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
1006
137-
138 msg = q_dbus_message_new_method_call(data(d_ptr->service.toUtf8()), d_ptr->path.toUtf8(),-
139 data(d_ptr->interface.toUtf8()), d_ptr->name.toUtf8());-
140 q_dbus_message_set_auto_start( msg, d_ptr->autoStartService );-
141 break;
executed 2236 times by 155 tests: break;
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
  • ...
2236
142 case QDBusMessage::ReplyMessage:
executed 973 times by 10 tests: case QDBusMessage::ReplyMessage:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
973
143 msg = q_dbus_message_new(DBUS_MESSAGE_TYPE_METHOD_RETURN);-
144 if (!d_ptr->localMessage) {
!d_ptr->localMessageDescription
TRUEevaluated 906 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 67 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
67-906
145 q_dbus_message_set_destination(msg, q_dbus_message_get_sender(d_ptr->reply));-
146 q_dbus_message_set_reply_serial(msg, q_dbus_message_get_serial(d_ptr->reply));-
147 }
executed 906 times by 7 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
906
148 break;
executed 973 times by 10 tests: break;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
973
149 case QDBusMessage::ErrorMessage:
executed 94 times by 4 tests: case QDBusMessage::ErrorMessage:
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
94
150 // error name can't be empty-
151 if (!d_ptr->parametersValidated
!d_ptr->parametersValidatedDescription
TRUEnever evaluated
FALSEevaluated 94 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
0-94
152 && !QDBusUtil::checkErrorName(d_ptr->name, QDBusUtil::EmptyNotAllowed, error))
!QDBusUtil::ch...llowed, error)Description
TRUEnever evaluated
FALSEnever evaluated
0
153 return 0;
never executed: return 0;
0
154-
155 msg = q_dbus_message_new(DBUS_MESSAGE_TYPE_ERROR);-
156 q_dbus_message_set_error_name(msg, d_ptr->name.toUtf8());-
157 if (!d_ptr->localMessage) {
!d_ptr->localMessageDescription
TRUEevaluated 94 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
FALSEnever evaluated
0-94
158 q_dbus_message_set_destination(msg, q_dbus_message_get_sender(d_ptr->reply));-
159 q_dbus_message_set_reply_serial(msg, q_dbus_message_get_serial(d_ptr->reply));-
160 }
executed 94 times by 4 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
94
161 break;
executed 94 times by 4 tests: break;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
94
162 case QDBusMessage::SignalMessage:
executed 976 times by 8 tests: case QDBusMessage::SignalMessage:
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
976
163 // only the service name can be empty here-
164 if (!d_ptr->parametersValidated) {
!d_ptr->parametersValidatedDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 956 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
20-956
165 if (!QDBusUtil::checkBusName(d_ptr->service, QDBusUtil::EmptyAllowed, error))
!QDBusUtil::ch...llowed, error)Description
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
0-20
166 return 0;
never executed: return 0;
0
167 if (!QDBusUtil::checkObjectPath(d_ptr->path, QDBusUtil::EmptyNotAllowed, error))
!QDBusUtil::ch...llowed, error)Description
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
0-20
168 return 0;
never executed: return 0;
0
169 if (!QDBusUtil::checkInterfaceName(d_ptr->interface, QDBusUtil::EmptyAllowed, error))
!QDBusUtil::ch...llowed, error)Description
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
0-20
170 return 0;
never executed: return 0;
0
171 if (!QDBusUtil::checkMemberName(d_ptr->name, QDBusUtil::EmptyNotAllowed, error, "method"))
!QDBusUtil::ch...ror, "method")Description
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
0-20
172 return 0;
never executed: return 0;
0
173 }
executed 20 times by 5 tests: end of block
Executed by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
20
174-
175 msg = q_dbus_message_new_signal(d_ptr->path.toUtf8(), d_ptr->interface.toUtf8(),-
176 d_ptr->name.toUtf8());-
177 q_dbus_message_set_destination(msg, data(d_ptr->service.toUtf8()));-
178 break;
executed 976 times by 8 tests: break;
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
976
179 }-
180-
181 // if we got here, the parameters validated-
182 // and since the message parameters cannot be changed once the message is created-
183 // we can record this fact-
184 d_ptr->parametersValidated = true;-
185-
186 QDBusMarshaller marshaller(capabilities);-
187 QVariantList::ConstIterator it = d_ptr->arguments.constBegin();-
188 QVariantList::ConstIterator cend = d_ptr->arguments.constEnd();-
189 q_dbus_message_iter_init_append(msg, &marshaller.iterator);-
190 if (!d_ptr->message.isEmpty())
!d_ptr->message.isEmpty()Description
TRUEevaluated 94 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
FALSEevaluated 4185 times by 157 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
  • ...
94-4185
191 // prepend the error message-
192 marshaller.append(d_ptr->message);
executed 94 times by 4 tests: marshaller.append(d_ptr->message);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
94
193 for ( ; it != cend; ++it)
it != cendDescription
TRUEevaluated 2969 times by 156 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 4279 times by 157 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
  • ...
2969-4279
194 marshaller.appendVariantInternal(*it);
executed 2969 times by 156 tests: marshaller.appendVariantInternal(*it);
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
  • ...
2969
195-
196 // check if everything is ok-
197 if (marshaller.ok)
marshaller.okDescription
TRUEevaluated 4268 times by 157 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 11 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
11-4268
198 return msg;
executed 4268 times by 157 tests: return msg;
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
  • ...
4268
199-
200 // not ok;-
201 q_dbus_message_unref(msg);-
202 *error = QDBusError(QDBusError::Failed, QLatin1String("Marshalling failed: ") + marshaller.errorString);-
203 return 0;
executed 11 times by 1 test: return 0;
Executed by:
  • tst_qdbusmarshall - unknown status
11
204}-
205-
206/*-
207struct DBusMessage-
208{-
209 DBusAtomic refcount;-
210 DBusHeader header;-
211 DBusString body;-
212 char byte_order;-
213 unsigned int locked : 1;-
214DBUS_DISABLE_CHECKS-
215 unsigned int in_cache : 1;-
216#endif-
217 DBusList *size_counters;-
218 long size_counter_delta;-
219 dbus_uint32_t changed_stamp : CHANGED_STAMP_BITS;-
220 DBusDataSlotList slot_list;-
221#ifndef DBUS_DISABLE_CHECKS-
222 int generation;-
223#endif-
224};-
225*/-
226-
227/*!-
228 \internal-
229 Constructs a QDBusMessage by parsing the given DBusMessage object.-
230*/-
231QDBusMessage QDBusMessagePrivate::fromDBusMessage(DBusMessage *dmsg, QDBusConnection::ConnectionCapabilities capabilities)-
232{-
233 QDBusMessage message;-
234 if (!dmsg)
!dmsgDescription
TRUEnever evaluated
FALSEevaluated 4188 times by 282 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-4188
235 return message;
never executed: return message;
0
236-
237 message.d_ptr->type = QDBusMessage::MessageType(q_dbus_message_get_type(dmsg));-
238 message.d_ptr->path = QString::fromUtf8(q_dbus_message_get_path(dmsg));-
239 message.d_ptr->interface = QString::fromUtf8(q_dbus_message_get_interface(dmsg));-
240 message.d_ptr->name = message.d_ptr->type == DBUS_MESSAGE_TYPE_ERROR ?
message.d_ptr->type == 3Description
TRUEevaluated 380 times by 158 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QSystemTrayIcon
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractscrollarea - unknown status
  • ...
FALSEevaluated 3808 times by 158 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
  • ...
380-3808
241 QString::fromUtf8(q_dbus_message_get_error_name(dmsg)) :-
242 QString::fromUtf8(q_dbus_message_get_member(dmsg));-
243 message.d_ptr->service = QString::fromUtf8(q_dbus_message_get_sender(dmsg));-
244 message.d_ptr->signature = QString::fromUtf8(q_dbus_message_get_signature(dmsg));-
245 message.d_ptr->msg = q_dbus_message_ref(dmsg);-
246-
247 QDBusDemarshaller demarshaller(capabilities);-
248 demarshaller.message = q_dbus_message_ref(dmsg);-
249 if (q_dbus_message_iter_init(demarshaller.message, &demarshaller.iterator))
q_dbus_message...ller.iterator)Description
TRUEevaluated 3014 times by 282 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 1174 times by 9 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_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusthreading - unknown status
1174-3014
250 while (!demarshaller.atEnd())
!demarshaller.atEnd()Description
TRUEevaluated 3320 times by 282 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 3014 times by 282 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
  • ...
3014-3320
251 message << demarshaller.toVariantInternal();
executed 3320 times by 282 tests: message << demarshaller.toVariantInternal();
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
  • ...
3320
252 return message;
executed 4188 times by 282 tests: return message;
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
  • ...
4188
253}-
254-
255bool QDBusMessagePrivate::isLocal(const QDBusMessage &message)-
256{-
257 return message.d_ptr->localMessage;
executed 5869 times by 286 tests: return message.d_ptr->localMessage;
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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
5869
258}-
259-
260QDBusMessage QDBusMessagePrivate::makeLocal(const QDBusConnectionPrivate &conn,-
261 const QDBusMessage &asSent)-
262{-
263 // simulate the message being sent to the bus and then received back-
264 // the only field that the bus sets when delivering the message-
265 // (as opposed to the message as we send it), is the sender-
266 // so we simply set the sender to our unique name-
267-
268 // determine if we are carrying any complex types-
269 QString computedSignature;-
270 QVariantList::ConstIterator it = asSent.d_ptr->arguments.constBegin();-
271 QVariantList::ConstIterator end = asSent.d_ptr->arguments.constEnd();-
272 for ( ; it != end; ++it) {
it != endDescription
TRUEevaluated 380 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 947 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
380-947
273 int id = it->userType();-
274 const char *signature = QDBusMetaType::typeToSignature(id);-
275 if ((id != QVariant::StringList && id != QVariant::ByteArray &&
id != QVariant::StringListDescription
TRUEevaluated 372 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 8 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
id != QVariant::ByteArrayDescription
TRUEevaluated 367 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
5-372
276 qstrlen(signature) != 1) || id == qMetaTypeId<QDBusVariant>()) {
qstrlen(signature) != 1Description
TRUEevaluated 42 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 325 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
id == qMetaTyp...DBusVariant>()Description
TRUEevaluated 63 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 275 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
42-325
277 // yes, we are-
278 // we must marshall and demarshall again so as to create QDBusArgument-
279 // entries for the complex types-
280 QDBusError error;-
281 DBusMessage *message = toDBusMessage(asSent, conn.capabilities, &error);-
282 if (!message) {
!messageDescription
TRUEnever evaluated
FALSEevaluated 105 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
0-105
283 // failed to marshall, so it's a call error-
284 return QDBusMessage::createError(error);
never executed: return QDBusMessage::createError(error);
0
285 }-
286-
287 q_dbus_message_set_sender(message, conn.baseService.toUtf8());-
288-
289 QDBusMessage retval = fromDBusMessage(message, conn.capabilities);-
290 retval.d_ptr->localMessage = true;-
291 q_dbus_message_unref(message);-
292 if (retval.d_ptr->service.isEmpty())
retval.d_ptr->...vice.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 105 times by 6 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
0-105
293 retval.d_ptr->service = conn.baseService;
never executed: retval.d_ptr->service = conn.baseService;
0
294 return retval;
executed 105 times by 6 tests: return retval;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
105
295 } else {-
296 computedSignature += QLatin1String(signature);-
297 }
executed 275 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
275
298 }-
299-
300 // no complex types seen-
301 // optimize by using the variant list itself-
302 QDBusMessage retval;-
303 QDBusMessagePrivate *d = retval.d_ptr;-
304 d->arguments = asSent.d_ptr->arguments;-
305 d->path = asSent.d_ptr->path;-
306 d->interface = asSent.d_ptr->interface;-
307 d->name = asSent.d_ptr->name;-
308 d->message = asSent.d_ptr->message;-
309 d->type = asSent.d_ptr->type;-
310-
311 d->service = conn.baseService;-
312 d->signature = computedSignature;-
313 d->localMessage = true;-
314 return retval;
executed 947 times by 12 tests: return retval;
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_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
947
315}-
316-
317QDBusMessage QDBusMessagePrivate::makeLocalReply(const QDBusConnectionPrivate &conn,-
318 const QDBusMessage &callMsg)-
319{-
320 // simulate the reply (return or error) message being sent to the bus and-
321 // then received back.-
322 if (callMsg.d_ptr->localReply)
callMsg.d_ptr->localReplyDescription
TRUEevaluated 525 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qdbuslocalcalls - unknown status
2-525
323 return makeLocal(conn, *callMsg.d_ptr->localReply);
executed 525 times by 12 tests: return makeLocal(conn, *callMsg.d_ptr->localReply);
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_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
525
324 return QDBusMessage(); // failed
executed 2 times by 1 test: return QDBusMessage();
Executed by:
  • tst_qdbuslocalcalls - unknown status
2
325}-
326-
327/*!-
328 \class QDBusMessage-
329 \inmodule QtDBus-
330 \since 4.2-
331-
332 \brief The QDBusMessage class represents one message sent or-
333 received over the D-Bus bus.-
334-
335 This object can represent any of the four different types of-
336 messages (MessageType) that can occur on the bus:-
337-
338 \list-
339 \li Method calls-
340 \li Method return values-
341 \li Signal emissions-
342 \li Error codes-
343 \endlist-
344-
345 Objects of this type are created with the static createError(),-
346 createMethodCall() and createSignal() functions. Use the-
347 QDBusConnection::send() function to send the messages.-
348*/-
349-
350/*!-
351 \enum QDBusMessage::MessageType-
352 The possible message types:-
353-
354 \value MethodCallMessage a message representing an outgoing or incoming method call-
355 \value SignalMessage a message representing an outgoing or incoming signal emission-
356 \value ReplyMessage a message representing the return values of a method call-
357 \value ErrorMessage a message representing an error condition in response to a method call-
358 \value InvalidMessage an invalid message: this is never set on messages received from D-Bus-
359*/-
360-
361/*!-
362 Constructs a new DBus message with the given \a path, \a interface-
363 and \a name, representing a signal emission.-
364-
365 A DBus signal is emitted from one application and is received by-
366 all applications that are listening for that signal from that-
367 interface.-
368-
369 The QDBusMessage object that is returned can be sent using the-
370 QDBusConnection::send() function.-
371*/-
372QDBusMessage QDBusMessage::createSignal(const QString &path, const QString &interface,-
373 const QString &name)-
374{-
375 QDBusMessage message;-
376 message.d_ptr->type = SignalMessage;-
377 message.d_ptr->path = path;-
378 message.d_ptr->interface = interface;-
379 message.d_ptr->name = name;-
380-
381 return message;
executed 967 times by 8 tests: return message;
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
967
382}-
383-
384/*!-
385 \since 5.6-
386-
387 Constructs a new DBus message with the given \a path, \a interface-
388 and \a name, representing a signal emission to a specific destination.-
389-
390 A DBus signal is emitted from one application and is received only by-
391 the application owning the destination \a service name.-
392-
393 The QDBusMessage object that is returned can be sent using the-
394 QDBusConnection::send() function.-
395*/-
396QDBusMessage QDBusMessage::createTargetedSignal(const QString &service, const QString &path,-
397 const QString &interface, const QString &name)-
398{-
399 QDBusMessage message;-
400 message.d_ptr->type = SignalMessage;-
401 message.d_ptr->service = service;-
402 message.d_ptr->path = path;-
403 message.d_ptr->interface = interface;-
404 message.d_ptr->name = name;-
405-
406 return message;
executed 4 times by 2 tests: return message;
Executed by:
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
4
407}-
408-
409/*!-
410 Constructs a new DBus message representing a method call.-
411 A method call always informs its destination address-
412 (\a service, \a path, \a interface and \a method).-
413-
414 The DBus bus allows calling a method on a given remote object without specifying the-
415 destination interface, if the method name is unique. However, if two interfaces on the-
416 remote object export the same method name, the result is undefined (one of the two may be-
417 called or an error may be returned).-
418-
419 When using DBus in a peer-to-peer context (i.e., not on a bus), the \a service parameter is-
420 optional.-
421-
422 The QDBusInterface class provides a simpler abstraction to synchronous-
423 method calling.-
424-
425 This function returns a QDBusMessage object that can be sent with-
426 QDBusConnection::call().-
427*/-
428QDBusMessage QDBusMessage::createMethodCall(const QString &service, const QString &path,-
429 const QString &interface, const QString &method)-
430{-
431 QDBusMessage message;-
432 message.d_ptr->type = MethodCallMessage;-
433 message.d_ptr->service = service;-
434 message.d_ptr->path = path;-
435 message.d_ptr->interface = interface;-
436 message.d_ptr->name = method;-
437-
438 return message;
executed 2726 times by 158 tests: return message;
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
  • ...
2726
439}-
440-
441/*!-
442 Constructs a new DBus message representing an error,-
443 with the given \a name and \a msg.-
444*/-
445QDBusMessage QDBusMessage::createError(const QString &name, const QString &msg)-
446{-
447 QDBusMessage error;-
448 error.d_ptr->type = ErrorMessage;-
449 error.d_ptr->name = name;-
450 error.d_ptr->message = msg;-
451-
452 return error;
executed 309 times by 12 tests: return error;
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_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
309
453}-
454-
455/*!-
456 \fn QDBusMessage QDBusMessage::createError(const QDBusError &error)-
457-
458 Constructs a new DBus message representing the given \a error.-
459*/-
460-
461/*!-
462 \fn QDBusMessage QDBusMessage::createError(QDBusError::ErrorType type, const QString &msg)-
463-
464 Constructs a new DBus message for the error type \a type using-
465 the message \a msg. Returns the DBus message.-
466*/-
467-
468/*!-
469 \fn QDBusMessage QDBusMessage::createReply(const QList<QVariant> &arguments) const-
470-
471 Constructs a new DBus message representing a reply, with the given-
472 \a arguments.-
473*/-
474QDBusMessage QDBusMessage::createReply(const QVariantList &arguments) const-
475{-
476 QDBusMessage reply;-
477 reply.setArguments(arguments);-
478 reply.d_ptr->type = ReplyMessage;-
479 if (d_ptr->msg)
d_ptr->msgDescription
TRUEevaluated 941 times by 8 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 330 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
330-941
480 reply.d_ptr->reply = q_dbus_message_ref(d_ptr->msg);
executed 941 times by 8 tests: reply.d_ptr->reply = q_dbus_message_ref(d_ptr->msg);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
941
481 if (d_ptr->localMessage) {
d_ptr->localMessageDescription
TRUEevaluated 365 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 906 times by 7 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
365-906
482 reply.d_ptr->localMessage = true;-
483 d_ptr->localReply = new QDBusMessage(reply); // keep an internal copy-
484 }
executed 365 times by 12 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
365
485-
486 // the reply must have a msg or be a local-loop optimization-
487 Q_ASSERT(reply.d_ptr->reply || reply.d_ptr->localMessage);-
488 return reply;
executed 1271 times by 14 tests: return reply;
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_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
1271
489}-
490-
491/*!-
492 Constructs a new DBus message representing an error reply message,-
493 with the given \a name and \a msg.-
494*/-
495#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)-
496QDBusMessage QDBusMessage::createErrorReply(const QString &name, const QString &msg) const-
497#else-
498QDBusMessage QDBusMessage::createErrorReply(const QString name, const QString &msg) const-
499#endif-
500{-
501 QDBusMessage reply = QDBusMessage::createError(name, msg);-
502 if (d_ptr->msg)
d_ptr->msgDescription
TRUEevaluated 97 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
FALSEevaluated 157 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_qdbuscontext - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusthreading - unknown status
97-157
503 reply.d_ptr->reply = q_dbus_message_ref(d_ptr->msg);
executed 97 times by 4 tests: reply.d_ptr->reply = q_dbus_message_ref(d_ptr->msg);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
97
504 if (d_ptr->localMessage) {
d_ptr->localMessageDescription
TRUEevaluated 160 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_qdbuscontext - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 94 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
94-160
505 reply.d_ptr->localMessage = true;-
506 d_ptr->localReply = new QDBusMessage(reply); // keep an internal copy-
507 }
executed 160 times by 9 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusthreading - unknown status
160
508-
509 // the reply must have a msg or be a local-loop optimization-
510 Q_ASSERT(reply.d_ptr->reply || reply.d_ptr->localMessage);-
511 return reply;
executed 254 times by 10 tests: return reply;
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_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusthreading - unknown status
254
512}-
513-
514/*!-
515 \fn QDBusMessage QDBusMessage::createReply(const QVariant &argument) const-
516-
517 Constructs a new DBus message representing a reply, with the-
518 given \a argument.-
519*/-
520-
521/*!-
522 \fn QDBusMessage QDBusMessage::createErrorReply(const QDBusError &error) const-
523-
524 Constructs a new DBus message representing an error reply message,-
525 from the given \a error object.-
526*/-
527-
528/*!-
529 \fn QDBusMessage QDBusMessage::createErrorReply(QDBusError::ErrorType type, const QString &msg) const-
530-
531 Constructs a new DBus reply message for the error type \a type using-
532 the message \a msg. Returns the DBus message.-
533*/-
534QDBusMessage QDBusMessage::createErrorReply(QDBusError::ErrorType atype, const QString &amsg) const-
535{-
536 QDBusMessage msg = createErrorReply(QDBusError::errorString(atype), amsg);-
537 msg.d_ptr->parametersValidated = true;-
538 return msg;
executed 248 times by 7 tests: return msg;
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_qdbuslocalcalls - unknown status
  • tst_qdbusthreading - unknown status
248
539}-
540-
541-
542/*!-
543 Constructs an empty, invalid QDBusMessage object.-
544-
545 \sa createError(), createMethodCall(), createSignal()-
546*/-
547QDBusMessage::QDBusMessage()-
548{-
549 d_ptr = new QDBusMessagePrivate;-
550}
executed 13488 times by 282 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
  • ...
13488
551-
552/*!-
553 Constructs a copy of the object given by \a other.-
554-
555 Note: QDBusMessage objects are shared. Modifications made to the-
556 copy will affect the original one as well. See setDelayedReply()-
557 for more information.-
558*/-
559QDBusMessage::QDBusMessage(const QDBusMessage &other)-
560{-
561 d_ptr = other.d_ptr;-
562 d_ptr->ref.ref();-
563}
executed 12430 times by 174 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
  • ...
12430
564-
565/*!-
566 Disposes of the object and frees any resources that were being held.-
567*/-
568QDBusMessage::~QDBusMessage()-
569{-
570 if (!d_ptr->ref.deref())
!d_ptr->ref.deref()Description
TRUEevaluated 13193 times by 270 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 12676 times by 174 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
  • ...
12676-13193
571 delete d_ptr;
executed 13193 times by 270 tests: delete d_ptr;
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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
13193
572}
executed 25869 times by 286 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
25869
573-
574/*!-
575 Copies the contents of the object given by \a other.-
576-
577 Note: QDBusMessage objects are shared. Modifications made to the-
578 copy will affect the original one as well. See setDelayedReply()-
579 for more information.-
580*/-
581QDBusMessage &QDBusMessage::operator=(const QDBusMessage &other)-
582{-
583 qAtomicAssign(d_ptr, other.d_ptr);-
584 return *this;
executed 620 times by 152 tests: return *this;
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
  • ...
620
585}-
586-
587/*!-
588 Returns the name of the service or the bus address of the remote method call.-
589*/-
590QString QDBusMessage::service() const-
591{-
592 return d_ptr->service;
executed 3115 times by 162 tests: return d_ptr->service;
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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
3115
593}-
594-
595/*!-
596 Returns the path of the object that this message is being sent to (in the case of a-
597 method call) or being received from (for a signal).-
598*/-
599QString QDBusMessage::path() const-
600{-
601 return d_ptr->path;
executed 4066 times by 14 tests: return d_ptr->path;
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_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
4066
602}-
603-
604/*!-
605 Returns the interface of the method being called (in the case of a method call) or of-
606 the signal being received from.-
607*/-
608QString QDBusMessage::interface() const-
609{-
610 return d_ptr->interface;
executed 6420 times by 159 tests: return d_ptr->interface;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
6420
611}-
612-
613/*!-
614 Returns the name of the signal that was emitted or the name of the method that was called.-
615*/-
616QString QDBusMessage::member() const-
617{-
618 if (d_ptr->type != ErrorMessage)
d_ptr->type != ErrorMessageDescription
TRUEevaluated 4129 times by 159 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEnever evaluated
0-4129
619 return d_ptr->name;
executed 4129 times by 159 tests: return d_ptr->name;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
4129
620 return QString();
never executed: return QString();
0
621}-
622-
623/*!-
624 Returns the name of the error that was received.-
625*/-
626QString QDBusMessage::errorName() const-
627{-
628 if (d_ptr->type == ErrorMessage)
d_ptr->type == ErrorMessageDescription
TRUEevaluated 1804 times by 30 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_QSystemTrayIcon
  • 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
FALSEevaluated 115 times by 1 test
Evaluated by:
  • tst_qdbusmarshall - unknown status
115-1804
629 return d_ptr->name;
executed 1804 times by 30 tests: return d_ptr->name;
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_QSystemTrayIcon
  • 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_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • ...
1804
630 return QString();
executed 115 times by 1 test: return QString();
Executed by:
  • tst_qdbusmarshall - unknown status
115
631}-
632-
633/*!-
634 Returns the signature of the signal that was received or for the output arguments-
635 of a method call.-
636*/-
637QString QDBusMessage::signature() const-
638{-
639 return d_ptr->signature;
executed 2707 times by 157 tests: return d_ptr->signature;
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
  • ...
2707
640}-
641-
642/*!-
643 Returns the flag that indicates if this message should see a reply-
644 or not. This is only meaningful for \l {MethodCallMessage}{method-
645 call messages}: any other kind of message cannot have replies and-
646 this function will always return false for them.-
647*/-
648bool QDBusMessage::isReplyRequired() const-
649{-
650 // Only method calls can have replies-
651 if (d_ptr->type != QDBusMessage::MethodCallMessage)
d_ptr->type !=...hodCallMessageDescription
TRUEevaluated 679 times by 155 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
FALSEevaluated 1240 times by 14 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_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
679-1240
652 return false;
executed 679 times by 155 tests: return false;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
679
653-
654 if (!d_ptr->msg)
!d_ptr->msgDescription
TRUEevaluated 253 times by 11 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_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 987 times by 8 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
253-987
655 return d_ptr->localMessage; // if it's a local message, reply is required
executed 253 times by 11 tests: return d_ptr->localMessage;
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_qdbuslocalcalls - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
253
656 return !q_dbus_message_get_no_reply(d_ptr->msg);
executed 987 times by 8 tests: return !q_dbus_message_get_no_reply(d_ptr->msg);
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_delayed - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
987
657}-
658-
659/*!-
660 Sets whether the message will be replied later (if \a enable is-
661 true) or if an automatic reply should be generated by Qt D-Bus-
662 (if \a enable is false).-
663-
664 In D-Bus, all method calls must generate a reply to the caller, unless the-
665 caller explicitly indicates otherwise (see isReplyRequired()). QtDBus-
666 automatically generates such replies for any slots being called, but it-
667 also allows slots to indicate whether they will take responsibility-
668 of sending the reply at a later time, after the function has finished-
669 processing.-
670-
671 \sa {Delayed Replies}-
672*/-
673void QDBusMessage::setDelayedReply(bool enable) const-
674{-
675 d_ptr->delayedReply = enable;-
676}
executed 424 times by 7 tests: end of block
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
424
677-
678/*!-
679 Returns the delayed reply flag, as set by setDelayedReply(). By default, this-
680 flag is false, which means Qt D-Bus will generate automatic replies-
681 when necessary.-
682*/-
683bool QDBusMessage::isDelayedReply() const-
684{-
685 return d_ptr->delayedReply;
executed 1115 times by 14 tests: return d_ptr->delayedReply;
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_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
1115
686}-
687-
688/*!-
689 Sets the auto start flag to \a enable. This flag only makes sense-
690 for method call messages, where it tells the D-Bus server to-
691 either auto start the service responsible for the service name, or-
692 not to auto start it.-
693-
694 By default this flag is true, i.e. a service is autostarted.-
695 This means:-
696-
697 When the service that this method call is sent to is already-
698 running, the method call is sent to it. If the service is not-
699 running yet, the D-Bus daemon is requested to autostart the-
700 service that is assigned to this service name. This is-
701 handled by .service files that are placed in a directory known-
702 to the D-Bus server. These files then each contain a service-
703 name and the path to a program that should be executed when-
704 this service name is requested.-
705-
706 \since 4.7-
707*/-
708void QDBusMessage::setAutoStartService(bool enable)-
709{-
710 d_ptr->autoStartService = enable;-
711}
never executed: end of block
0
712-
713/*!-
714 Returns the auto start flag, as set by setAutoStartService(). By default, this-
715 flag is true, which means Qt D-Bus will auto start a service, if it is-
716 not running already.-
717-
718 \sa setAutoStartService()-
719-
720 \since 4.7-
721*/-
722bool QDBusMessage::autoStartService() const-
723{-
724 return d_ptr->autoStartService;
never executed: return d_ptr->autoStartService;
0
725}-
726-
727/*!-
728 Sets the arguments that are going to be sent over D-Bus to \a arguments. Those-
729 will be the arguments to a method call or the parameters in the signal.-
730-
731 \sa arguments()-
732*/-
733void QDBusMessage::setArguments(const QList<QVariant> &arguments)-
734{-
735 // FIXME: should we detach?-
736 d_ptr->arguments = arguments;-
737}
executed 3276 times by 158 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
  • ...
3276
738-
739/*!-
740 Returns the list of arguments that are going to be sent or were received from-
741 D-Bus.-
742*/-
743QList<QVariant> QDBusMessage::arguments() const-
744{-
745 return d_ptr->arguments;
executed 8738 times by 162 tests: return d_ptr->arguments;
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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
8738
746}-
747-
748/*!-
749 Appends the argument \a arg to the list of arguments to be sent over D-Bus in-
750 a method call or signal emission.-
751*/-
752-
753QDBusMessage &QDBusMessage::operator<<(const QVariant &arg)-
754{-
755 // FIXME: should we detach?-
756 d_ptr->arguments.append(arg);-
757 return *this;
executed 4754 times by 282 tests: return *this;
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
  • ...
4754
758}-
759-
760/*!-
761 Returns the message type.-
762*/-
763QDBusMessage::MessageType QDBusMessage::type() const-
764{-
765 switch (d_ptr->type) {-
766 case DBUS_MESSAGE_TYPE_METHOD_CALL:
executed 1694 times by 14 tests: case 1:
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_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
1694
767 return MethodCallMessage;
executed 1694 times by 14 tests: return MethodCallMessage;
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_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
1694
768 case DBUS_MESSAGE_TYPE_METHOD_RETURN:
executed 12723 times by 158 tests: case 2:
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
  • ...
12723
769 return ReplyMessage;
executed 12723 times by 158 tests: return ReplyMessage;
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
  • ...
12723
770 case DBUS_MESSAGE_TYPE_ERROR:
executed 3241 times by 162 tests: case 3:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSystemTrayIcon
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • ...
3241
771 return ErrorMessage;
executed 3241 times by 162 tests: return ErrorMessage;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSystemTrayIcon
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • ...
3241
772 case DBUS_MESSAGE_TYPE_SIGNAL:
executed 881 times by 162 tests: case 4:
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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
881
773 return SignalMessage;
executed 881 times by 162 tests: return SignalMessage;
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_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
881
774 default:
executed 2689 times by 155 tests: default:
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
  • ...
2689
775 break;
executed 2689 times by 155 tests: break;
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
  • ...
2689
776 }-
777 return InvalidMessage;
executed 2689 times by 155 tests: return InvalidMessage;
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
  • ...
2689
778}-
779-
780/*!-
781 Sends the message without waiting for a reply. This is suitable-
782 for errors, signals, and return values as well as calls whose-
783 return values are not necessary.-
784-
785 Returns \c true if the message was queued successfully;-
786 otherwise returns \c false.-
787-
788 \sa QDBusConnection::send()-
789*/-
790#ifndef QT_NO_DEBUG_STREAM-
791static QDebug operator<<(QDebug dbg, QDBusMessage::MessageType t)-
792{-
793 switch (t)-
794 {-
795 case QDBusMessage::MethodCallMessage:
never executed: case QDBusMessage::MethodCallMessage:
0
796 return dbg << "MethodCall";
never executed: return dbg << "MethodCall";
0
797 case QDBusMessage::ReplyMessage:
never executed: case QDBusMessage::ReplyMessage:
0
798 return dbg << "MethodReturn";
never executed: return dbg << "MethodReturn";
0
799 case QDBusMessage::SignalMessage:
never executed: case QDBusMessage::SignalMessage:
0
800 return dbg << "Signal";
never executed: return dbg << "Signal";
0
801 case QDBusMessage::ErrorMessage:
never executed: case QDBusMessage::ErrorMessage:
0
802 return dbg << "Error";
never executed: return dbg << "Error";
0
803 default:
never executed: default:
0
804 return dbg << "Invalid";
never executed: return dbg << "Invalid";
0
805 }-
806}-
807-
808static void debugVariantList(QDebug dbg, const QVariantList &list)-
809{-
810 bool first = true;-
811 QVariantList::ConstIterator it = list.constBegin();-
812 QVariantList::ConstIterator end = list.constEnd();-
813 for ( ; it != end; ++it) {
it != endDescription
TRUEnever evaluated
FALSEnever evaluated
0
814 if (!first)
!firstDescription
TRUEnever evaluated
FALSEnever evaluated
0
815 dbg.nospace() << ", ";
never executed: dbg.nospace() << ", ";
0
816 dbg.nospace() << qPrintable(QDBusUtil::argumentToString(*it));-
817 first = false;-
818 }
never executed: end of block
0
819}
never executed: end of block
0
820-
821QDebug operator<<(QDebug dbg, const QDBusMessage &msg)-
822{-
823 QDebugStateSaver saver(dbg);-
824 dbg.nospace() << "QDBusMessage(type=" << msg.type()-
825 << ", service=" << msg.service();-
826 if (msg.type() == QDBusMessage::MethodCallMessage ||
msg.type() == ...hodCallMessageDescription
TRUEnever evaluated
FALSEnever evaluated
0
827 msg.type() == QDBusMessage::SignalMessage)
msg.type() == ...:SignalMessageDescription
TRUEnever evaluated
FALSEnever evaluated
0
828 dbg.nospace() << ", path=" << msg.path()
never executed: dbg.nospace() << ", path=" << msg.path() << ", interface=" << msg.interface() << ", member=" << msg.member();
0
829 << ", interface=" << msg.interface()
never executed: dbg.nospace() << ", path=" << msg.path() << ", interface=" << msg.interface() << ", member=" << msg.member();
0
830 << ", member=" << msg.member();
never executed: dbg.nospace() << ", path=" << msg.path() << ", interface=" << msg.interface() << ", member=" << msg.member();
0
831 if (msg.type() == QDBusMessage::ErrorMessage)
msg.type() == ...::ErrorMessageDescription
TRUEnever evaluated
FALSEnever evaluated
0
832 dbg.nospace() << ", error name=" << msg.errorName()
never executed: dbg.nospace() << ", error name=" << msg.errorName() << ", error message=" << msg.errorMessage();
0
833 << ", error message=" << msg.errorMessage();
never executed: dbg.nospace() << ", error name=" << msg.errorName() << ", error message=" << msg.errorMessage();
0
834 dbg.nospace() << ", signature=" << msg.signature()-
835 << ", contents=(";-
836 debugVariantList(dbg, msg.arguments());-
837 dbg.nospace() << ") )";-
838 return dbg;
never executed: return dbg;
0
839}-
840#endif-
841-
842QT_END_NAMESPACE-
843-
844#endif // QT_NO_DBUS-
Source codeSwitch to Preprocessed file

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