drumstick  1.0.2
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.9.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../../../include/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.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__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  7, // 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  SequencerOutputThread *_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  void **func = reinterpret_cast<void **>(_a[1]);
96  {
97  typedef void (SequencerOutputThread::*_t)();
98  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SequencerOutputThread::finished)) {
99  *result = 0;
100  return;
101  }
102  }
103  {
104  typedef void (SequencerOutputThread::*_t)();
105  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SequencerOutputThread::stopped)) {
106  *result = 1;
107  return;
108  }
109  }
110  }
111 }
112 
113 const QMetaObject drumstick::SequencerOutputThread::staticMetaObject = {
114  { &QThread::staticMetaObject, qt_meta_stringdata_drumstick__SequencerOutputThread.data,
115  qt_meta_data_drumstick__SequencerOutputThread, qt_static_metacall, nullptr, nullptr}
116 };
117 
118 
119 const QMetaObject *drumstick::SequencerOutputThread::metaObject() const
120 {
121  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
122 }
123 
124 void *drumstick::SequencerOutputThread::qt_metacast(const char *_clname)
125 {
126  if (!_clname) return nullptr;
127  if (!strcmp(_clname, qt_meta_stringdata_drumstick__SequencerOutputThread.stringdata0))
128  return static_cast<void*>(const_cast< SequencerOutputThread*>(this));
129  return QThread::qt_metacast(_clname);
130 }
131 
132 int drumstick::SequencerOutputThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
133 {
134  _id = QThread::qt_metacall(_c, _id, _a);
135  if (_id < 0)
136  return _id;
137  if (_c == QMetaObject::InvokeMetaMethod) {
138  if (_id < 4)
139  qt_static_metacall(this, _c, _id, _a);
140  _id -= 4;
141  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
142  if (_id < 4)
143  *reinterpret_cast<int*>(_a[0]) = -1;
144  _id -= 4;
145  }
146  return _id;
147 }
148 
149 // SIGNAL 0
151 {
152  QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
153 }
154 
155 // SIGNAL 1
157 {
158  QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
159 }
160 QT_WARNING_POP
161 QT_END_MOC_NAMESPACE
The QObject class is the base class of all Qt objects.
void stopped()
Signal emitted when the play-back has stopped.
void finished()
Signal emitted when the sequence play-back has finished.