drumstick  1.1.3
moc_playthread.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'playthread.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/playthread.h"
11 #include <QtCore/qbytearray.h>
12 #include <QtCore/qmetatype.h>
13 #if !defined(Q_MOC_OUTPUT_REVISION)
14 #error "The header file 'playthread.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__SequencerOutputThread_t {
25  QByteArrayData data[7];
26  char stringdata0[75];
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__SequencerOutputThread_t, stringdata0) + ofs \
31  - idx * sizeof(QByteArrayData)) \
32  )
33 static const qt_meta_stringdata_drumstick__SequencerOutputThread_t qt_meta_stringdata_drumstick__SequencerOutputThread = {
34  {
35 QT_MOC_LITERAL(0, 0, 32), // "drumstick::SequencerOutputThread"
36 QT_MOC_LITERAL(1, 33, 8), // "finished"
37 QT_MOC_LITERAL(2, 42, 0), // ""
38 QT_MOC_LITERAL(3, 43, 7), // "stopped"
39 QT_MOC_LITERAL(4, 51, 5), // "start"
40 QT_MOC_LITERAL(5, 57, 8), // "Priority"
41 QT_MOC_LITERAL(6, 66, 8) // "priority"
42 
43  },
44  "drumstick::SequencerOutputThread\0"
45  "finished\0\0stopped\0start\0Priority\0"
46  "priority"
47 };
48 #undef QT_MOC_LITERAL
49 
50 static const uint qt_meta_data_drumstick__SequencerOutputThread[] = {
51 
52  // content:
53  8, // revision
54  0, // classname
55  0, 0, // classinfo
56  4, 14, // methods
57  0, 0, // properties
58  0, 0, // enums/sets
59  0, 0, // constructors
60  0, // flags
61  2, // signalCount
62 
63  // signals: name, argc, parameters, tag, flags
64  1, 0, 34, 2, 0x06 /* Public */,
65  3, 0, 35, 2, 0x06 /* Public */,
66 
67  // slots: name, argc, parameters, tag, flags
68  4, 1, 36, 2, 0x0a /* Public */,
69  4, 0, 39, 2, 0x2a /* Public | MethodCloned */,
70 
71  // signals: parameters
72  QMetaType::Void,
73  QMetaType::Void,
74 
75  // slots: parameters
76  QMetaType::Void, 0x80000000 | 5, 6,
77  QMetaType::Void,
78 
79  0 // eod
80 };
81 
82 void drumstick::SequencerOutputThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
83 {
84  if (_c == QMetaObject::InvokeMetaMethod) {
85  auto *_t = static_cast<SequencerOutputThread *>(_o);
86  Q_UNUSED(_t)
87  switch (_id) {
88  case 0: _t->finished(); break;
89  case 1: _t->stopped(); break;
90  case 2: _t->start((*reinterpret_cast< Priority(*)>(_a[1]))); break;
91  case 3: _t->start(); break;
92  default: ;
93  }
94  } else if (_c == QMetaObject::IndexOfMethod) {
95  int *result = reinterpret_cast<int *>(_a[0]);
96  {
97  using _t = void (SequencerOutputThread::*)();
98  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SequencerOutputThread::finished)) {
99  *result = 0;
100  return;
101  }
102  }
103  {
104  using _t = void (SequencerOutputThread::*)();
105  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SequencerOutputThread::stopped)) {
106  *result = 1;
107  return;
108  }
109  }
110  }
111 }
112 
113 QT_INIT_METAOBJECT const QMetaObject drumstick::SequencerOutputThread::staticMetaObject = { {
114  QMetaObject::SuperData::link<QThread::staticMetaObject>(),
115  qt_meta_stringdata_drumstick__SequencerOutputThread.data,
116  qt_meta_data_drumstick__SequencerOutputThread,
117  qt_static_metacall,
118  nullptr,
119  nullptr
120 } };
121 
122 
123 const QMetaObject *drumstick::SequencerOutputThread::metaObject() const
124 {
125  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
126 }
127 
128 void *drumstick::SequencerOutputThread::qt_metacast(const char *_clname)
129 {
130  if (!_clname) return nullptr;
131  if (!strcmp(_clname, qt_meta_stringdata_drumstick__SequencerOutputThread.stringdata0))
132  return static_cast<void*>(this);
133  return QThread::qt_metacast(_clname);
134 }
135 
136 int drumstick::SequencerOutputThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
137 {
138  _id = QThread::qt_metacall(_c, _id, _a);
139  if (_id < 0)
140  return _id;
141  if (_c == QMetaObject::InvokeMetaMethod) {
142  if (_id < 4)
143  qt_static_metacall(this, _c, _id, _a);
144  _id -= 4;
145  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
146  if (_id < 4)
147  *reinterpret_cast<int*>(_a[0]) = -1;
148  _id -= 4;
149  }
150  return _id;
151 }
152 
153 // SIGNAL 0
155 {
156  QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
157 }
158 
159 // SIGNAL 1
161 {
162  QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
163 }
164 QT_WARNING_POP
165 QT_END_MOC_NAMESPACE
QObject
drumstick::SequencerOutputThread::stopped
void stopped()
Signal emitted when the play-back has stopped.
Definition: moc_playthread.cpp:160
drumstick::SequencerOutputThread::finished
void finished()
Signal emitted when the sequence play-back has finished.
Definition: moc_playthread.cpp:154
drumstick::SequencerOutputThread::SequencerOutputThread
SequencerOutputThread(MidiClient *seq, int portId)
Constructor.
Definition: playthread.cpp:62