qdbuscontext.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/dbus/qdbuscontext.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7QDBusContextPrivate *QDBusContextPrivate::set(QObject *obj, QDBusContextPrivate *newContext)-
8{-
9-
10 if (qobject_cast<QDBusAbstractAdaptor *>(obj)
qobject_cast<Q...daptor *>(obj)Description
TRUEevaluated 302 times by 5 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
FALSEevaluated 3536 times by 157 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
  • ...
)
302-3536
11 obj = obj->parent();
executed 302 times by 5 tests: obj = obj->parent();
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdbusthreading - unknown status
302
12-
13 ((!(obj)) ? qt_assert("obj",__FILE__,57) : qt_noop());-
14-
15 void *ptr = obj->qt_metacast("QDBusContext");-
16 QDBusContext *q_ptr = reinterpret_cast<QDBusContext *>(ptr);-
17 if (q_ptr
q_ptrDescription
TRUEevaluated 1044 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 2794 times by 158 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
  • ...
) {
1044-2794
18 QDBusContextPrivate *old = q_ptr->d_ptr;-
19 q_ptr->d_ptr = newContext;-
20 return
executed 1044 times by 4 tests: return old;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
old;
executed 1044 times by 4 tests: return old;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
1044
21 }-
22-
23 return
executed 2794 times by 158 tests: return 0;
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
  • ...
0;
executed 2794 times by 158 tests: return 0;
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
  • ...
2794
24}-
25QDBusContext::QDBusContext()-
26 : d_ptr(0)-
27{-
28}
executed 6 times by 4 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
6
29-
30-
31-
32-
33QDBusContext::~QDBusContext()-
34{-
35}-
36bool QDBusContext::calledFromDBus() const-
37{-
38 return
executed 20 times by 1 test: return d_ptr;
Executed by:
  • tst_qdbusinterface - unknown status
d_ptr;
executed 20 times by 1 test: return d_ptr;
Executed by:
  • tst_qdbusinterface - unknown status
20
39}-
40-
41-
42-
43-
44QDBusConnection QDBusContext::connection() const-
45{-
46 return
executed 21 times by 2 tests: return d_ptr->connection;
Executed by:
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
d_ptr->connection;
executed 21 times by 2 tests: return d_ptr->connection;
Executed by:
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
21
47}-
48-
49-
50-
51-
52const QDBusMessage &QDBusContext::message() const-
53{-
54 return
executed 84 times by 3 tests: return d_ptr->message;
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
d_ptr->message;
executed 84 times by 3 tests: return d_ptr->message;
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
84
55}-
56-
57-
58-
59-
60-
61-
62bool QDBusContext::isDelayedReply() const-
63{-
64 return
never executed: return message().isDelayedReply();
message().isDelayedReply();
never executed: return message().isDelayedReply();
0
65}-
66void QDBusContext::setDelayedReply(bool enable) const-
67{-
68 message().setDelayedReply(enable);-
69}
executed 42 times by 3 tests: end of block
Executed by:
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbusinterface - unknown status
42
70void QDBusContext::sendErrorReply(const QString &name, const QString &msg) const-
71{-
72 setDelayedReply(true);-
73 connection().send(message().createErrorReply(name, msg));-
74}
executed 1 time by 1 test: end of block
Executed by:
  • tst_qdbuscontext - unknown status
1
75void QDBusContext::sendErrorReply(QDBusError::ErrorType type, const QString &msg) const-
76{-
77 setDelayedReply(true);-
78 connection().send(message().createErrorReply(type, msg));-
79}
never executed: end of block
0
80-
81-
Switch to Source codePreprocessed file

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