PulseView  0.3.0
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[5];
23  char stringdata0[71];
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, 28) // "on_socket_notifier_activated"
37 
38  },
39  "SignalHandler\0int_received\0\0term_received\0"
40  "on_socket_notifier_activated"
41 };
42 #undef QT_MOC_LITERAL
43 
44 static const uint qt_meta_data_SignalHandler[] = {
45 
46  // content:
47  7, // revision
48  0, // classname
49  0, 0, // classinfo
50  3, 14, // methods
51  0, 0, // properties
52  0, 0, // enums/sets
53  0, 0, // constructors
54  0, // flags
55  2, // signalCount
56 
57  // signals: name, argc, parameters, tag, flags
58  1, 0, 29, 2, 0x06 /* Public */,
59  3, 0, 30, 2, 0x06 /* Public */,
60 
61  // slots: name, argc, parameters, tag, flags
62  4, 0, 31, 2, 0x08 /* Private */,
63 
64  // signals: parameters
65  QMetaType::Void,
66  QMetaType::Void,
67 
68  // slots: parameters
69  QMetaType::Void,
70 
71  0 // eod
72 };
73 
74 void SignalHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
75 {
76  if (_c == QMetaObject::InvokeMetaMethod) {
77  SignalHandler *_t = static_cast<SignalHandler *>(_o);
78  Q_UNUSED(_t)
79  switch (_id) {
80  case 0: _t->int_received(); break;
81  case 1: _t->term_received(); break;
82  case 2: _t->on_socket_notifier_activated(); break;
83  default: ;
84  }
85  } else if (_c == QMetaObject::IndexOfMethod) {
86  int *result = reinterpret_cast<int *>(_a[0]);
87  void **func = reinterpret_cast<void **>(_a[1]);
88  {
89  typedef void (SignalHandler::*_t)();
90  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SignalHandler::int_received)) {
91  *result = 0;
92  }
93  }
94  {
95  typedef void (SignalHandler::*_t)();
96  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SignalHandler::term_received)) {
97  *result = 1;
98  }
99  }
100  }
101  Q_UNUSED(_a);
102 }
103 
104 const QMetaObject SignalHandler::staticMetaObject = {
105  { &QObject::staticMetaObject, qt_meta_stringdata_SignalHandler.data,
106  qt_meta_data_SignalHandler, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
107 };
108 
109 
110 const QMetaObject *SignalHandler::metaObject() const
111 {
112  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
113 }
114 
115 void *SignalHandler::qt_metacast(const char *_clname)
116 {
117  if (!_clname) return Q_NULLPTR;
118  if (!strcmp(_clname, qt_meta_stringdata_SignalHandler.stringdata0))
119  return static_cast<void*>(const_cast< SignalHandler*>(this));
120  return QObject::qt_metacast(_clname);
121 }
122 
123 int SignalHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
124 {
125  _id = QObject::qt_metacall(_c, _id, _a);
126  if (_id < 0)
127  return _id;
128  if (_c == QMetaObject::InvokeMetaMethod) {
129  if (_id < 3)
130  qt_static_metacall(this, _c, _id, _a);
131  _id -= 3;
132  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
133  if (_id < 3)
134  *reinterpret_cast<int*>(_a[0]) = -1;
135  _id -= 3;
136  }
137  return _id;
138 }
139 
140 // SIGNAL 0
142 {
143  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
144 }
145 
146 // SIGNAL 1
148 {
149  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
150 }
151 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()