PulseView  unreleased development snapshot
A Qt-based sigrok GUI
moc_mathsignal.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'mathsignal.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/data/mathsignal.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'mathsignal.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[8];
23  char stringdata0[119];
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__data__MathSignal_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 20), // "pv::data::MathSignal"
33 QT_MOC_LITERAL(1, 21, 18), // "expression_changed"
34 QT_MOC_LITERAL(2, 40, 0), // ""
35 QT_MOC_LITERAL(3, 41, 10), // "expression"
36 QT_MOC_LITERAL(4, 52, 24), // "on_capture_state_changed"
37 QT_MOC_LITERAL(5, 77, 5), // "state"
38 QT_MOC_LITERAL(6, 83, 16), // "on_data_received"
39 QT_MOC_LITERAL(7, 100, 18) // "on_enabled_changed"
40 
41  },
42  "pv::data::MathSignal\0expression_changed\0"
43  "\0expression\0on_capture_state_changed\0"
44  "state\0on_data_received\0on_enabled_changed"
45 };
46 #undef QT_MOC_LITERAL
47 
48 static const uint qt_meta_data_pv__data__MathSignal[] = {
49 
50  // content:
51  7, // revision
52  0, // classname
53  0, 0, // classinfo
54  4, 14, // methods
55  1, 42, // properties
56  0, 0, // enums/sets
57  0, 0, // constructors
58  0, // flags
59  1, // signalCount
60 
61  // signals: name, argc, parameters, tag, flags
62  1, 1, 34, 2, 0x06 /* Public */,
63 
64  // slots: name, argc, parameters, tag, flags
65  4, 1, 37, 2, 0x08 /* Private */,
66  6, 0, 40, 2, 0x08 /* Private */,
67  7, 0, 41, 2, 0x08 /* Private */,
68 
69  // signals: parameters
70  QMetaType::Void, QMetaType::QString, 3,
71 
72  // slots: parameters
73  QMetaType::Void, QMetaType::Int, 5,
74  QMetaType::Void,
75  QMetaType::Void,
76 
77  // properties: name, type, flags
78  3, QMetaType::QString, 0x00495003,
79 
80  // properties: notify_signal_id
81  0,
82 
83  0 // eod
84 };
85 
86 void pv::data::MathSignal::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
87 {
88  if (_c == QMetaObject::InvokeMetaMethod) {
89  MathSignal *_t = static_cast<MathSignal *>(_o);
90  Q_UNUSED(_t)
91  switch (_id) {
92  case 0: _t->expression_changed((*reinterpret_cast< QString(*)>(_a[1]))); break;
93  case 1: _t->on_capture_state_changed((*reinterpret_cast< int(*)>(_a[1]))); break;
94  case 2: _t->on_data_received(); break;
95  case 3: _t->on_enabled_changed(); break;
96  default: ;
97  }
98  } else if (_c == QMetaObject::IndexOfMethod) {
99  int *result = reinterpret_cast<int *>(_a[0]);
100  void **func = reinterpret_cast<void **>(_a[1]);
101  {
102  typedef void (MathSignal::*_t)(QString );
103  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MathSignal::expression_changed)) {
104  *result = 0;
105  }
106  }
107  }
108 #ifndef QT_NO_PROPERTIES
109  else if (_c == QMetaObject::ReadProperty) {
110  MathSignal *_t = static_cast<MathSignal *>(_o);
111  Q_UNUSED(_t)
112  void *_v = _a[0];
113  switch (_id) {
114  case 0: *reinterpret_cast< QString*>(_v) = _t->get_expression(); break;
115  default: break;
116  }
117  } else if (_c == QMetaObject::WriteProperty) {
118  MathSignal *_t = static_cast<MathSignal *>(_o);
119  Q_UNUSED(_t)
120  void *_v = _a[0];
121  switch (_id) {
122  case 0: _t->set_expression(*reinterpret_cast< QString*>(_v)); break;
123  default: break;
124  }
125  } else if (_c == QMetaObject::ResetProperty) {
126  }
127 #endif // QT_NO_PROPERTIES
128 }
129 
130 const QMetaObject pv::data::MathSignal::staticMetaObject = {
131  { &SignalBase::staticMetaObject, qt_meta_stringdata_pv__data__MathSignal.data,
132  qt_meta_data_pv__data__MathSignal, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
133 };
134 
135 
136 const QMetaObject *pv::data::MathSignal::metaObject() const
137 {
138  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
139 }
140 
141 void *pv::data::MathSignal::qt_metacast(const char *_clname)
142 {
143  if (!_clname) return Q_NULLPTR;
144  if (!strcmp(_clname, qt_meta_stringdata_pv__data__MathSignal.stringdata0))
145  return static_cast<void*>(const_cast< MathSignal*>(this));
146  return SignalBase::qt_metacast(_clname);
147 }
148 
149 int pv::data::MathSignal::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
150 {
151  _id = SignalBase::qt_metacall(_c, _id, _a);
152  if (_id < 0)
153  return _id;
154  if (_c == QMetaObject::InvokeMetaMethod) {
155  if (_id < 4)
156  qt_static_metacall(this, _c, _id, _a);
157  _id -= 4;
158  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
159  if (_id < 4)
160  *reinterpret_cast<int*>(_a[0]) = -1;
161  _id -= 4;
162  }
163 #ifndef QT_NO_PROPERTIES
164  else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
165  || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
166  qt_static_metacall(this, _c, _id, _a);
167  _id -= 1;
168  } else if (_c == QMetaObject::QueryPropertyDesignable) {
169  _id -= 1;
170  } else if (_c == QMetaObject::QueryPropertyScriptable) {
171  _id -= 1;
172  } else if (_c == QMetaObject::QueryPropertyStored) {
173  _id -= 1;
174  } else if (_c == QMetaObject::QueryPropertyEditable) {
175  _id -= 1;
176  } else if (_c == QMetaObject::QueryPropertyUser) {
177  _id -= 1;
178  }
179 #endif // QT_NO_PROPERTIES
180  return _id;
181 }
182 
183 // SIGNAL 0
185 {
186  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
187  QMetaObject::activate(this, &staticMetaObject, 0, _a);
188 }
189 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)
static const qt_meta_stringdata_pv__data__MathSignal_t qt_meta_stringdata_pv__data__MathSignal
void expression_changed(QString expression)
static const uint qt_meta_data_pv__data__MathSignal[]