drumstick  1.1.3
moc_rtmidiinput.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'rtmidiinput.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.0)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include <memory>
10 #include "../../../../include/drumstick/rtmidiinput.h"
11 #include <QtCore/qbytearray.h>
12 #include <QtCore/qmetatype.h>
13 #if !defined(Q_MOC_OUTPUT_REVISION)
14 #error "The header file 'rtmidiinput.h' doesn't include <QObject>."
15 #elif Q_MOC_OUTPUT_REVISION != 67
16 #error "This file was generated using the moc from 5.15.0. It"
17 #error "cannot be used with the include files from this version of Qt."
18 #error "(The moc has changed too much.)"
19 #endif
20 
21 QT_BEGIN_MOC_NAMESPACE
22 QT_WARNING_PUSH
23 QT_WARNING_DISABLE_DEPRECATED
24 struct qt_meta_stringdata_drumstick__rt__MIDIInput_t {
25  QByteArrayData data[20];
26  char stringdata0[220];
27 };
28 #define QT_MOC_LITERAL(idx, ofs, len) \
29  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
30  qptrdiff(offsetof(qt_meta_stringdata_drumstick__rt__MIDIInput_t, stringdata0) + ofs \
31  - idx * sizeof(QByteArrayData)) \
32  )
33 static const qt_meta_stringdata_drumstick__rt__MIDIInput_t qt_meta_stringdata_drumstick__rt__MIDIInput = {
34  {
35 QT_MOC_LITERAL(0, 0, 24), // "drumstick::rt::MIDIInput"
36 QT_MOC_LITERAL(1, 25, 11), // "midiNoteOff"
37 QT_MOC_LITERAL(2, 37, 0), // ""
38 QT_MOC_LITERAL(3, 38, 4), // "chan"
39 QT_MOC_LITERAL(4, 43, 4), // "note"
40 QT_MOC_LITERAL(5, 48, 3), // "vel"
41 QT_MOC_LITERAL(6, 52, 10), // "midiNoteOn"
42 QT_MOC_LITERAL(7, 63, 15), // "midiKeyPressure"
43 QT_MOC_LITERAL(8, 79, 5), // "value"
44 QT_MOC_LITERAL(9, 85, 14), // "midiController"
45 QT_MOC_LITERAL(10, 100, 7), // "control"
46 QT_MOC_LITERAL(11, 108, 11), // "midiProgram"
47 QT_MOC_LITERAL(12, 120, 7), // "program"
48 QT_MOC_LITERAL(13, 128, 19), // "midiChannelPressure"
49 QT_MOC_LITERAL(14, 148, 13), // "midiPitchBend"
50 QT_MOC_LITERAL(15, 162, 9), // "midiSysex"
51 QT_MOC_LITERAL(16, 172, 4), // "data"
52 QT_MOC_LITERAL(17, 177, 16), // "midiSystemCommon"
53 QT_MOC_LITERAL(18, 194, 6), // "status"
54 QT_MOC_LITERAL(19, 201, 18) // "midiSystemRealtime"
55 
56  },
57  "drumstick::rt::MIDIInput\0midiNoteOff\0"
58  "\0chan\0note\0vel\0midiNoteOn\0midiKeyPressure\0"
59  "value\0midiController\0control\0midiProgram\0"
60  "program\0midiChannelPressure\0midiPitchBend\0"
61  "midiSysex\0data\0midiSystemCommon\0status\0"
62  "midiSystemRealtime"
63 };
64 #undef QT_MOC_LITERAL
65 
66 static const uint qt_meta_data_drumstick__rt__MIDIInput[] = {
67 
68  // content:
69  8, // revision
70  0, // classname
71  0, 0, // classinfo
72  10, 14, // methods
73  0, 0, // properties
74  0, 0, // enums/sets
75  0, 0, // constructors
76  0, // flags
77  10, // signalCount
78 
79  // signals: name, argc, parameters, tag, flags
80  1, 3, 64, 2, 0x06 /* Public */,
81  6, 3, 71, 2, 0x06 /* Public */,
82  7, 3, 78, 2, 0x06 /* Public */,
83  9, 3, 85, 2, 0x06 /* Public */,
84  11, 2, 92, 2, 0x06 /* Public */,
85  13, 2, 97, 2, 0x06 /* Public */,
86  14, 2, 102, 2, 0x06 /* Public */,
87  15, 1, 107, 2, 0x06 /* Public */,
88  17, 1, 110, 2, 0x06 /* Public */,
89  19, 1, 113, 2, 0x06 /* Public */,
90 
91  // signals: parameters
92  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 5,
93  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 5,
94  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 8,
95  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 10, 8,
96  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 12,
97  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 8,
98  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 8,
99  QMetaType::Void, QMetaType::QByteArray, 16,
100  QMetaType::Void, QMetaType::Int, 18,
101  QMetaType::Void, QMetaType::Int, 18,
102 
103  0 // eod
104 };
105 
106 void drumstick::rt::MIDIInput::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
107 {
108  if (_c == QMetaObject::InvokeMetaMethod) {
109  auto *_t = static_cast<MIDIInput *>(_o);
110  Q_UNUSED(_t)
111  switch (_id) {
112  case 0: _t->midiNoteOff((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
113  case 1: _t->midiNoteOn((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
114  case 2: _t->midiKeyPressure((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
115  case 3: _t->midiController((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
116  case 4: _t->midiProgram((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
117  case 5: _t->midiChannelPressure((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
118  case 6: _t->midiPitchBend((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
119  case 7: _t->midiSysex((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
120  case 8: _t->midiSystemCommon((*reinterpret_cast< const int(*)>(_a[1]))); break;
121  case 9: _t->midiSystemRealtime((*reinterpret_cast< const int(*)>(_a[1]))); break;
122  default: ;
123  }
124  } else if (_c == QMetaObject::IndexOfMethod) {
125  int *result = reinterpret_cast<int *>(_a[0]);
126  {
127  using _t = void (MIDIInput::*)(const int , const int , const int );
128  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiNoteOff)) {
129  *result = 0;
130  return;
131  }
132  }
133  {
134  using _t = void (MIDIInput::*)(const int , const int , const int );
135  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiNoteOn)) {
136  *result = 1;
137  return;
138  }
139  }
140  {
141  using _t = void (MIDIInput::*)(const int , const int , const int );
142  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiKeyPressure)) {
143  *result = 2;
144  return;
145  }
146  }
147  {
148  using _t = void (MIDIInput::*)(const int , const int , const int );
149  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiController)) {
150  *result = 3;
151  return;
152  }
153  }
154  {
155  using _t = void (MIDIInput::*)(const int , const int );
156  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiProgram)) {
157  *result = 4;
158  return;
159  }
160  }
161  {
162  using _t = void (MIDIInput::*)(const int , const int );
163  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiChannelPressure)) {
164  *result = 5;
165  return;
166  }
167  }
168  {
169  using _t = void (MIDIInput::*)(const int , const int );
170  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiPitchBend)) {
171  *result = 6;
172  return;
173  }
174  }
175  {
176  using _t = void (MIDIInput::*)(const QByteArray & );
177  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiSysex)) {
178  *result = 7;
179  return;
180  }
181  }
182  {
183  using _t = void (MIDIInput::*)(const int );
184  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiSystemCommon)) {
185  *result = 8;
186  return;
187  }
188  }
189  {
190  using _t = void (MIDIInput::*)(const int );
191  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiSystemRealtime)) {
192  *result = 9;
193  return;
194  }
195  }
196  }
197 }
198 
199 QT_INIT_METAOBJECT const QMetaObject drumstick::rt::MIDIInput::staticMetaObject = { {
200  QMetaObject::SuperData::link<QObject::staticMetaObject>(),
201  qt_meta_stringdata_drumstick__rt__MIDIInput.data,
202  qt_meta_data_drumstick__rt__MIDIInput,
203  qt_static_metacall,
204  nullptr,
205  nullptr
206 } };
207 
208 
209 const QMetaObject *drumstick::rt::MIDIInput::metaObject() const
210 {
211  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
212 }
213 
214 void *drumstick::rt::MIDIInput::qt_metacast(const char *_clname)
215 {
216  if (!_clname) return nullptr;
217  if (!strcmp(_clname, qt_meta_stringdata_drumstick__rt__MIDIInput.stringdata0))
218  return static_cast<void*>(this);
219  return QObject::qt_metacast(_clname);
220 }
221 
222 int drumstick::rt::MIDIInput::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
223 {
224  _id = QObject::qt_metacall(_c, _id, _a);
225  if (_id < 0)
226  return _id;
227  if (_c == QMetaObject::InvokeMetaMethod) {
228  if (_id < 10)
229  qt_static_metacall(this, _c, _id, _a);
230  _id -= 10;
231  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
232  if (_id < 10)
233  *reinterpret_cast<int*>(_a[0]) = -1;
234  _id -= 10;
235  }
236  return _id;
237 }
238 
239 // SIGNAL 0
240 void drumstick::rt::MIDIInput::midiNoteOff(const int _t1, const int _t2, const int _t3)
241 {
242  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
243  QMetaObject::activate(this, &staticMetaObject, 0, _a);
244 }
245 
246 // SIGNAL 1
247 void drumstick::rt::MIDIInput::midiNoteOn(const int _t1, const int _t2, const int _t3)
248 {
249  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
250  QMetaObject::activate(this, &staticMetaObject, 1, _a);
251 }
252 
253 // SIGNAL 2
254 void drumstick::rt::MIDIInput::midiKeyPressure(const int _t1, const int _t2, const int _t3)
255 {
256  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
257  QMetaObject::activate(this, &staticMetaObject, 2, _a);
258 }
259 
260 // SIGNAL 3
261 void drumstick::rt::MIDIInput::midiController(const int _t1, const int _t2, const int _t3)
262 {
263  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
264  QMetaObject::activate(this, &staticMetaObject, 3, _a);
265 }
266 
267 // SIGNAL 4
268 void drumstick::rt::MIDIInput::midiProgram(const int _t1, const int _t2)
269 {
270  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
271  QMetaObject::activate(this, &staticMetaObject, 4, _a);
272 }
273 
274 // SIGNAL 5
275 void drumstick::rt::MIDIInput::midiChannelPressure(const int _t1, const int _t2)
276 {
277  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
278  QMetaObject::activate(this, &staticMetaObject, 5, _a);
279 }
280 
281 // SIGNAL 6
282 void drumstick::rt::MIDIInput::midiPitchBend(const int _t1, const int _t2)
283 {
284  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
285  QMetaObject::activate(this, &staticMetaObject, 6, _a);
286 }
287 
288 // SIGNAL 7
289 void drumstick::rt::MIDIInput::midiSysex(const QByteArray & _t1)
290 {
291  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
292  QMetaObject::activate(this, &staticMetaObject, 7, _a);
293 }
294 
295 // SIGNAL 8
297 {
298  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
299  QMetaObject::activate(this, &staticMetaObject, 8, _a);
300 }
301 
302 // SIGNAL 9
304 {
305  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
306  QMetaObject::activate(this, &staticMetaObject, 9, _a);
307 }
308 QT_WARNING_POP
309 QT_END_MOC_NAMESPACE
QObject
drumstick::rt::MIDIInput::midiController
void midiController(const int chan, const int control, const int value)
midiController 0xB
Definition: moc_rtmidiinput.cpp:261
drumstick::rt::MIDIInput::midiChannelPressure
void midiChannelPressure(const int chan, const int value)
midiChannelPressure 0xD
Definition: moc_rtmidiinput.cpp:275
drumstick::rt::MIDIInput::midiKeyPressure
void midiKeyPressure(const int chan, const int note, const int value)
midiKeyPressure 0xA
Definition: moc_rtmidiinput.cpp:254
drumstick::rt::MIDIInput::midiProgram
void midiProgram(const int chan, const int program)
midiProgram 0xC
Definition: moc_rtmidiinput.cpp:268
drumstick::rt::MIDIInput::MIDIInput
MIDIInput(QObject *parent=0)
MIDIInput constructor.
Definition: rtmidiinput.h:52
drumstick::rt::MIDIInput::midiNoteOff
void midiNoteOff(const int chan, const int note, const int vel)
midiNoteOff 0x8
Definition: moc_rtmidiinput.cpp:240
drumstick::rt::MIDIInput::midiPitchBend
void midiPitchBend(const int chan, const int value)
midiPitchBend 0xE
Definition: moc_rtmidiinput.cpp:282
drumstick::rt::MIDIInput::midiNoteOn
void midiNoteOn(const int chan, const int note, const int vel)
midiNoteOn 0x9
Definition: moc_rtmidiinput.cpp:247
drumstick::rt::MIDIInput::midiSysex
void midiSysex(const QByteArray &data)
midiSysex
Definition: moc_rtmidiinput.cpp:289
drumstick::rt::MIDIInput::midiSystemRealtime
void midiSystemRealtime(const int status)
midiSystemRealtime
Definition: moc_rtmidiinput.cpp:303
drumstick::rt::MIDIInput::midiSystemCommon
void midiSystemCommon(const int status)
midiSystemCommon
Definition: moc_rtmidiinput.cpp:296