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