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