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