drumstick  1.1.3
moc_alsatimer.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'alsatimer.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/alsatimer.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'alsatimer.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__Timer_t {
24  QByteArrayData data[5];
25  char stringdata0[43];
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__Timer_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_drumstick__Timer_t qt_meta_stringdata_drumstick__Timer = {
33  {
34 QT_MOC_LITERAL(0, 0, 16), // "drumstick::Timer"
35 QT_MOC_LITERAL(1, 17, 12), // "timerExpired"
36 QT_MOC_LITERAL(2, 30, 0), // ""
37 QT_MOC_LITERAL(3, 31, 5), // "ticks"
38 QT_MOC_LITERAL(4, 37, 5) // "msecs"
39 
40  },
41  "drumstick::Timer\0timerExpired\0\0ticks\0"
42  "msecs"
43 };
44 #undef QT_MOC_LITERAL
45 
46 static const uint qt_meta_data_drumstick__Timer[] = {
47 
48  // content:
49  8, // revision
50  0, // classname
51  0, 0, // classinfo
52  1, 14, // methods
53  0, 0, // properties
54  0, 0, // enums/sets
55  0, 0, // constructors
56  0, // flags
57  1, // signalCount
58 
59  // signals: name, argc, parameters, tag, flags
60  1, 2, 19, 2, 0x06 /* Public */,
61 
62  // signals: parameters
63  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4,
64 
65  0 // eod
66 };
67 
68 void drumstick::Timer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
69 {
70  if (_c == QMetaObject::InvokeMetaMethod) {
71  auto *_t = static_cast<Timer *>(_o);
72  Q_UNUSED(_t)
73  switch (_id) {
74  case 0: _t->timerExpired((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
75  default: ;
76  }
77  } else if (_c == QMetaObject::IndexOfMethod) {
78  int *result = reinterpret_cast<int *>(_a[0]);
79  {
80  using _t = void (Timer::*)(int , int );
81  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Timer::timerExpired)) {
82  *result = 0;
83  return;
84  }
85  }
86  }
87 }
88 
89 QT_INIT_METAOBJECT const QMetaObject drumstick::Timer::staticMetaObject = { {
90  &QObject::staticMetaObject,
91  qt_meta_stringdata_drumstick__Timer.data,
92  qt_meta_data_drumstick__Timer,
93  qt_static_metacall,
94  nullptr,
95  nullptr
96 } };
97 
98 
99 const QMetaObject *drumstick::Timer::metaObject() const
100 {
101  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
102 }
103 
104 void *drumstick::Timer::qt_metacast(const char *_clname)
105 {
106  if (!_clname) return nullptr;
107  if (!strcmp(_clname, qt_meta_stringdata_drumstick__Timer.stringdata0))
108  return static_cast<void*>(this);
109  return QObject::qt_metacast(_clname);
110 }
111 
112 int drumstick::Timer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
113 {
114  _id = QObject::qt_metacall(_c, _id, _a);
115  if (_id < 0)
116  return _id;
117  if (_c == QMetaObject::InvokeMetaMethod) {
118  if (_id < 1)
119  qt_static_metacall(this, _c, _id, _a);
120  _id -= 1;
121  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
122  if (_id < 1)
123  *reinterpret_cast<int*>(_a[0]) = -1;
124  _id -= 1;
125  }
126  return _id;
127 }
128 
129 // SIGNAL 0
130 void drumstick::Timer::timerExpired(int _t1, int _t2)
131 {
132  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
133  QMetaObject::activate(this, &staticMetaObject, 0, _a);
134 }
135 QT_WARNING_POP
136 QT_END_MOC_NAMESPACE
The QObject class is the base class of all Qt objects.
Timer(int cls, int scls, int card, int dev, int sdev, int openMode, QObject *parent=0)
Constructor.
Definition: alsatimer.cpp:1110
void timerExpired(int ticks, int msecs)
This signal is emitted when the timer has expired, if there is not an event hander installed...