drumstick  1.1.3
__/include/drumstick/moc_/home/abuild/rpmbuild/BUILD/drumstick-1.1.3/library/alsa/__/include/drumstick/alsaport.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'alsaport.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/alsaport.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'alsaport.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__MidiPort_t {
24  QByteArrayData data[12];
25  char stringdata0[118];
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__MidiPort_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_drumstick__MidiPort_t qt_meta_stringdata_drumstick__MidiPort = {
33  {
34 QT_MOC_LITERAL(0, 0, 19), // "drumstick::MidiPort"
35 QT_MOC_LITERAL(1, 20, 10), // "subscribed"
36 QT_MOC_LITERAL(2, 31, 0), // ""
37 QT_MOC_LITERAL(3, 32, 9), // "MidiPort*"
38 QT_MOC_LITERAL(4, 42, 4), // "port"
39 QT_MOC_LITERAL(5, 47, 13), // "Subscription*"
40 QT_MOC_LITERAL(6, 61, 4), // "subs"
41 QT_MOC_LITERAL(7, 66, 17), // "midiClientChanged"
42 QT_MOC_LITERAL(8, 84, 11), // "MidiClient*"
43 QT_MOC_LITERAL(9, 96, 3), // "seq"
44 QT_MOC_LITERAL(10, 100, 8), // "attached"
45 QT_MOC_LITERAL(11, 109, 8) // "detached"
46 
47  },
48  "drumstick::MidiPort\0subscribed\0\0"
49  "MidiPort*\0port\0Subscription*\0subs\0"
50  "midiClientChanged\0MidiClient*\0seq\0"
51  "attached\0detached"
52 };
53 #undef QT_MOC_LITERAL
54 
55 static const uint qt_meta_data_drumstick__MidiPort[] = {
56 
57  // content:
58  8, // revision
59  0, // classname
60  0, 0, // classinfo
61  4, 14, // methods
62  0, 0, // properties
63  0, 0, // enums/sets
64  0, 0, // constructors
65  0, // flags
66  4, // signalCount
67 
68  // signals: name, argc, parameters, tag, flags
69  1, 2, 34, 2, 0x06 /* Public */,
70  7, 2, 39, 2, 0x06 /* Public */,
71  10, 1, 44, 2, 0x06 /* Public */,
72  11, 1, 47, 2, 0x06 /* Public */,
73 
74  // signals: parameters
75  QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 4, 6,
76  QMetaType::Void, 0x80000000 | 3, 0x80000000 | 8, 4, 9,
77  QMetaType::Void, 0x80000000 | 3, 4,
78  QMetaType::Void, 0x80000000 | 3, 4,
79 
80  0 // eod
81 };
82 
83 void drumstick::MidiPort::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
84 {
85  if (_c == QMetaObject::InvokeMetaMethod) {
86  auto *_t = static_cast<MidiPort *>(_o);
87  Q_UNUSED(_t)
88  switch (_id) {
89  case 0: _t->subscribed((*reinterpret_cast< MidiPort*(*)>(_a[1])),(*reinterpret_cast< Subscription*(*)>(_a[2]))); break;
90  case 1: _t->midiClientChanged((*reinterpret_cast< MidiPort*(*)>(_a[1])),(*reinterpret_cast< MidiClient*(*)>(_a[2]))); break;
91  case 2: _t->attached((*reinterpret_cast< MidiPort*(*)>(_a[1]))); break;
92  case 3: _t->detached((*reinterpret_cast< MidiPort*(*)>(_a[1]))); break;
93  default: ;
94  }
95  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
96  switch (_id) {
97  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
98  case 0:
99  switch (*reinterpret_cast<int*>(_a[1])) {
100  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
101  case 0:
102  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MidiPort* >(); break;
103  }
104  break;
105  case 1:
106  switch (*reinterpret_cast<int*>(_a[1])) {
107  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
108  case 0:
109  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MidiPort* >(); break;
110  }
111  break;
112  case 2:
113  switch (*reinterpret_cast<int*>(_a[1])) {
114  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
115  case 0:
116  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MidiPort* >(); break;
117  }
118  break;
119  case 3:
120  switch (*reinterpret_cast<int*>(_a[1])) {
121  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
122  case 0:
123  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MidiPort* >(); break;
124  }
125  break;
126  }
127  } else if (_c == QMetaObject::IndexOfMethod) {
128  int *result = reinterpret_cast<int *>(_a[0]);
129  {
130  using _t = void (MidiPort::*)(MidiPort * , Subscription * );
131  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MidiPort::subscribed)) {
132  *result = 0;
133  return;
134  }
135  }
136  {
137  using _t = void (MidiPort::*)(MidiPort * , MidiClient * );
138  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MidiPort::midiClientChanged)) {
139  *result = 1;
140  return;
141  }
142  }
143  {
144  using _t = void (MidiPort::*)(MidiPort * );
145  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MidiPort::attached)) {
146  *result = 2;
147  return;
148  }
149  }
150  {
151  using _t = void (MidiPort::*)(MidiPort * );
152  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MidiPort::detached)) {
153  *result = 3;
154  return;
155  }
156  }
157  }
158 }
159 
160 QT_INIT_METAOBJECT const QMetaObject drumstick::MidiPort::staticMetaObject = { {
161  &QObject::staticMetaObject,
162  qt_meta_stringdata_drumstick__MidiPort.data,
163  qt_meta_data_drumstick__MidiPort,
164  qt_static_metacall,
165  nullptr,
166  nullptr
167 } };
168 
169 
170 const QMetaObject *drumstick::MidiPort::metaObject() const
171 {
172  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
173 }
174 
175 void *drumstick::MidiPort::qt_metacast(const char *_clname)
176 {
177  if (!_clname) return nullptr;
178  if (!strcmp(_clname, qt_meta_stringdata_drumstick__MidiPort.stringdata0))
179  return static_cast<void*>(this);
180  return QObject::qt_metacast(_clname);
181 }
182 
183 int drumstick::MidiPort::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
184 {
185  _id = QObject::qt_metacall(_c, _id, _a);
186  if (_id < 0)
187  return _id;
188  if (_c == QMetaObject::InvokeMetaMethod) {
189  if (_id < 4)
190  qt_static_metacall(this, _c, _id, _a);
191  _id -= 4;
192  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
193  if (_id < 4)
194  qt_static_metacall(this, _c, _id, _a);
195  _id -= 4;
196  }
197  return _id;
198 }
199 
200 // SIGNAL 0
202 {
203  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
204  QMetaObject::activate(this, &staticMetaObject, 0, _a);
205 }
206 
207 // SIGNAL 1
209 {
210  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
211  QMetaObject::activate(this, &staticMetaObject, 1, _a);
212 }
213 
214 // SIGNAL 2
216 {
217  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
218  QMetaObject::activate(this, &staticMetaObject, 2, _a);
219 }
220 
221 // SIGNAL 3
223 {
224  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
225  QMetaObject::activate(this, &staticMetaObject, 3, _a);
226 }
227 QT_WARNING_POP
228 QT_END_MOC_NAMESPACE
void detached(MidiPort *port)
Signal emitted when the port is detached from a MidiClient.
The QObject class is the base class of all Qt objects.
Client management.
Definition: alsaclient.h:197
void subscribed(MidiPort *port, Subscription *subs)
Signal emitted when an internal subscription is done.
MidiPort(QObject *parent=0)
Constructor.
Definition: alsaport.cpp:548
void midiClientChanged(MidiPort *port, MidiClient *seq)
Signal emitted when the MidiClient has changed.
Port management.
Definition: alsaport.h:118
Subscription management.
Definition: subscription.h:81
void attached(MidiPort *port)
Signal emitted when the port is attached to a MidiClient.