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.6.2)
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.6.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__SequencerOutputThread_t {
22  QByteArrayData data[7];
23  char stringdata0[75];
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__SequencerOutputThread_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_drumstick__SequencerOutputThread_t qt_meta_stringdata_drumstick__SequencerOutputThread = {
31  {
32 QT_MOC_LITERAL(0, 0, 32), // "drumstick::SequencerOutputThread"
33 QT_MOC_LITERAL(1, 33, 8), // "finished"
34 QT_MOC_LITERAL(2, 42, 0), // ""
35 QT_MOC_LITERAL(3, 43, 7), // "stopped"
36 QT_MOC_LITERAL(4, 51, 5), // "start"
37 QT_MOC_LITERAL(5, 57, 8), // "Priority"
38 QT_MOC_LITERAL(6, 66, 8) // "priority"
39 
40  },
41  "drumstick::SequencerOutputThread\0"
42  "finished\0\0stopped\0start\0Priority\0"
43  "priority"
44 };
45 #undef QT_MOC_LITERAL
46 
47 static const uint qt_meta_data_drumstick__SequencerOutputThread[] = {
48 
49  // content:
50  7, // revision
51  0, // classname
52  0, 0, // classinfo
53  4, 14, // methods
54  0, 0, // properties
55  0, 0, // enums/sets
56  0, 0, // constructors
57  0, // flags
58  2, // signalCount
59 
60  // signals: name, argc, parameters, tag, flags
61  1, 0, 34, 2, 0x06 /* Public */,
62  3, 0, 35, 2, 0x06 /* Public */,
63 
64  // slots: name, argc, parameters, tag, flags
65  4, 1, 36, 2, 0x0a /* Public */,
66  4, 0, 39, 2, 0x2a /* Public | MethodCloned */,
67 
68  // signals: parameters
69  QMetaType::Void,
70  QMetaType::Void,
71 
72  // slots: parameters
73  QMetaType::Void, 0x80000000 | 5, 6,
74  QMetaType::Void,
75 
76  0 // eod
77 };
78 
79 void drumstick::SequencerOutputThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
80 {
81  if (_c == QMetaObject::InvokeMetaMethod) {
82  SequencerOutputThread *_t = static_cast<SequencerOutputThread *>(_o);
83  Q_UNUSED(_t)
84  switch (_id) {
85  case 0: _t->finished(); break;
86  case 1: _t->stopped(); break;
87  case 2: _t->start((*reinterpret_cast< Priority(*)>(_a[1]))); break;
88  case 3: _t->start(); break;
89  default: ;
90  }
91  } else if (_c == QMetaObject::IndexOfMethod) {
92  int *result = reinterpret_cast<int *>(_a[0]);
93  void **func = reinterpret_cast<void **>(_a[1]);
94  {
95  typedef void (SequencerOutputThread::*_t)();
96  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SequencerOutputThread::finished)) {
97  *result = 0;
98  return;
99  }
100  }
101  {
102  typedef void (SequencerOutputThread::*_t)();
103  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SequencerOutputThread::stopped)) {
104  *result = 1;
105  return;
106  }
107  }
108  }
109 }
110 
111 const QMetaObject drumstick::SequencerOutputThread::staticMetaObject = {
112  { &QThread::staticMetaObject, qt_meta_stringdata_drumstick__SequencerOutputThread.data,
113  qt_meta_data_drumstick__SequencerOutputThread, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
114 };
115 
116 
117 const QMetaObject *drumstick::SequencerOutputThread::metaObject() const
118 {
119  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
120 }
121 
122 void *drumstick::SequencerOutputThread::qt_metacast(const char *_clname)
123 {
124  if (!_clname) return Q_NULLPTR;
125  if (!strcmp(_clname, qt_meta_stringdata_drumstick__SequencerOutputThread.stringdata0))
126  return static_cast<void*>(const_cast< SequencerOutputThread*>(this));
127  return QThread::qt_metacast(_clname);
128 }
129 
130 int drumstick::SequencerOutputThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
131 {
132  _id = QThread::qt_metacall(_c, _id, _a);
133  if (_id < 0)
134  return _id;
135  if (_c == QMetaObject::InvokeMetaMethod) {
136  if (_id < 4)
137  qt_static_metacall(this, _c, _id, _a);
138  _id -= 4;
139  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
140  if (_id < 4)
141  *reinterpret_cast<int*>(_a[0]) = -1;
142  _id -= 4;
143  }
144  return _id;
145 }
146 
147 // SIGNAL 0
149 {
150  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
151 }
152 
153 // SIGNAL 1
155 {
156  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
157 }
158 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.