Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
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.5.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  }
106  }
107  {
108  typedef void (BitcoinCore::*_t)();
109  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinCore::shutdownResult)) {
110  *result = 1;
111  }
112  }
113  {
114  typedef void (BitcoinCore::*_t)(const QString & );
115  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinCore::runawayException)) {
116  *result = 2;
117  }
118  }
119  }
120 }
121 
122 const QMetaObject BitcoinCore::staticMetaObject = {
123  { &QObject::staticMetaObject, qt_meta_stringdata_BitcoinCore.data,
124  qt_meta_data_BitcoinCore, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
125 };
126 
127 
128 const QMetaObject *BitcoinCore::metaObject() const
129 {
130  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
131 }
132 
133 void *BitcoinCore::qt_metacast(const char *_clname)
134 {
135  if (!_clname) return Q_NULLPTR;
136  if (!strcmp(_clname, qt_meta_stringdata_BitcoinCore.stringdata0))
137  return static_cast<void*>(const_cast< BitcoinCore*>(this));
138  return QObject::qt_metacast(_clname);
139 }
140 
141 int BitcoinCore::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
142 {
143  _id = QObject::qt_metacall(_c, _id, _a);
144  if (_id < 0)
145  return _id;
146  if (_c == QMetaObject::InvokeMetaMethod) {
147  if (_id < 5)
148  qt_static_metacall(this, _c, _id, _a);
149  _id -= 5;
150  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
151  if (_id < 5)
152  *reinterpret_cast<int*>(_a[0]) = -1;
153  _id -= 5;
154  }
155  return _id;
156 }
157 
158 // SIGNAL 0
160 {
161  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
162  QMetaObject::activate(this, &staticMetaObject, 0, _a);
163 }
164 
165 // SIGNAL 1
167 {
168  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
169 }
170 
171 // SIGNAL 2
172 void BitcoinCore::runawayException(const QString & _t1)
173 {
174  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
175  QMetaObject::activate(this, &staticMetaObject, 2, _a);
176 }
178  QByteArrayData data[15];
179  char stringdata0[218];
180 };
181 #define QT_MOC_LITERAL(idx, ofs, len) \
182  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
183  qptrdiff(offsetof(qt_meta_stringdata_BitcoinApplication_t, stringdata0) + ofs \
184  - idx * sizeof(QByteArrayData)) \
185  )
187  {
188 QT_MOC_LITERAL(0, 0, 18), // "BitcoinApplication"
189 QT_MOC_LITERAL(1, 19, 19), // "requestedInitialize"
190 QT_MOC_LITERAL(2, 39, 0), // ""
191 QT_MOC_LITERAL(3, 40, 17), // "requestedShutdown"
192 QT_MOC_LITERAL(4, 58, 14), // "splashFinished"
193 QT_MOC_LITERAL(5, 73, 11), // "windowShown"
194 QT_MOC_LITERAL(6, 85, 11), // "BitcoinGUI*"
195 QT_MOC_LITERAL(7, 97, 6), // "window"
196 QT_MOC_LITERAL(8, 104, 16), // "initializeResult"
197 QT_MOC_LITERAL(9, 121, 7), // "success"
198 QT_MOC_LITERAL(10, 129, 33), // "interfaces::BlockAndHeaderTip..."
199 QT_MOC_LITERAL(11, 163, 8), // "tip_info"
200 QT_MOC_LITERAL(12, 172, 14), // "shutdownResult"
201 QT_MOC_LITERAL(13, 187, 22), // "handleRunawayException"
202 QT_MOC_LITERAL(14, 210, 7) // "message"
203 
204  },
205  "BitcoinApplication\0requestedInitialize\0"
206  "\0requestedShutdown\0splashFinished\0"
207  "windowShown\0BitcoinGUI*\0window\0"
208  "initializeResult\0success\0"
209  "interfaces::BlockAndHeaderTipInfo\0"
210  "tip_info\0shutdownResult\0handleRunawayException\0"
211  "message"
212 };
213 #undef QT_MOC_LITERAL
214 
215 static const uint qt_meta_data_BitcoinApplication[] = {
216 
217  // content:
218  7, // revision
219  0, // classname
220  0, 0, // classinfo
221  7, 14, // methods
222  0, 0, // properties
223  0, 0, // enums/sets
224  0, 0, // constructors
225  0, // flags
226  4, // signalCount
227 
228  // signals: name, argc, parameters, tag, flags
229  1, 0, 49, 2, 0x06 /* Public */,
230  3, 0, 50, 2, 0x06 /* Public */,
231  4, 0, 51, 2, 0x06 /* Public */,
232  5, 1, 52, 2, 0x06 /* Public */,
233 
234  // slots: name, argc, parameters, tag, flags
235  8, 2, 55, 2, 0x0a /* Public */,
236  12, 0, 60, 2, 0x0a /* Public */,
237  13, 1, 61, 2, 0x0a /* Public */,
238 
239  // signals: parameters
240  QMetaType::Void,
241  QMetaType::Void,
242  QMetaType::Void,
243  QMetaType::Void, 0x80000000 | 6, 7,
244 
245  // slots: parameters
246  QMetaType::Void, QMetaType::Bool, 0x80000000 | 10, 9, 11,
247  QMetaType::Void,
248  QMetaType::Void, QMetaType::QString, 14,
249 
250  0 // eod
251 };
252 
253 void BitcoinApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
254 {
255  if (_c == QMetaObject::InvokeMetaMethod) {
256  BitcoinApplication *_t = static_cast<BitcoinApplication *>(_o);
257  Q_UNUSED(_t)
258  switch (_id) {
259  case 0: _t->requestedInitialize(); break;
260  case 1: _t->requestedShutdown(); break;
261  case 2: _t->splashFinished(); break;
262  case 3: _t->windowShown((*reinterpret_cast< BitcoinGUI*(*)>(_a[1]))); break;
263  case 4: _t->initializeResult((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< interfaces::BlockAndHeaderTipInfo(*)>(_a[2]))); break;
264  case 5: _t->shutdownResult(); break;
265  case 6: _t->handleRunawayException((*reinterpret_cast< const QString(*)>(_a[1]))); break;
266  default: ;
267  }
268  } else if (_c == QMetaObject::IndexOfMethod) {
269  int *result = reinterpret_cast<int *>(_a[0]);
270  void **func = reinterpret_cast<void **>(_a[1]);
271  {
272  typedef void (BitcoinApplication::*_t)();
273  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinApplication::requestedInitialize)) {
274  *result = 0;
275  }
276  }
277  {
278  typedef void (BitcoinApplication::*_t)();
279  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinApplication::requestedShutdown)) {
280  *result = 1;
281  }
282  }
283  {
284  typedef void (BitcoinApplication::*_t)();
285  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinApplication::splashFinished)) {
286  *result = 2;
287  }
288  }
289  {
290  typedef void (BitcoinApplication::*_t)(BitcoinGUI * );
291  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BitcoinApplication::windowShown)) {
292  *result = 3;
293  }
294  }
295  }
296 }
297 
298 const QMetaObject BitcoinApplication::staticMetaObject = {
299  { &QApplication::staticMetaObject, qt_meta_stringdata_BitcoinApplication.data,
300  qt_meta_data_BitcoinApplication, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
301 };
302 
303 
304 const QMetaObject *BitcoinApplication::metaObject() const
305 {
306  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
307 }
308 
309 void *BitcoinApplication::qt_metacast(const char *_clname)
310 {
311  if (!_clname) return Q_NULLPTR;
312  if (!strcmp(_clname, qt_meta_stringdata_BitcoinApplication.stringdata0))
313  return static_cast<void*>(const_cast< BitcoinApplication*>(this));
314  return QApplication::qt_metacast(_clname);
315 }
316 
317 int BitcoinApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
318 {
319  _id = QApplication::qt_metacall(_c, _id, _a);
320  if (_id < 0)
321  return _id;
322  if (_c == QMetaObject::InvokeMetaMethod) {
323  if (_id < 7)
324  qt_static_metacall(this, _c, _id, _a);
325  _id -= 7;
326  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
327  if (_id < 7)
328  *reinterpret_cast<int*>(_a[0]) = -1;
329  _id -= 7;
330  }
331  return _id;
332 }
333 
334 // SIGNAL 0
336 {
337  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
338 }
339 
340 // SIGNAL 1
342 {
343  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
344 }
345 
346 // SIGNAL 2
348 {
349  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
350 }
351 
352 // SIGNAL 3
354 {
355  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
356  QMetaObject::activate(this, &staticMetaObject, 3, _a);
357 }
358 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