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