PulseView  unreleased development snapshot
A Qt-based sigrok GUI
moc_session.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'session.hpp'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../../../pv/session.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'session.hpp' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.5.1. It"
16 #error "cannot be used with the include files from this version of Qt."
17 #error "(The moc has changed too much.)"
18 #endif
19 
20 QT_BEGIN_MOC_NAMESPACE
22  QByteArrayData data[27];
23  char stringdata0[345];
24 };
25 #define QT_MOC_LITERAL(idx, ofs, len) \
26  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
27  qptrdiff(offsetof(qt_meta_stringdata_pv__Session_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 11), // "pv::Session"
33 QT_MOC_LITERAL(1, 12, 21), // "capture_state_changed"
34 QT_MOC_LITERAL(2, 34, 0), // ""
35 QT_MOC_LITERAL(3, 35, 5), // "state"
36 QT_MOC_LITERAL(4, 41, 14), // "device_changed"
37 QT_MOC_LITERAL(5, 56, 15), // "signals_changed"
38 QT_MOC_LITERAL(6, 72, 12), // "name_changed"
39 QT_MOC_LITERAL(7, 85, 13), // "trigger_event"
40 QT_MOC_LITERAL(8, 99, 10), // "segment_id"
41 QT_MOC_LITERAL(9, 110, 15), // "util::Timestamp"
42 QT_MOC_LITERAL(10, 126, 8), // "location"
43 QT_MOC_LITERAL(11, 135, 11), // "new_segment"
44 QT_MOC_LITERAL(12, 147, 14), // "new_segment_id"
45 QT_MOC_LITERAL(13, 162, 17), // "segment_completed"
46 QT_MOC_LITERAL(14, 180, 13), // "data_received"
47 QT_MOC_LITERAL(15, 194, 8), // "add_view"
48 QT_MOC_LITERAL(16, 203, 8), // "ViewType"
49 QT_MOC_LITERAL(17, 212, 4), // "type"
50 QT_MOC_LITERAL(18, 217, 8), // "Session*"
51 QT_MOC_LITERAL(19, 226, 7), // "session"
52 QT_MOC_LITERAL(20, 234, 20), // "session_error_raised"
53 QT_MOC_LITERAL(21, 255, 4), // "text"
54 QT_MOC_LITERAL(22, 260, 9), // "info_text"
55 QT_MOC_LITERAL(23, 270, 13), // "on_data_saved"
56 QT_MOC_LITERAL(24, 284, 24), // "on_new_decoders_selected"
57 QT_MOC_LITERAL(25, 309, 26), // "vector<const srd_decoder*>"
58 QT_MOC_LITERAL(26, 336, 8) // "decoders"
59 
60  },
61  "pv::Session\0capture_state_changed\0\0"
62  "state\0device_changed\0signals_changed\0"
63  "name_changed\0trigger_event\0segment_id\0"
64  "util::Timestamp\0location\0new_segment\0"
65  "new_segment_id\0segment_completed\0"
66  "data_received\0add_view\0ViewType\0type\0"
67  "Session*\0session\0session_error_raised\0"
68  "text\0info_text\0on_data_saved\0"
69  "on_new_decoders_selected\0"
70  "vector<const srd_decoder*>\0decoders"
71 };
72 #undef QT_MOC_LITERAL
73 
74 static const uint qt_meta_data_pv__Session[] = {
75 
76  // content:
77  7, // revision
78  0, // classname
79  0, 0, // classinfo
80  12, 14, // methods
81  0, 0, // properties
82  0, 0, // enums/sets
83  0, 0, // constructors
84  0, // flags
85  10, // signalCount
86 
87  // signals: name, argc, parameters, tag, flags
88  1, 1, 74, 2, 0x06 /* Public */,
89  4, 0, 77, 2, 0x06 /* Public */,
90  5, 0, 78, 2, 0x06 /* Public */,
91  6, 0, 79, 2, 0x06 /* Public */,
92  7, 2, 80, 2, 0x06 /* Public */,
93  11, 1, 85, 2, 0x06 /* Public */,
94  13, 1, 88, 2, 0x06 /* Public */,
95  14, 0, 91, 2, 0x06 /* Public */,
96  15, 2, 92, 2, 0x06 /* Public */,
97  20, 2, 97, 2, 0x06 /* Public */,
98 
99  // slots: name, argc, parameters, tag, flags
100  23, 0, 102, 2, 0x0a /* Public */,
101  24, 1, 103, 2, 0x0a /* Public */,
102 
103  // signals: parameters
104  QMetaType::Void, QMetaType::Int, 3,
105  QMetaType::Void,
106  QMetaType::Void,
107  QMetaType::Void,
108  QMetaType::Void, QMetaType::Int, 0x80000000 | 9, 8, 10,
109  QMetaType::Void, QMetaType::Int, 12,
110  QMetaType::Void, QMetaType::Int, 8,
111  QMetaType::Void,
112  QMetaType::Void, 0x80000000 | 16, 0x80000000 | 18, 17, 19,
113  QMetaType::Void, QMetaType::QString, QMetaType::QString, 21, 22,
114 
115  // slots: parameters
116  QMetaType::Void,
117  QMetaType::Void, 0x80000000 | 25, 26,
118 
119  0 // eod
120 };
121 
122 void pv::Session::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
123 {
124  if (_c == QMetaObject::InvokeMetaMethod) {
125  Session *_t = static_cast<Session *>(_o);
126  Q_UNUSED(_t)
127  switch (_id) {
128  case 0: _t->capture_state_changed((*reinterpret_cast< int(*)>(_a[1]))); break;
129  case 1: _t->device_changed(); break;
130  case 2: _t->signals_changed(); break;
131  case 3: _t->name_changed(); break;
132  case 4: _t->trigger_event((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< util::Timestamp(*)>(_a[2]))); break;
133  case 5: _t->new_segment((*reinterpret_cast< int(*)>(_a[1]))); break;
134  case 6: _t->segment_completed((*reinterpret_cast< int(*)>(_a[1]))); break;
135  case 7: _t->data_received(); break;
136  case 8: _t->add_view((*reinterpret_cast< ViewType(*)>(_a[1])),(*reinterpret_cast< Session*(*)>(_a[2]))); break;
137  case 9: _t->session_error_raised((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
138  case 10: _t->on_data_saved(); break;
139  case 11: _t->on_new_decoders_selected((*reinterpret_cast< vector<const srd_decoder*>(*)>(_a[1]))); break;
140  default: ;
141  }
142  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
143  switch (_id) {
144  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
145  case 8:
146  switch (*reinterpret_cast<int*>(_a[1])) {
147  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
148  case 1:
149  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Session* >(); break;
150  }
151  break;
152  }
153  } else if (_c == QMetaObject::IndexOfMethod) {
154  int *result = reinterpret_cast<int *>(_a[0]);
155  void **func = reinterpret_cast<void **>(_a[1]);
156  {
157  typedef void (Session::*_t)(int );
158  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::capture_state_changed)) {
159  *result = 0;
160  }
161  }
162  {
163  typedef void (Session::*_t)();
164  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::device_changed)) {
165  *result = 1;
166  }
167  }
168  {
169  typedef void (Session::*_t)();
170  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::signals_changed)) {
171  *result = 2;
172  }
173  }
174  {
175  typedef void (Session::*_t)();
176  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::name_changed)) {
177  *result = 3;
178  }
179  }
180  {
181  typedef void (Session::*_t)(int , util::Timestamp );
182  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::trigger_event)) {
183  *result = 4;
184  }
185  }
186  {
187  typedef void (Session::*_t)(int );
188  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::new_segment)) {
189  *result = 5;
190  }
191  }
192  {
193  typedef void (Session::*_t)(int );
194  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::segment_completed)) {
195  *result = 6;
196  }
197  }
198  {
199  typedef void (Session::*_t)();
200  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::data_received)) {
201  *result = 7;
202  }
203  }
204  {
205  typedef void (Session::*_t)(ViewType , Session * );
206  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::add_view)) {
207  *result = 8;
208  }
209  }
210  {
211  typedef void (Session::*_t)(const QString , const QString );
212  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Session::session_error_raised)) {
213  *result = 9;
214  }
215  }
216  }
217 }
218 
219 const QMetaObject pv::Session::staticMetaObject = {
220  { &QObject::staticMetaObject, qt_meta_stringdata_pv__Session.data,
221  qt_meta_data_pv__Session, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
222 };
223 
224 
225 const QMetaObject *pv::Session::metaObject() const
226 {
227  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
228 }
229 
230 void *pv::Session::qt_metacast(const char *_clname)
231 {
232  if (!_clname) return Q_NULLPTR;
233  if (!strcmp(_clname, qt_meta_stringdata_pv__Session.stringdata0))
234  return static_cast<void*>(const_cast< Session*>(this));
235  return QObject::qt_metacast(_clname);
236 }
237 
238 int pv::Session::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
239 {
240  _id = QObject::qt_metacall(_c, _id, _a);
241  if (_id < 0)
242  return _id;
243  if (_c == QMetaObject::InvokeMetaMethod) {
244  if (_id < 12)
245  qt_static_metacall(this, _c, _id, _a);
246  _id -= 12;
247  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
248  if (_id < 12)
249  qt_static_metacall(this, _c, _id, _a);
250  _id -= 12;
251  }
252  return _id;
253 }
254 
255 // SIGNAL 0
257 {
258  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
259  QMetaObject::activate(this, &staticMetaObject, 0, _a);
260 }
261 
262 // SIGNAL 1
264 {
265  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
266 }
267 
268 // SIGNAL 2
270 {
271  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
272 }
273 
274 // SIGNAL 3
276 {
277  QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
278 }
279 
280 // SIGNAL 4
282 {
283  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
284  QMetaObject::activate(this, &staticMetaObject, 4, _a);
285 }
286 
287 // SIGNAL 5
289 {
290  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
291  QMetaObject::activate(this, &staticMetaObject, 5, _a);
292 }
293 
294 // SIGNAL 6
296 {
297  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
298  QMetaObject::activate(this, &staticMetaObject, 6, _a);
299 }
300 
301 // SIGNAL 7
303 {
304  QMetaObject::activate(this, &staticMetaObject, 7, Q_NULLPTR);
305 }
306 
307 // SIGNAL 8
309 {
310  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
311  QMetaObject::activate(this, &staticMetaObject, 8, _a);
312 }
313 
314 // SIGNAL 9
315 void pv::Session::session_error_raised(const QString _t1, const QString _t2)
316 {
317  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
318  QMetaObject::activate(this, &staticMetaObject, 9, _a);
319 }
320 QT_END_MOC_NAMESPACE
void data_received()
void segment_completed(int segment_id)
void name_changed()
void session_error_raised(const QString text, const QString info_text)
void signals_changed()
void capture_state_changed(int state)
static const uint qt_meta_data_pv__Session[]
Definition: moc_session.cpp:74
void add_view(ViewType type, Session *session)
void new_segment(int new_segment_id)
void trigger_event(int segment_id, util::Timestamp location)
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_session.cpp:25
void device_changed()
boost::multiprecision::number< boost::multiprecision::cpp_dec_float< 24 >, boost::multiprecision::et_off > Timestamp
Timestamp type providing yoctosecond resolution.
Definition: util.hpp:67
static const qt_meta_stringdata_pv__Session_t qt_meta_stringdata_pv__Session
Definition: moc_session.cpp:30