drumstick  1.1.0
moc_alsaclient.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'alsaclient.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/alsaclient.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'alsaclient.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__MidiClient_t {
22  QByteArrayData data[5];
23  char stringdata[56];
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__MidiClient_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_drumstick__MidiClient_t qt_meta_stringdata_drumstick__MidiClient = {
31  {
32 QT_MOC_LITERAL(0, 0, 21),
33 QT_MOC_LITERAL(1, 22, 13),
34 QT_MOC_LITERAL(2, 36, 0),
35 QT_MOC_LITERAL(3, 37, 15),
36 QT_MOC_LITERAL(4, 53, 2)
37  },
38  "drumstick::MidiClient\0eventReceived\0"
39  "\0SequencerEvent*\0ev"
40 };
41 #undef QT_MOC_LITERAL
42 
43 static const uint qt_meta_data_drumstick__MidiClient[] = {
44 
45  // content:
46  7, // revision
47  0, // classname
48  0, 0, // classinfo
49  1, 14, // methods
50  0, 0, // properties
51  0, 0, // enums/sets
52  0, 0, // constructors
53  0, // flags
54  1, // signalCount
55 
56  // signals: name, argc, parameters, tag, flags
57  1, 1, 19, 2, 0x06 /* Public */,
58 
59  // signals: parameters
60  QMetaType::Void, 0x80000000 | 3, 4,
61 
62  0 // eod
63 };
64 
65 void drumstick::MidiClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
66 {
67  if (_c == QMetaObject::InvokeMetaMethod) {
68  MidiClient *_t = static_cast<MidiClient *>(_o);
69  switch (_id) {
70  case 0: _t->eventReceived((*reinterpret_cast< SequencerEvent*(*)>(_a[1]))); break;
71  default: ;
72  }
73  } else if (_c == QMetaObject::IndexOfMethod) {
74  int *result = reinterpret_cast<int *>(_a[0]);
75  void **func = reinterpret_cast<void **>(_a[1]);
76  {
77  typedef void (MidiClient::*_t)(SequencerEvent * );
78  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MidiClient::eventReceived)) {
79  *result = 0;
80  }
81  }
82  }
83 }
84 
85 const QMetaObject drumstick::MidiClient::staticMetaObject = {
86  { &QObject::staticMetaObject, qt_meta_stringdata_drumstick__MidiClient.data,
87  qt_meta_data_drumstick__MidiClient, qt_static_metacall, 0, 0}
88 };
89 
90 
91 const QMetaObject *drumstick::MidiClient::metaObject() const
92 {
93  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
94 }
95 
96 void *drumstick::MidiClient::qt_metacast(const char *_clname)
97 {
98  if (!_clname) return 0;
99  if (!strcmp(_clname, qt_meta_stringdata_drumstick__MidiClient.stringdata))
100  return static_cast<void*>(const_cast< MidiClient*>(this));
101  return QObject::qt_metacast(_clname);
102 }
103 
104 int drumstick::MidiClient::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
105 {
106  _id = QObject::qt_metacall(_c, _id, _a);
107  if (_id < 0)
108  return _id;
109  if (_c == QMetaObject::InvokeMetaMethod) {
110  if (_id < 1)
111  qt_static_metacall(this, _c, _id, _a);
112  _id -= 1;
113  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
114  if (_id < 1)
115  *reinterpret_cast<int*>(_a[0]) = -1;
116  _id -= 1;
117  }
118  return _id;
119 }
120 
121 // SIGNAL 0
123 {
124  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
125  QMetaObject::activate(this, &staticMetaObject, 0, _a);
126 }
127 QT_END_MOC_NAMESPACE
void eventReceived(SequencerEvent *ev)
Signal emitted when an event is received.
The QObject class is the base class of all Qt objects.
Base class for the event's hierarchy.
Definition: alsaevent.h:53
MidiClient(QObject *parent=0)
Constructor.
Definition: alsaclient.cpp:258