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.6.1. 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
21  QByteArrayData data[11];
22  char stringdata0[141];
23 };
24 #define QT_MOC_LITERAL(idx, ofs, len) \
25  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
26  qptrdiff(offsetof(qt_meta_stringdata_BitcoinCore_t, stringdata0) + ofs \
27  - idx * sizeof(QByteArrayData)) \
28  )
30  {
31 QT_MOC_LITERAL(0, 0, 11), // "BitcoinCore"
32 QT_MOC_LITERAL(1, 12, 16), // "initializeResult"
33 QT_MOC_LITERAL(2, 29, 0), // ""
34 QT_MOC_LITERAL(3, 30, 7), // "success"
35 QT_MOC_LITERAL(4, 38, 33), // "interfaces::BlockAndHeaderTip..."
36 QT_MOC_LITERAL(5, 72, 8), // "tip_info"
37 QT_MOC_LITERAL(6, 81, 14), // "shutdownResult"
38 QT_MOC_LITERAL(7, 96, 16), // "runawayException"
39 QT_MOC_LITERAL(8, 113, 7), // "message"
40 QT_MOC_LITERAL(9, 121, 10), // "initialize"
41 QT_MOC_LITERAL(10, 132, 8) // "shutdown"
42 
43  },
44  "BitcoinCore\0initializeResult\0\0success\0"
45  "interfaces::BlockAndHeaderTipInfo\0"
46  "tip_info\0shutdownResult\0runawayException\0"
47  "message\0initialize\0shutdown"
48 };
49 #undef QT_MOC_LITERAL
50 
51 static const uint qt_meta_data_BitcoinCore[] = {
52 
53  // content:
54  7, // revision
55  0, // classname
56  0, 0, // classinfo
57  5, 14, // methods
58  0, 0, // properties
59  0, 0, // enums/sets
60  0, 0, // constructors
61  0, // flags
62  3, // signalCount
63 
64  // signals: name, argc, parameters, tag, flags
65  1, 2, 39, 2, 0x06 /* Public */,
66  6, 0, 44, 2, 0x06 /* Public */,
67  7, 1, 45, 2, 0x06 /* Public */,
68 
69  // slots: name, argc, parameters, tag, flags
70  9, 0, 48, 2, 0x0a /* Public */,
71  10, 0, 49, 2, 0x0a /* Public */,
72 
73  // signals: parameters
74  QMetaType::Void, QMetaType::Bool, 0x80000000 | 4, 3, 5,
75  QMetaType::Void,
76  QMetaType::Void, QMetaType::QString, 8,
77 
78  // slots: parameters
79  QMetaType::Void,
80  QMetaType::Void,
81 
82  0 // eod
83 };
84 
85 void BitcoinCore::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
86 {
87  if (_c == QMetaObject::InvokeMetaMethod) {
88  BitcoinCore *_t = static_cast<BitcoinCore *>(_o);
89  Q_UNUSED(_t)
90  switch (_id) {
91  case 0: _t->initializeResult((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< interfaces::BlockAndHeaderTipInfo(*)>(_a[2]))); break;
92  case 1: _t->shutdownResult(); break;
93  case 2: _t->runawayException((*reinterpret_cast< const QString(*)>(_a[1]))); break;
94  case 3: _t->initialize(); break;
95  case 4: _t->shutdown(); break;
96  default: ;
97  }
98  } else if (_c == QMetaObject::IndexOfMethod) {
99  int *result = reinterpret_cast<int *>(_a[0]);
100  void **func = reinterpret_cast<void **>(_a[1]);
101  {
102  typedef void (BitcoinCore::*_t)(bool , interfaces::BlockAndHeaderTipInfo );
103  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinCore::initializeResult)) {
104  *result = 0;
105  return;
106  }
107  }
108  {
109  typedef void (BitcoinCore::*_t)();
110  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinCore::shutdownResult)) {
111  *result = 1;
112  return;
113  }
114  }
115  {
116  typedef void (BitcoinCore::*_t)(const QString & );
117  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinCore::runawayException)) {
118  *result = 2;
119  return;
120  }
121  }
122  }
123 }
124 
125 const QMetaObject BitcoinCore::staticMetaObject = {
126  { &QObject::staticMetaObject, qt_meta_stringdata_BitcoinCore.data,
127  qt_meta_data_BitcoinCore, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
128 };
129 
130 
131 const QMetaObject *BitcoinCore::metaObject() const
132 {
133  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
134 }
135 
136 void *BitcoinCore::qt_metacast(const char *_clname)
137 {
138  if (!_clname) return Q_NULLPTR;
139  if (!strcmp(_clname, qt_meta_stringdata_BitcoinCore.stringdata0))
140  return static_cast<void*>(const_cast< BitcoinCore*>(this));
141  return QObject::qt_metacast(_clname);
142 }
143 
144 int BitcoinCore::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
145 {
146  _id = QObject::qt_metacall(_c, _id, _a);
147  if (_id < 0)
148  return _id;
149  if (_c == QMetaObject::InvokeMetaMethod) {
150  if (_id < 5)
151  qt_static_metacall(this, _c, _id, _a);
152  _id -= 5;
153  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
154  if (_id < 5)
155  *reinterpret_cast<int*>(_a[0]) = -1;
156  _id -= 5;
157  }
158  return _id;
159 }
160 
161 // SIGNAL 0
163 {
164  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
165  QMetaObject::activate(this, &staticMetaObject, 0, _a);
166 }
167 
168 // SIGNAL 1
170 {
171  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
172 }
173 
174 // SIGNAL 2
175 void BitcoinCore::runawayException(const QString & _t1)
176 {
177  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
178  QMetaObject::activate(this, &staticMetaObject, 2, _a);
179 }
181  QByteArrayData data[15];
182  char stringdata0[218];
183 };
184 #define QT_MOC_LITERAL(idx, ofs, len) \
185  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
186  qptrdiff(offsetof(qt_meta_stringdata_BitcoinApplication_t, stringdata0) + ofs \
187  - idx * sizeof(QByteArrayData)) \
188  )
190  {
191 QT_MOC_LITERAL(0, 0, 18), // "BitcoinApplication"
192 QT_MOC_LITERAL(1, 19, 19), // "requestedInitialize"
193 QT_MOC_LITERAL(2, 39, 0), // ""
194 QT_MOC_LITERAL(3, 40, 17), // "requestedShutdown"
195 QT_MOC_LITERAL(4, 58, 14), // "splashFinished"
196 QT_MOC_LITERAL(5, 73, 11), // "windowShown"
197 QT_MOC_LITERAL(6, 85, 11), // "BitcoinGUI*"
198 QT_MOC_LITERAL(7, 97, 6), // "window"
199 QT_MOC_LITERAL(8, 104, 16), // "initializeResult"
200 QT_MOC_LITERAL(9, 121, 7), // "success"
201 QT_MOC_LITERAL(10, 129, 33), // "interfaces::BlockAndHeaderTip..."
202 QT_MOC_LITERAL(11, 163, 8), // "tip_info"
203 QT_MOC_LITERAL(12, 172, 14), // "shutdownResult"
204 QT_MOC_LITERAL(13, 187, 22), // "handleRunawayException"
205 QT_MOC_LITERAL(14, 210, 7) // "message"
206 
207  },
208  "BitcoinApplication\0requestedInitialize\0"
209  "\0requestedShutdown\0splashFinished\0"
210  "windowShown\0BitcoinGUI*\0window\0"
211  "initializeResult\0success\0"
212  "interfaces::BlockAndHeaderTipInfo\0"
213  "tip_info\0shutdownResult\0handleRunawayException\0"
214  "message"
215 };
216 #undef QT_MOC_LITERAL
217 
218 static const uint qt_meta_data_BitcoinApplication[] = {
219 
220  // content:
221  7, // revision
222  0, // classname
223  0, 0, // classinfo
224  7, 14, // methods
225  0, 0, // properties
226  0, 0, // enums/sets
227  0, 0, // constructors
228  0, // flags
229  4, // signalCount
230 
231  // signals: name, argc, parameters, tag, flags
232  1, 0, 49, 2, 0x06 /* Public */,
233  3, 0, 50, 2, 0x06 /* Public */,
234  4, 0, 51, 2, 0x06 /* Public */,
235  5, 1, 52, 2, 0x06 /* Public */,
236 
237  // slots: name, argc, parameters, tag, flags
238  8, 2, 55, 2, 0x0a /* Public */,
239  12, 0, 60, 2, 0x0a /* Public */,
240  13, 1, 61, 2, 0x0a /* Public */,
241 
242  // signals: parameters
243  QMetaType::Void,
244  QMetaType::Void,
245  QMetaType::Void,
246  QMetaType::Void, 0x80000000 | 6, 7,
247 
248  // slots: parameters
249  QMetaType::Void, QMetaType::Bool, 0x80000000 | 10, 9, 11,
250  QMetaType::Void,
251  QMetaType::Void, QMetaType::QString, 14,
252 
253  0 // eod
254 };
255 
256 void BitcoinApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
257 {
258  if (_c == QMetaObject::InvokeMetaMethod) {
259  BitcoinApplication *_t = static_cast<BitcoinApplication *>(_o);
260  Q_UNUSED(_t)
261  switch (_id) {
262  case 0: _t->requestedInitialize(); break;
263  case 1: _t->requestedShutdown(); break;
264  case 2: _t->splashFinished(); break;
265  case 3: _t->windowShown((*reinterpret_cast< BitcoinGUI*(*)>(_a[1]))); break;
266  case 4: _t->initializeResult((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< interfaces::BlockAndHeaderTipInfo(*)>(_a[2]))); break;
267  case 5: _t->shutdownResult(); break;
268  case 6: _t->handleRunawayException((*reinterpret_cast< const QString(*)>(_a[1]))); break;
269  default: ;
270  }
271  } else if (_c == QMetaObject::IndexOfMethod) {
272  int *result = reinterpret_cast<int *>(_a[0]);
273  void **func = reinterpret_cast<void **>(_a[1]);
274  {
275  typedef void (BitcoinApplication::*_t)();
276  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinApplication::requestedInitialize)) {
277  *result = 0;
278  return;
279  }
280  }
281  {
282  typedef void (BitcoinApplication::*_t)();
283  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinApplication::requestedShutdown)) {
284  *result = 1;
285  return;
286  }
287  }
288  {
289  typedef void (BitcoinApplication::*_t)();
290  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinApplication::splashFinished)) {
291  *result = 2;
292  return;
293  }
294  }
295  {
296  typedef void (BitcoinApplication::*_t)(BitcoinGUI * );
297  if (*reinterpret_cast<_t *>(func) == 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, Q_NULLPTR, Q_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 Q_NULLPTR;
319  if (!strcmp(_clname, qt_meta_stringdata_BitcoinApplication.stringdata0))
320  return static_cast<void*>(const_cast< BitcoinApplication*>(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, Q_NULLPTR);
345 }
346 
347 // SIGNAL 1
349 {
350  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
351 }
352 
353 // SIGNAL 2
355 {
356  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
357 }
358 
359 // SIGNAL 3
361 {
362  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
363  QMetaObject::activate(this, &staticMetaObject, 3, _a);
364 }
365 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:51
void shutdownResult()
Definition: bitcoin.cpp:412
static const qt_meta_stringdata_BitcoinCore_t qt_meta_stringdata_BitcoinCore
Definition: moc_bitcoin.cpp:29
void shutdownResult()
void runawayException(const QString &message)
void initializeResult(bool success, interfaces::BlockAndHeaderTipInfo tip_info)
Definition: bitcoin.cpp:361