qdbuscontext.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6 -
7QDBusContextPrivate *QDBusContextPrivate::set(QObject *obj, QDBusContextPrivate *newContext) -
8{ -
9 -
10 if (qobject_cast<QDBusAbstractAdaptor *>(obj))
evaluated: qobject_cast<QDBusAbstractAdaptor *>(obj)
TRUEFALSE
yes
Evaluation Count:266
yes
Evaluation Count:524
266-524
11 obj = obj->parent();
executed: obj = obj->parent();
Execution Count:266
266
12 -
13 qt_noop(); -
14 -
15 void *ptr = obj->qt_metacast("QDBusContext"); -
16 QDBusContext *q_ptr = reinterpret_cast<QDBusContext *>(ptr); -
17 if (q_ptr) {
evaluated: q_ptr
TRUEFALSE
yes
Evaluation Count:2
yes
Evaluation Count:788
2-788
18 QDBusContextPrivate *old = q_ptr->d_ptr; -
19 q_ptr->d_ptr = newContext; -
20 return old;
executed: return old;
Execution Count:2
2
21 } -
22 -
23 return 0;
executed: return 0;
Execution Count:788
788
24} -
25QDBusContext::QDBusContext() -
26 : d_ptr(0) -
27{ -
28}
executed: }
Execution Count:1
1
29 -
30 -
31 -
32 -
33QDBusContext::~QDBusContext() -
34{ -
35} -
36bool QDBusContext::calledFromDBus() const -
37{ -
38 return d_ptr;
never executed: return d_ptr;
0
39} -
40 -
41 -
42 -
43 -
44QDBusConnection QDBusContext::connection() const -
45{ -
46 return d_ptr->connection;
executed: return d_ptr->connection;
Execution Count:1
1
47} -
48 -
49 -
50 -
51 -
52const QDBusMessage &QDBusContext::message() const -
53{ -
54 return d_ptr->message;
executed: return d_ptr->message;
Execution Count:2
2
55} -
56 -
57 -
58 -
59 -
60 -
61 -
62bool QDBusContext::isDelayedReply() const -
63{ -
64 return message().isDelayedReply();
never executed: return message().isDelayedReply();
0
65} -
66void QDBusContext::setDelayedReply(bool enable) const -
67{ -
68 message().setDelayedReply(enable); -
69}
executed: }
Execution Count:1
1
70void QDBusContext::sendErrorReply(const QString &name, const QString &msg) const -
71{ -
72 setDelayedReply(true); -
73 connection().send(message().createErrorReply(name, msg)); -
74}
executed: }
Execution Count:1
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: }
0
80 -
81 -
82 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial