OpenCoverage

moc_qpacketprotocol_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/plugins/qmltooling/packetprotocol/.moc/moc_qpacketprotocol_p.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3#pragma GCC diagnostic push-
4-
5-
6#pragma GCC diagnostic ignored "-Wdeprecated-declarations"-
7-
8struct qt_meta_stringdata_QPacketProtocol_t {-
9 QByteArrayData data[4];-
10 char stringdata0[33];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QPacketProtocol_t qt_meta_stringdata_QPacketProtocol = {-
18 {-
19{ { { -1 } }, 15, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QPacketProtocol_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 9, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QPacketProtocol_t-
29, -
30stringdata0-
31) -
32+ 16 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QPacketProtocol_t-
36, -
37stringdata0-
38) -
39+ 26 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 5, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QPacketProtocol_t-
43, -
44stringdata0-
45) -
46+ 27 - 3 * sizeof(QByteArrayData)) }-
47-
48 },-
49 "QPacketProtocol\0readyRead\0\0error"-
50};-
51-
52-
53static const uint qt_meta_data_QPacketProtocol[] = {-
54-
55-
56 7,-
57 0,-
58 0, 0,-
59 2, 14,-
60 0, 0,-
61 0, 0,-
62 0, 0,-
63 0,-
64 2,-
65-
66-
67 1, 0, 24, 2, 0x06 ,-
68 3, 0, 25, 2, 0x06 ,-
69-
70-
71 QMetaType::Void,-
72 QMetaType::Void,-
73-
74 0-
75};-
76-
77void QPacketProtocol::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
78{-
79 if (_c == QMetaObject::InvokeMetaMethod) {-
80 QPacketProtocol *_t = static_cast<QPacketProtocol *>(_o);-
81 (void)_t;-
82 switch (_id) {-
83 case 0: _t->readyRead(); break;-
84 case 1: _t->error(); break;-
85 default: ;-
86 }-
87 } else if (_c == QMetaObject::IndexOfMethod) {-
88 int *result = reinterpret_cast<int *>(_a[0]);-
89 {-
90 using _t = void (QPacketProtocol::*)();-
91 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPacketProtocol::readyRead)) {-
92 *result = 0;-
93 return;-
94 }-
95 }-
96 {-
97 using _t = void (QPacketProtocol::*)();-
98 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPacketProtocol::error)) {-
99 *result = 1;-
100 return;-
101 }-
102 }-
103 }-
104 (void)_a;;-
105}-
106-
107 const QMetaObject QPacketProtocol::staticMetaObject = {-
108 { &QObject::staticMetaObject, qt_meta_stringdata_QPacketProtocol.data,-
109 qt_meta_data_QPacketProtocol, qt_static_metacall, nullptr, nullptr}-
110};-
111-
112-
113const QMetaObject *QPacketProtocol::metaObject() const-
114{-
115 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
116}-
117-
118void *QPacketProtocol::qt_metacast(const char *_clname)-
119{-
120 if (!_clname) return nullptr;-
121 if (!strcmp(_clname, qt_meta_stringdata_QPacketProtocol.stringdata0))-
122 return static_cast<void*>(this);-
123 return QObject::qt_metacast(_clname);-
124}-
125-
126int QPacketProtocol::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
127{-
128 _id = QObject::qt_metacall(_c, _id, _a);-
129 if (_id < 0)-
130 return _id;-
131 if (_c == QMetaObject::InvokeMetaMethod) {-
132 if (_id < 2)-
133 qt_static_metacall(this, _c, _id, _a);-
134 _id -= 2;-
135 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
136 if (_id < 2)-
137 *reinterpret_cast<int*>(_a[0]) = -1;-
138 _id -= 2;-
139 }-
140 return _id;-
141}-
142-
143-
144void QPacketProtocol::readyRead()-
145{-
146 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
147}
executed 8682 times by 12 tests: end of block
Executed by:
  • tst_qdebugmessageservice
  • tst_qpacketprotocol
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
8682
148-
149-
150void QPacketProtocol::error()-
151{-
152 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
153}
never executed: end of block
0
154-
155#pragma GCC diagnostic pop-
156-
157-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0