Bitcoin Core  0.21.0rc5
P2P Digital Currency
moc_walletcontroller.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'walletcontroller.h'
3 **
4 **
5 ** WARNING! All changes made in this file will be lost!
6 *****************************************************************************/
7 
8 #include <memory>
9 #include "qt/walletcontroller.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'walletcontroller.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[10];
25  char stringdata0[121];
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_WalletController_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
33  {
34 QT_MOC_LITERAL(0, 0, 16), // "WalletController"
35 QT_MOC_LITERAL(1, 17, 11), // "walletAdded"
36 QT_MOC_LITERAL(2, 29, 0), // ""
37 QT_MOC_LITERAL(3, 30, 12), // "WalletModel*"
38 QT_MOC_LITERAL(4, 43, 12), // "wallet_model"
39 QT_MOC_LITERAL(5, 56, 13), // "walletRemoved"
40 QT_MOC_LITERAL(6, 70, 9), // "coinsSent"
41 QT_MOC_LITERAL(7, 80, 18), // "SendCoinsRecipient"
42 QT_MOC_LITERAL(8, 99, 9), // "recipient"
43 QT_MOC_LITERAL(9, 109, 11) // "transaction"
44 
45  },
46  "WalletController\0walletAdded\0\0"
47  "WalletModel*\0wallet_model\0walletRemoved\0"
48  "coinsSent\0SendCoinsRecipient\0recipient\0"
49  "transaction"
50 };
51 #undef QT_MOC_LITERAL
52 
53 static const uint qt_meta_data_WalletController[] = {
54 
55  // content:
56  8, // revision
57  0, // classname
58  0, 0, // classinfo
59  3, 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, 1, 29, 2, 0x06 /* Public */,
68  5, 1, 32, 2, 0x06 /* Public */,
69  6, 3, 35, 2, 0x06 /* Public */,
70 
71  // signals: parameters
72  QMetaType::Void, 0x80000000 | 3, 4,
73  QMetaType::Void, 0x80000000 | 3, 4,
74  QMetaType::Void, 0x80000000 | 3, 0x80000000 | 7, QMetaType::QByteArray, 4, 8, 9,
75 
76  0 // eod
77 };
78 
79 void WalletController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
80 {
81  if (_c == QMetaObject::InvokeMetaMethod) {
82  auto *_t = static_cast<WalletController *>(_o);
83  Q_UNUSED(_t)
84  switch (_id) {
85  case 0: _t->walletAdded((*reinterpret_cast< WalletModel*(*)>(_a[1]))); break;
86  case 1: _t->walletRemoved((*reinterpret_cast< WalletModel*(*)>(_a[1]))); break;
87  case 2: _t->coinsSent((*reinterpret_cast< WalletModel*(*)>(_a[1])),(*reinterpret_cast< SendCoinsRecipient(*)>(_a[2])),(*reinterpret_cast< QByteArray(*)>(_a[3]))); break;
88  default: ;
89  }
90  } else if (_c == QMetaObject::IndexOfMethod) {
91  int *result = reinterpret_cast<int *>(_a[0]);
92  {
93  using _t = void (WalletController::*)(WalletModel * );
94  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletController::walletAdded)) {
95  *result = 0;
96  return;
97  }
98  }
99  {
100  using _t = void (WalletController::*)(WalletModel * );
101  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletController::walletRemoved)) {
102  *result = 1;
103  return;
104  }
105  }
106  {
107  using _t = void (WalletController::*)(WalletModel * , SendCoinsRecipient , QByteArray );
108  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletController::coinsSent)) {
109  *result = 2;
110  return;
111  }
112  }
113  }
114 }
115 
116 QT_INIT_METAOBJECT const QMetaObject WalletController::staticMetaObject = { {
117  QMetaObject::SuperData::link<QObject::staticMetaObject>(),
120  qt_static_metacall,
121  nullptr,
122  nullptr
123 } };
124 
125 
126 const QMetaObject *WalletController::metaObject() const
127 {
128  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
129 }
130 
131 void *WalletController::qt_metacast(const char *_clname)
132 {
133  if (!_clname) return nullptr;
134  if (!strcmp(_clname, qt_meta_stringdata_WalletController.stringdata0))
135  return static_cast<void*>(this);
136  return QObject::qt_metacast(_clname);
137 }
138 
139 int WalletController::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
140 {
141  _id = QObject::qt_metacall(_c, _id, _a);
142  if (_id < 0)
143  return _id;
144  if (_c == QMetaObject::InvokeMetaMethod) {
145  if (_id < 3)
146  qt_static_metacall(this, _c, _id, _a);
147  _id -= 3;
148  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
149  if (_id < 3)
150  *reinterpret_cast<int*>(_a[0]) = -1;
151  _id -= 3;
152  }
153  return _id;
154 }
155 
156 // SIGNAL 0
158 {
159  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
160  QMetaObject::activate(this, &staticMetaObject, 0, _a);
161 }
162 
163 // SIGNAL 1
165 {
166  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
167  QMetaObject::activate(this, &staticMetaObject, 1, _a);
168 }
169 
170 // SIGNAL 2
172 {
173  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
174  QMetaObject::activate(this, &staticMetaObject, 2, _a);
175 }
177  QByteArrayData data[3];
178  char stringdata0[35];
179 };
180 #define QT_MOC_LITERAL(idx, ofs, len) \
181  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
182  qptrdiff(offsetof(qt_meta_stringdata_WalletControllerActivity_t, stringdata0) + ofs \
183  - idx * sizeof(QByteArrayData)) \
184  )
186  {
187 QT_MOC_LITERAL(0, 0, 24), // "WalletControllerActivity"
188 QT_MOC_LITERAL(1, 25, 8), // "finished"
189 QT_MOC_LITERAL(2, 34, 0) // ""
190 
191  },
192  "WalletControllerActivity\0finished\0"
193 };
194 #undef QT_MOC_LITERAL
195 
197 
198  // content:
199  8, // revision
200  0, // classname
201  0, 0, // classinfo
202  1, 14, // methods
203  0, 0, // properties
204  0, 0, // enums/sets
205  0, 0, // constructors
206  0, // flags
207  1, // signalCount
208 
209  // signals: name, argc, parameters, tag, flags
210  1, 0, 19, 2, 0x06 /* Public */,
211 
212  // signals: parameters
213  QMetaType::Void,
214 
215  0 // eod
216 };
217 
218 void WalletControllerActivity::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
219 {
220  if (_c == QMetaObject::InvokeMetaMethod) {
221  auto *_t = static_cast<WalletControllerActivity *>(_o);
222  Q_UNUSED(_t)
223  switch (_id) {
224  case 0: _t->finished(); break;
225  default: ;
226  }
227  } else if (_c == QMetaObject::IndexOfMethod) {
228  int *result = reinterpret_cast<int *>(_a[0]);
229  {
230  using _t = void (WalletControllerActivity::*)();
231  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletControllerActivity::finished)) {
232  *result = 0;
233  return;
234  }
235  }
236  }
237  Q_UNUSED(_a);
238 }
239 
240 QT_INIT_METAOBJECT const QMetaObject WalletControllerActivity::staticMetaObject = { {
241  QMetaObject::SuperData::link<QObject::staticMetaObject>(),
244  qt_static_metacall,
245  nullptr,
246  nullptr
247 } };
248 
249 
250 const QMetaObject *WalletControllerActivity::metaObject() const
251 {
252  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
253 }
254 
255 void *WalletControllerActivity::qt_metacast(const char *_clname)
256 {
257  if (!_clname) return nullptr;
259  return static_cast<void*>(this);
260  return QObject::qt_metacast(_clname);
261 }
262 
263 int WalletControllerActivity::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
264 {
265  _id = QObject::qt_metacall(_c, _id, _a);
266  if (_id < 0)
267  return _id;
268  if (_c == QMetaObject::InvokeMetaMethod) {
269  if (_id < 1)
270  qt_static_metacall(this, _c, _id, _a);
271  _id -= 1;
272  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
273  if (_id < 1)
274  *reinterpret_cast<int*>(_a[0]) = -1;
275  _id -= 1;
276  }
277  return _id;
278 }
279 
280 // SIGNAL 0
282 {
283  QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
284 }
286  QByteArrayData data[5];
287  char stringdata0[56];
288 };
289 #define QT_MOC_LITERAL(idx, ofs, len) \
290  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
291  qptrdiff(offsetof(qt_meta_stringdata_CreateWalletActivity_t, stringdata0) + ofs \
292  - idx * sizeof(QByteArrayData)) \
293  )
295  {
296 QT_MOC_LITERAL(0, 0, 20), // "CreateWalletActivity"
297 QT_MOC_LITERAL(1, 21, 7), // "created"
298 QT_MOC_LITERAL(2, 29, 0), // ""
299 QT_MOC_LITERAL(3, 30, 12), // "WalletModel*"
300 QT_MOC_LITERAL(4, 43, 12) // "wallet_model"
301 
302  },
303  "CreateWalletActivity\0created\0\0"
304  "WalletModel*\0wallet_model"
305 };
306 #undef QT_MOC_LITERAL
307 
308 static const uint qt_meta_data_CreateWalletActivity[] = {
309 
310  // content:
311  8, // revision
312  0, // classname
313  0, 0, // classinfo
314  1, 14, // methods
315  0, 0, // properties
316  0, 0, // enums/sets
317  0, 0, // constructors
318  0, // flags
319  1, // signalCount
320 
321  // signals: name, argc, parameters, tag, flags
322  1, 1, 19, 2, 0x06 /* Public */,
323 
324  // signals: parameters
325  QMetaType::Void, 0x80000000 | 3, 4,
326 
327  0 // eod
328 };
329 
330 void CreateWalletActivity::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
331 {
332  if (_c == QMetaObject::InvokeMetaMethod) {
333  auto *_t = static_cast<CreateWalletActivity *>(_o);
334  Q_UNUSED(_t)
335  switch (_id) {
336  case 0: _t->created((*reinterpret_cast< WalletModel*(*)>(_a[1]))); break;
337  default: ;
338  }
339  } else if (_c == QMetaObject::IndexOfMethod) {
340  int *result = reinterpret_cast<int *>(_a[0]);
341  {
342  using _t = void (CreateWalletActivity::*)(WalletModel * );
343  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CreateWalletActivity::created)) {
344  *result = 0;
345  return;
346  }
347  }
348  }
349 }
350 
351 QT_INIT_METAOBJECT const QMetaObject CreateWalletActivity::staticMetaObject = { {
352  QMetaObject::SuperData::link<WalletControllerActivity::staticMetaObject>(),
355  qt_static_metacall,
356  nullptr,
357  nullptr
358 } };
359 
360 
361 const QMetaObject *CreateWalletActivity::metaObject() const
362 {
363  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
364 }
365 
366 void *CreateWalletActivity::qt_metacast(const char *_clname)
367 {
368  if (!_clname) return nullptr;
370  return static_cast<void*>(this);
371  return WalletControllerActivity::qt_metacast(_clname);
372 }
373 
374 int CreateWalletActivity::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
375 {
376  _id = WalletControllerActivity::qt_metacall(_c, _id, _a);
377  if (_id < 0)
378  return _id;
379  if (_c == QMetaObject::InvokeMetaMethod) {
380  if (_id < 1)
381  qt_static_metacall(this, _c, _id, _a);
382  _id -= 1;
383  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
384  if (_id < 1)
385  *reinterpret_cast<int*>(_a[0]) = -1;
386  _id -= 1;
387  }
388  return _id;
389 }
390 
391 // SIGNAL 0
393 {
394  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
395  QMetaObject::activate(this, &staticMetaObject, 0, _a);
396 }
398  QByteArrayData data[5];
399  char stringdata0[53];
400 };
401 #define QT_MOC_LITERAL(idx, ofs, len) \
402  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
403  qptrdiff(offsetof(qt_meta_stringdata_OpenWalletActivity_t, stringdata0) + ofs \
404  - idx * sizeof(QByteArrayData)) \
405  )
407  {
408 QT_MOC_LITERAL(0, 0, 18), // "OpenWalletActivity"
409 QT_MOC_LITERAL(1, 19, 6), // "opened"
410 QT_MOC_LITERAL(2, 26, 0), // ""
411 QT_MOC_LITERAL(3, 27, 12), // "WalletModel*"
412 QT_MOC_LITERAL(4, 40, 12) // "wallet_model"
413 
414  },
415  "OpenWalletActivity\0opened\0\0WalletModel*\0"
416  "wallet_model"
417 };
418 #undef QT_MOC_LITERAL
419 
420 static const uint qt_meta_data_OpenWalletActivity[] = {
421 
422  // content:
423  8, // revision
424  0, // classname
425  0, 0, // classinfo
426  1, 14, // methods
427  0, 0, // properties
428  0, 0, // enums/sets
429  0, 0, // constructors
430  0, // flags
431  1, // signalCount
432 
433  // signals: name, argc, parameters, tag, flags
434  1, 1, 19, 2, 0x06 /* Public */,
435 
436  // signals: parameters
437  QMetaType::Void, 0x80000000 | 3, 4,
438 
439  0 // eod
440 };
441 
442 void OpenWalletActivity::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
443 {
444  if (_c == QMetaObject::InvokeMetaMethod) {
445  auto *_t = static_cast<OpenWalletActivity *>(_o);
446  Q_UNUSED(_t)
447  switch (_id) {
448  case 0: _t->opened((*reinterpret_cast< WalletModel*(*)>(_a[1]))); break;
449  default: ;
450  }
451  } else if (_c == QMetaObject::IndexOfMethod) {
452  int *result = reinterpret_cast<int *>(_a[0]);
453  {
454  using _t = void (OpenWalletActivity::*)(WalletModel * );
455  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OpenWalletActivity::opened)) {
456  *result = 0;
457  return;
458  }
459  }
460  }
461 }
462 
463 QT_INIT_METAOBJECT const QMetaObject OpenWalletActivity::staticMetaObject = { {
464  QMetaObject::SuperData::link<WalletControllerActivity::staticMetaObject>(),
467  qt_static_metacall,
468  nullptr,
469  nullptr
470 } };
471 
472 
473 const QMetaObject *OpenWalletActivity::metaObject() const
474 {
475  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
476 }
477 
478 void *OpenWalletActivity::qt_metacast(const char *_clname)
479 {
480  if (!_clname) return nullptr;
482  return static_cast<void*>(this);
483  return WalletControllerActivity::qt_metacast(_clname);
484 }
485 
486 int OpenWalletActivity::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
487 {
488  _id = WalletControllerActivity::qt_metacall(_c, _id, _a);
489  if (_id < 0)
490  return _id;
491  if (_c == QMetaObject::InvokeMetaMethod) {
492  if (_id < 1)
493  qt_static_metacall(this, _c, _id, _a);
494  _id -= 1;
495  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
496  if (_id < 1)
497  *reinterpret_cast<int*>(_a[0]) = -1;
498  _id -= 1;
499  }
500  return _id;
501 }
502 
503 // SIGNAL 0
505 {
506  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
507  QMetaObject::activate(this, &staticMetaObject, 0, _a);
508 }
509 QT_WARNING_POP
510 QT_END_MOC_NAMESPACE
void created(WalletModel *wallet_model)
void opened(WalletModel *wallet_model)
Controller between interfaces::Node, WalletModel instances and the GUI.
void walletAdded(WalletModel *wallet_model)
void coinsSent(WalletModel *wallet_model, SendCoinsRecipient recipient, QByteArray transaction)
void walletRemoved(WalletModel *wallet_model)
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:52
static const qt_meta_stringdata_CreateWalletActivity_t qt_meta_stringdata_CreateWalletActivity
static const uint qt_meta_data_WalletControllerActivity[]
static const uint qt_meta_data_WalletController[]
static const uint qt_meta_data_OpenWalletActivity[]
static const qt_meta_stringdata_OpenWalletActivity_t qt_meta_stringdata_OpenWalletActivity
#define QT_MOC_LITERAL(idx, ofs, len)
static const qt_meta_stringdata_WalletController_t qt_meta_stringdata_WalletController
static const uint qt_meta_data_CreateWalletActivity[]
static const qt_meta_stringdata_WalletControllerActivity_t qt_meta_stringdata_WalletControllerActivity