drumstick  1.0.2
oss-in/__/common/moc_midiparser.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'midiparser.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../../../common/midiparser.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'midiparser.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.9.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
21 QT_WARNING_PUSH
22 QT_WARNING_DISABLE_DEPRECATED
23 struct qt_meta_stringdata_drumstick__rt__MIDIParser_t {
24  QByteArrayData data[5];
25  char stringdata0[44];
26 };
27 #define QT_MOC_LITERAL(idx, ofs, len) \
28  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
29  qptrdiff(offsetof(qt_meta_stringdata_drumstick__rt__MIDIParser_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_drumstick__rt__MIDIParser_t qt_meta_stringdata_drumstick__rt__MIDIParser = {
33  {
34 QT_MOC_LITERAL(0, 0, 25), // "drumstick::rt::MIDIParser"
35 QT_MOC_LITERAL(1, 26, 5), // "parse"
36 QT_MOC_LITERAL(2, 32, 0), // ""
37 QT_MOC_LITERAL(3, 33, 4), // "byte"
38 QT_MOC_LITERAL(4, 38, 5) // "bytes"
39 
40  },
41  "drumstick::rt::MIDIParser\0parse\0\0byte\0"
42  "bytes"
43 };
44 #undef QT_MOC_LITERAL
45 
46 static const uint qt_meta_data_drumstick__rt__MIDIParser[] = {
47 
48  // content:
49  7, // revision
50  0, // classname
51  0, 0, // classinfo
52  2, 14, // methods
53  0, 0, // properties
54  0, 0, // enums/sets
55  0, 0, // constructors
56  0, // flags
57  0, // signalCount
58 
59  // slots: name, argc, parameters, tag, flags
60  1, 1, 24, 2, 0x0a /* Public */,
61  1, 1, 27, 2, 0x0a /* Public */,
62 
63  // slots: parameters
64  QMetaType::Void, QMetaType::UChar, 3,
65  QMetaType::Void, QMetaType::QByteArray, 4,
66 
67  0 // eod
68 };
69 
70 void drumstick::rt::MIDIParser::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
71 {
72  if (_c == QMetaObject::InvokeMetaMethod) {
73  MIDIParser *_t = static_cast<MIDIParser *>(_o);
74  Q_UNUSED(_t)
75  switch (_id) {
76  case 0: _t->parse((*reinterpret_cast< unsigned char(*)>(_a[1]))); break;
77  case 1: _t->parse((*reinterpret_cast< QByteArray(*)>(_a[1]))); break;
78  default: ;
79  }
80  }
81 }
82 
83 const QMetaObject drumstick::rt::MIDIParser::staticMetaObject = {
84  { &QObject::staticMetaObject, qt_meta_stringdata_drumstick__rt__MIDIParser.data,
85  qt_meta_data_drumstick__rt__MIDIParser, qt_static_metacall, nullptr, nullptr}
86 };
87 
88 
89 const QMetaObject *drumstick::rt::MIDIParser::metaObject() const
90 {
91  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
92 }
93 
94 void *drumstick::rt::MIDIParser::qt_metacast(const char *_clname)
95 {
96  if (!_clname) return nullptr;
97  if (!strcmp(_clname, qt_meta_stringdata_drumstick__rt__MIDIParser.stringdata0))
98  return static_cast<void*>(const_cast< MIDIParser*>(this));
99  return QObject::qt_metacast(_clname);
100 }
101 
102 int drumstick::rt::MIDIParser::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
103 {
104  _id = QObject::qt_metacall(_c, _id, _a);
105  if (_id < 0)
106  return _id;
107  if (_c == QMetaObject::InvokeMetaMethod) {
108  if (_id < 2)
109  qt_static_metacall(this, _c, _id, _a);
110  _id -= 2;
111  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
112  if (_id < 2)
113  *reinterpret_cast<int*>(_a[0]) = -1;
114  _id -= 2;
115  }
116  return _id;
117 }
118 QT_WARNING_POP
119 QT_END_MOC_NAMESPACE
The QObject class is the base class of all Qt objects.