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