PulseView  unreleased development snapshot
A Qt-based sigrok GUI
moc_signalhandler.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'signalhandler.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 "../../signalhandler.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'signalhandler.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[6];
23  char stringdata0[85];
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_SignalHandler_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 13), // "SignalHandler"
33 QT_MOC_LITERAL(1, 14, 12), // "int_received"
34 QT_MOC_LITERAL(2, 27, 0), // ""
35 QT_MOC_LITERAL(3, 28, 13), // "term_received"
36 QT_MOC_LITERAL(4, 42, 13), // "usr1_received"
37 QT_MOC_LITERAL(5, 56, 28) // "on_socket_notifier_activated"
38 
39  },
40  "SignalHandler\0int_received\0\0term_received\0"
41  "usr1_received\0on_socket_notifier_activated"
42 };
43 #undef QT_MOC_LITERAL
44 
45 static const uint qt_meta_data_SignalHandler[] = {
46 
47  // content:
48  7, // revision
49  0, // classname
50  0, 0, // classinfo
51  4, 14, // methods
52  0, 0, // properties
53  0, 0, // enums/sets
54  0, 0, // constructors
55  0, // flags
56  3, // signalCount
57 
58  // signals: name, argc, parameters, tag, flags
59  1, 0, 34, 2, 0x06 /* Public */,
60  3, 0, 35, 2, 0x06 /* Public */,
61  4, 0, 36, 2, 0x06 /* Public */,
62 
63  // slots: name, argc, parameters, tag, flags
64  5, 0, 37, 2, 0x08 /* Private */,
65 
66  // signals: parameters
67  QMetaType::Void,
68  QMetaType::Void,
69  QMetaType::Void,
70 
71  // slots: parameters
72  QMetaType::Void,
73 
74  0 // eod
75 };
76 
77 void SignalHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
78 {
79  if (_c == QMetaObject::InvokeMetaMethod) {
80  SignalHandler *_t = static_cast<SignalHandler *>(_o);
81  Q_UNUSED(_t)
82  switch (_id) {
83  case 0: _t->int_received(); break;
84  case 1: _t->term_received(); break;
85  case 2: _t->usr1_received(); break;
86  case 3: _t->on_socket_notifier_activated(); break;
87  default: ;
88  }
89  } else if (_c == QMetaObject::IndexOfMethod) {
90  int *result = reinterpret_cast<int *>(_a[0]);
91  void **func = reinterpret_cast<void **>(_a[1]);
92  {
93  typedef void (SignalHandler::*_t)();
94  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SignalHandler::int_received)) {
95  *result = 0;
96  }
97  }
98  {
99  typedef void (SignalHandler::*_t)();
100  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SignalHandler::term_received)) {
101  *result = 1;
102  }
103  }
104  {
105  typedef void (SignalHandler::*_t)();
106  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SignalHandler::usr1_received)) {
107  *result = 2;
108  }
109  }
110  }
111  Q_UNUSED(_a);
112 }
113 
114 const QMetaObject SignalHandler::staticMetaObject = {
115  { &QObject::staticMetaObject, qt_meta_stringdata_SignalHandler.data,
116  qt_meta_data_SignalHandler, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
117 };
118 
119 
120 const QMetaObject *SignalHandler::metaObject() const
121 {
122  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
123 }
124 
125 void *SignalHandler::qt_metacast(const char *_clname)
126 {
127  if (!_clname) return Q_NULLPTR;
128  if (!strcmp(_clname, qt_meta_stringdata_SignalHandler.stringdata0))
129  return static_cast<void*>(const_cast< SignalHandler*>(this));
130  return QObject::qt_metacast(_clname);
131 }
132 
133 int SignalHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
134 {
135  _id = QObject::qt_metacall(_c, _id, _a);
136  if (_id < 0)
137  return _id;
138  if (_c == QMetaObject::InvokeMetaMethod) {
139  if (_id < 4)
140  qt_static_metacall(this, _c, _id, _a);
141  _id -= 4;
142  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
143  if (_id < 4)
144  *reinterpret_cast<int*>(_a[0]) = -1;
145  _id -= 4;
146  }
147  return _id;
148 }
149 
150 // SIGNAL 0
152 {
153  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
154 }
155 
156 // SIGNAL 1
158 {
159  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
160 }
161 
162 // SIGNAL 2
164 {
165  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
166 }
167 QT_END_MOC_NAMESPACE
static const qt_meta_stringdata_SignalHandler_t qt_meta_stringdata_SignalHandler
#define QT_MOC_LITERAL(idx, ofs, len)
static const uint qt_meta_data_SignalHandler[]
void on_socket_notifier_activated()