Bitcoin Core  0.21.0rc5
P2P Digital Currency
moc_bitcoin.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'bitcoin.h'
3 **
4 **
5 ** WARNING! All changes made in this file will be lost!
6 *****************************************************************************/
7 
8 #include <memory>
9 #include "qt/bitcoin.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'bitcoin.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.15.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 QT_WARNING_PUSH
22 QT_WARNING_DISABLE_DEPRECATED
24  QByteArrayData data[11];
25  char stringdata0[141];
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_BitcoinCore_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
33  {
34 QT_MOC_LITERAL(0, 0, 11), // "BitcoinCore"
35 QT_MOC_LITERAL(1, 12, 16), // "initializeResult"
36 QT_MOC_LITERAL(2, 29, 0), // ""
37 QT_MOC_LITERAL(3, 30, 7), // "success"
38 QT_MOC_LITERAL(4, 38, 33), // "interfaces::BlockAndHeaderTip..."
39 QT_MOC_LITERAL(5, 72, 8), // "tip_info"
40 QT_MOC_LITERAL(6, 81, 14), // "shutdownResult"
41 QT_MOC_LITERAL(7, 96, 16), // "runawayException"
42 QT_MOC_LITERAL(8, 113, 7), // "message"
43 QT_MOC_LITERAL(9, 121, 10), // "initialize"
44 QT_MOC_LITERAL(10, 132, 8) // "shutdown"
45 
46  },
47  "BitcoinCore\0initializeResult\0\0success\0"
48  "interfaces::BlockAndHeaderTipInfo\0"
49  "tip_info\0shutdownResult\0runawayException\0"
50  "message\0initialize\0shutdown"
51 };
52 #undef QT_MOC_LITERAL
53 
54 static const uint qt_meta_data_BitcoinCore[] = {
55 
56  // content:
57  8, // revision
58  0, // classname
59  0, 0, // classinfo
60  5, 14, // methods
61  0, 0, // properties
62  0, 0, // enums/sets
63  0, 0, // constructors
64  0, // flags
65  3, // signalCount
66 
67  // signals: name, argc, parameters, tag, flags
68  1, 2, 39, 2, 0x06 /* Public */,
69  6, 0, 44, 2, 0x06 /* Public */,
70  7, 1, 45, 2, 0x06 /* Public */,
71 
72  // slots: name, argc, parameters, tag, flags
73  9, 0, 48, 2, 0x0a /* Public */,
74  10, 0, 49, 2, 0x0a /* Public */,
75 
76  // signals: parameters
77  QMetaType::Void, QMetaType::Bool, 0x80000000 | 4, 3, 5,
78  QMetaType::Void,
79  QMetaType::Void, QMetaType::QString, 8,
80 
81  // slots: parameters
82  QMetaType::Void,
83  QMetaType::Void,
84 
85  0 // eod
86 };
87 
88 void BitcoinCore::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
89 {
90  if (_c == QMetaObject::InvokeMetaMethod) {
91  auto *_t = static_cast<BitcoinCore *>(_o);
92  Q_UNUSED(_t)
93  switch (_id) {
94  case 0: _t->initializeResult((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< interfaces::BlockAndHeaderTipInfo(*)>(_a[2]))); break;
95  case 1: _t->shutdownResult(); break;
96  case 2: _t->runawayException((*reinterpret_cast< const QString(*)>(_a[1]))); break;
97  case 3: _t->initialize(); break;
98  case 4: _t->shutdown(); break;
99  default: ;
100  }
101  } else if (_c == QMetaObject::IndexOfMethod) {
102  int *result = reinterpret_cast<int *>(_a[0]);
103  {
104  using _t = void (BitcoinCore::*)(bool , interfaces::BlockAndHeaderTipInfo );
105  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BitcoinCore::initializeResult)) {
106  *result = 0;
107  return;
108  }
109  }
110  {
111  using _t = void (BitcoinCore::*)();
112  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BitcoinCore::shutdownResult)) {
113  *result = 1;
114  return;
115  }
116  }
117  {
118  using _t = void (BitcoinCore::*)(const QString & );
119  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BitcoinCore::runawayException)) {
120  *result = 2;
121  return;
122  }
123  }
124  }
125 }
126 
127 QT_INIT_METAOBJECT const QMetaObject BitcoinCore::staticMetaObject = { {
128  QMetaObject::SuperData::link<QObject::staticMetaObject>(),
131  qt_static_metacall,
132  nullptr,
133  nullptr
134 } };
135 
136 
137 const QMetaObject *BitcoinCore::metaObject() const
138 {
139  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
140 }
141 
142 void *BitcoinCore::qt_metacast(const char *_clname)
143 {
144  if (!_clname) return nullptr;
145  if (!strcmp(_clname, qt_meta_stringdata_BitcoinCore.stringdata0))
146  return static_cast<void*>(this);
147  return QObject::qt_metacast(_clname);
148 }
149 
150 int BitcoinCore::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
151 {
152  _id = QObject::qt_metacall(_c, _id, _a);
153  if (_id < 0)
154  return _id;
155  if (_c == QMetaObject::InvokeMetaMethod) {
156  if (_id < 5)
157  qt_static_metacall(this, _c, _id, _a);
158  _id -= 5;
159  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
160  if (_id < 5)
161  *reinterpret_cast<int*>(_a[0]) = -1;
162  _id -= 5;
163  }
164  return _id;
165 }
166 
167 // SIGNAL 0
169 {
170  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
171  QMetaObject::activate(this, &staticMetaObject, 0, _a);
172 }
173 
174 // SIGNAL 1
176 {
177  QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
178 }
179 
180 // SIGNAL 2
181 void BitcoinCore::runawayException(const QString & _t1)
182 {
183  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
184  QMetaObject::activate(this, &staticMetaObject, 2, _a);
185 }
187  QByteArrayData data[15];
188  char stringdata0[218];
189 };
190 #define QT_MOC_LITERAL(idx, ofs, len) \
191  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
192  qptrdiff(offsetof(qt_meta_stringdata_BitcoinApplication_t, stringdata0) + ofs \
193  - idx * sizeof(QByteArrayData)) \
194  )
196  {
197 QT_MOC_LITERAL(0, 0, 18), // "BitcoinApplication"
198 QT_MOC_LITERAL(1, 19, 19), // "requestedInitialize"
199 QT_MOC_LITERAL(2, 39, 0), // ""
200 QT_MOC_LITERAL(3, 40, 17), // "requestedShutdown"
201 QT_MOC_LITERAL(4, 58, 14), // "splashFinished"
202 QT_MOC_LITERAL(5, 73, 11), // "windowShown"
203 QT_MOC_LITERAL(6, 85, 11), // "BitcoinGUI*"
204 QT_MOC_LITERAL(7, 97, 6), // "window"
205 QT_MOC_LITERAL(8, 104, 16), // "initializeResult"
206 QT_MOC_LITERAL(9, 121, 7), // "success"
207 QT_MOC_LITERAL(10, 129, 33), // "interfaces::BlockAndHeaderTip..."
208 QT_MOC_LITERAL(11, 163, 8), // "tip_info"
209 QT_MOC_LITERAL(12, 172, 14), // "shutdownResult"
210 QT_MOC_LITERAL(13, 187, 22), // "handleRunawayException"
211 QT_MOC_LITERAL(14, 210, 7) // "message"
212 
213  },
214  "BitcoinApplication\0requestedInitialize\0"
215  "\0requestedShutdown\0splashFinished\0"
216  "windowShown\0BitcoinGUI*\0window\0"
217  "initializeResult\0success\0"
218  "interfaces::BlockAndHeaderTipInfo\0"
219  "tip_info\0shutdownResult\0handleRunawayException\0"
220  "message"
221 };
222 #undef QT_MOC_LITERAL
223 
224 static const uint qt_meta_data_BitcoinApplication[] = {
225 
226  // content:
227  8, // revision
228  0, // classname
229  0, 0, // classinfo
230  7, 14, // methods
231  0, 0, // properties
232  0, 0, // enums/sets
233  0, 0, // constructors
234  0, // flags
235  4, // signalCount
236 
237  // signals: name, argc, parameters, tag, flags
238  1, 0, 49, 2, 0x06 /* Public */,
239  3, 0, 50, 2, 0x06 /* Public */,
240  4, 0, 51, 2, 0x06 /* Public */,
241  5, 1, 52, 2, 0x06 /* Public */,
242 
243  // slots: name, argc, parameters, tag, flags
244  8, 2, 55, 2, 0x0a /* Public */,
245  12, 0, 60, 2, 0x0a /* Public */,
246  13, 1, 61, 2, 0x0a /* Public */,
247 
248  // signals: parameters
249  QMetaType::Void,
250  QMetaType::Void,
251  QMetaType::Void,
252  QMetaType::Void, 0x80000000 | 6, 7,
253 
254  // slots: parameters
255  QMetaType::Void, QMetaType::Bool, 0x80000000 | 10, 9, 11,
256  QMetaType::Void,
257  QMetaType::Void, QMetaType::QString, 14,
258 
259  0 // eod
260 };
261 
262 void BitcoinApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
263 {
264  if (_c == QMetaObject::InvokeMetaMethod) {
265  auto *_t = static_cast<BitcoinApplication *>(_o);
266  Q_UNUSED(_t)
267  switch (_id) {
268  case 0: _t->requestedInitialize(); break;
269  case 1: _t->requestedShutdown(); break;
270  case 2: _t->splashFinished(); break;
271  case 3: _t->windowShown((*reinterpret_cast< BitcoinGUI*(*)>(_a[1]))); break;
272  case 4: _t->initializeResult((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< interfaces::BlockAndHeaderTipInfo(*)>(_a[2]))); break;
273  case 5: _t->shutdownResult(); break;
274  case 6: _t->handleRunawayException((*reinterpret_cast< const QString(*)>(_a[1]))); break;
275  default: ;
276  }
277  } else if (_c == QMetaObject::IndexOfMethod) {
278  int *result = reinterpret_cast<int *>(_a[0]);
279  {
280  using _t = void (BitcoinApplication::*)();
281  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BitcoinApplication::requestedInitialize)) {
282  *result = 0;
283  return;
284  }
285  }
286  {
287  using _t = void (BitcoinApplication::*)();
288  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BitcoinApplication::requestedShutdown)) {
289  *result = 1;
290  return;
291  }
292  }
293  {
294  using _t = void (BitcoinApplication::*)();
295  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BitcoinApplication::splashFinished)) {
296  *result = 2;
297  return;
298  }
299  }
300  {
301  using _t = void (BitcoinApplication::*)(BitcoinGUI * );
302  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BitcoinApplication::windowShown)) {
303  *result = 3;
304  return;
305  }
306  }
307  }
308 }
309 
310 QT_INIT_METAOBJECT const QMetaObject BitcoinApplication::staticMetaObject = { {
311  QMetaObject::SuperData::link<QApplication::staticMetaObject>(),
314  qt_static_metacall,
315  nullptr,
316  nullptr
317 } };
318 
319 
320 const QMetaObject *BitcoinApplication::metaObject() const
321 {
322  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
323 }
324 
325 void *BitcoinApplication::qt_metacast(const char *_clname)
326 {
327  if (!_clname) return nullptr;
329  return static_cast<void*>(this);
330  return QApplication::qt_metacast(_clname);
331 }
332 
333 int BitcoinApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
334 {
335  _id = QApplication::qt_metacall(_c, _id, _a);
336  if (_id < 0)
337  return _id;
338  if (_c == QMetaObject::InvokeMetaMethod) {
339  if (_id < 7)
340  qt_static_metacall(this, _c, _id, _a);
341  _id -= 7;
342  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
343  if (_id < 7)
344  *reinterpret_cast<int*>(_a[0]) = -1;
345  _id -= 7;
346  }
347  return _id;
348 }
349 
350 // SIGNAL 0
352 {
353  QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
354 }
355 
356 // SIGNAL 1
358 {
359  QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
360 }
361 
362 // SIGNAL 2
364 {
365  QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
366 }
367 
368 // SIGNAL 3
370 {
371  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
372  QMetaObject::activate(this, &staticMetaObject, 3, _a);
373 }
374 QT_WARNING_POP
375 QT_END_MOC_NAMESPACE
Main Bitcoin application object.
Definition: bitcoin.h:56
void windowShown(BitcoinGUI *window)
Class encapsulating Bitcoin Core startup and shutdown.
Definition: bitcoin.h:33
void initializeResult(bool success, interfaces::BlockAndHeaderTipInfo tip_info)
void shutdownResult()
void runawayException(const QString &message)
Bitcoin GUI main class.
Definition: bitcoingui.h:67
static const qt_meta_stringdata_BitcoinApplication_t qt_meta_stringdata_BitcoinApplication
static const uint qt_meta_data_BitcoinApplication[]
static const uint qt_meta_data_BitcoinCore[]
Definition: moc_bitcoin.cpp:54
#define QT_MOC_LITERAL(idx, ofs, len)
static const qt_meta_stringdata_BitcoinCore_t qt_meta_stringdata_BitcoinCore
Definition: moc_bitcoin.cpp:32
Block and header tip information.
Definition: node.h:43