Bitcoin Core  24.1.0
P2P Digital Currency
moc_walletmodel.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'walletmodel.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.7)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "qt/walletmodel.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'walletmodel.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.12.7. 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[34];
25  char stringdata0[438];
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_WalletModel_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
33  {
34 QT_MOC_LITERAL(0, 0, 11), // "WalletModel"
35 QT_MOC_LITERAL(1, 12, 14), // "balanceChanged"
36 QT_MOC_LITERAL(2, 27, 0), // ""
37 QT_MOC_LITERAL(3, 28, 26), // "interfaces::WalletBalances"
38 QT_MOC_LITERAL(4, 55, 8), // "balances"
39 QT_MOC_LITERAL(5, 64, 23), // "encryptionStatusChanged"
40 QT_MOC_LITERAL(6, 88, 13), // "requireUnlock"
41 QT_MOC_LITERAL(7, 102, 7), // "message"
42 QT_MOC_LITERAL(8, 110, 5), // "title"
43 QT_MOC_LITERAL(9, 116, 5), // "style"
44 QT_MOC_LITERAL(10, 122, 9), // "coinsSent"
45 QT_MOC_LITERAL(11, 132, 12), // "WalletModel*"
46 QT_MOC_LITERAL(12, 145, 6), // "wallet"
47 QT_MOC_LITERAL(13, 152, 18), // "SendCoinsRecipient"
48 QT_MOC_LITERAL(14, 171, 9), // "recipient"
49 QT_MOC_LITERAL(15, 181, 11), // "transaction"
50 QT_MOC_LITERAL(16, 193, 12), // "showProgress"
51 QT_MOC_LITERAL(17, 206, 9), // "nProgress"
52 QT_MOC_LITERAL(18, 216, 22), // "notifyWatchonlyChanged"
53 QT_MOC_LITERAL(19, 239, 14), // "fHaveWatchonly"
54 QT_MOC_LITERAL(20, 254, 6), // "unload"
55 QT_MOC_LITERAL(21, 261, 22), // "canGetAddressesChanged"
56 QT_MOC_LITERAL(22, 284, 12), // "timerTimeout"
57 QT_MOC_LITERAL(23, 297, 16), // "startPollBalance"
58 QT_MOC_LITERAL(24, 314, 12), // "updateStatus"
59 QT_MOC_LITERAL(25, 327, 17), // "updateTransaction"
60 QT_MOC_LITERAL(26, 345, 17), // "updateAddressBook"
61 QT_MOC_LITERAL(27, 363, 7), // "address"
62 QT_MOC_LITERAL(28, 371, 5), // "label"
63 QT_MOC_LITERAL(29, 377, 6), // "isMine"
64 QT_MOC_LITERAL(30, 384, 7), // "purpose"
65 QT_MOC_LITERAL(31, 392, 6), // "status"
66 QT_MOC_LITERAL(32, 399, 19), // "updateWatchOnlyFlag"
67 QT_MOC_LITERAL(33, 419, 18) // "pollBalanceChanged"
68 
69  },
70  "WalletModel\0balanceChanged\0\0"
71  "interfaces::WalletBalances\0balances\0"
72  "encryptionStatusChanged\0requireUnlock\0"
73  "message\0title\0style\0coinsSent\0"
74  "WalletModel*\0wallet\0SendCoinsRecipient\0"
75  "recipient\0transaction\0showProgress\0"
76  "nProgress\0notifyWatchonlyChanged\0"
77  "fHaveWatchonly\0unload\0canGetAddressesChanged\0"
78  "timerTimeout\0startPollBalance\0"
79  "updateStatus\0updateTransaction\0"
80  "updateAddressBook\0address\0label\0isMine\0"
81  "purpose\0status\0updateWatchOnlyFlag\0"
82  "pollBalanceChanged"
83 };
84 #undef QT_MOC_LITERAL
85 
86 static const uint qt_meta_data_WalletModel[] = {
87 
88  // content:
89  8, // revision
90  0, // classname
91  0, 0, // classinfo
92  16, 14, // methods
93  0, 0, // properties
94  0, 0, // enums/sets
95  0, 0, // constructors
96  0, // flags
97  10, // signalCount
98 
99  // signals: name, argc, parameters, tag, flags
100  1, 1, 94, 2, 0x06 /* Public */,
101  5, 0, 97, 2, 0x06 /* Public */,
102  6, 0, 98, 2, 0x06 /* Public */,
103  7, 3, 99, 2, 0x06 /* Public */,
104  10, 3, 106, 2, 0x06 /* Public */,
105  16, 2, 113, 2, 0x06 /* Public */,
106  18, 1, 118, 2, 0x06 /* Public */,
107  20, 0, 121, 2, 0x06 /* Public */,
108  21, 0, 122, 2, 0x06 /* Public */,
109  22, 0, 123, 2, 0x06 /* Public */,
110 
111  // slots: name, argc, parameters, tag, flags
112  23, 0, 124, 2, 0x0a /* Public */,
113  24, 0, 125, 2, 0x0a /* Public */,
114  25, 0, 126, 2, 0x0a /* Public */,
115  26, 5, 127, 2, 0x0a /* Public */,
116  32, 1, 138, 2, 0x0a /* Public */,
117  33, 0, 141, 2, 0x0a /* Public */,
118 
119  // signals: parameters
120  QMetaType::Void, 0x80000000 | 3, 4,
121  QMetaType::Void,
122  QMetaType::Void,
123  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::UInt, 8, 7, 9,
124  QMetaType::Void, 0x80000000 | 11, 0x80000000 | 13, QMetaType::QByteArray, 12, 14, 15,
125  QMetaType::Void, QMetaType::QString, QMetaType::Int, 8, 17,
126  QMetaType::Void, QMetaType::Bool, 19,
127  QMetaType::Void,
128  QMetaType::Void,
129  QMetaType::Void,
130 
131  // slots: parameters
132  QMetaType::Void,
133  QMetaType::Void,
134  QMetaType::Void,
135  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Bool, QMetaType::QString, QMetaType::Int, 27, 28, 29, 30, 31,
136  QMetaType::Void, QMetaType::Bool, 19,
137  QMetaType::Void,
138 
139  0 // eod
140 };
141 
142 void WalletModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
143 {
144  if (_c == QMetaObject::InvokeMetaMethod) {
145  auto *_t = static_cast<WalletModel *>(_o);
146  Q_UNUSED(_t)
147  switch (_id) {
148  case 0: _t->balanceChanged((*reinterpret_cast< const interfaces::WalletBalances(*)>(_a[1]))); break;
149  case 1: _t->encryptionStatusChanged(); break;
150  case 2: _t->requireUnlock(); break;
151  case 3: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break;
152  case 4: _t->coinsSent((*reinterpret_cast< WalletModel*(*)>(_a[1])),(*reinterpret_cast< SendCoinsRecipient(*)>(_a[2])),(*reinterpret_cast< QByteArray(*)>(_a[3]))); break;
153  case 5: _t->showProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
154  case 6: _t->notifyWatchonlyChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
155  case 7: _t->unload(); break;
156  case 8: _t->canGetAddressesChanged(); break;
157  case 9: _t->timerTimeout(); break;
158  case 10: _t->startPollBalance(); break;
159  case 11: _t->updateStatus(); break;
160  case 12: _t->updateTransaction(); break;
161  case 13: _t->updateAddressBook((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break;
162  case 14: _t->updateWatchOnlyFlag((*reinterpret_cast< bool(*)>(_a[1]))); break;
163  case 15: _t->pollBalanceChanged(); break;
164  default: ;
165  }
166  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
167  switch (_id) {
168  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
169  case 4:
170  switch (*reinterpret_cast<int*>(_a[1])) {
171  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
172  case 0:
173  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< WalletModel* >(); break;
174  }
175  break;
176  }
177  } else if (_c == QMetaObject::IndexOfMethod) {
178  int *result = reinterpret_cast<int *>(_a[0]);
179  {
180  using _t = void (WalletModel::*)(const interfaces::WalletBalances & );
181  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::balanceChanged)) {
182  *result = 0;
183  return;
184  }
185  }
186  {
187  using _t = void (WalletModel::*)();
188  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::encryptionStatusChanged)) {
189  *result = 1;
190  return;
191  }
192  }
193  {
194  using _t = void (WalletModel::*)();
195  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::requireUnlock)) {
196  *result = 2;
197  return;
198  }
199  }
200  {
201  using _t = void (WalletModel::*)(const QString & , const QString & , unsigned int );
202  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::message)) {
203  *result = 3;
204  return;
205  }
206  }
207  {
208  using _t = void (WalletModel::*)(WalletModel * , SendCoinsRecipient , QByteArray );
209  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::coinsSent)) {
210  *result = 4;
211  return;
212  }
213  }
214  {
215  using _t = void (WalletModel::*)(const QString & , int );
216  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::showProgress)) {
217  *result = 5;
218  return;
219  }
220  }
221  {
222  using _t = void (WalletModel::*)(bool );
223  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::notifyWatchonlyChanged)) {
224  *result = 6;
225  return;
226  }
227  }
228  {
229  using _t = void (WalletModel::*)();
230  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::unload)) {
231  *result = 7;
232  return;
233  }
234  }
235  {
236  using _t = void (WalletModel::*)();
237  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::canGetAddressesChanged)) {
238  *result = 8;
239  return;
240  }
241  }
242  {
243  using _t = void (WalletModel::*)();
244  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::timerTimeout)) {
245  *result = 9;
246  return;
247  }
248  }
249  }
250 }
251 
252 QT_INIT_METAOBJECT const QMetaObject WalletModel::staticMetaObject = { {
253  &QObject::staticMetaObject,
256  qt_static_metacall,
257  nullptr,
258  nullptr
259 } };
260 
261 
262 const QMetaObject *WalletModel::metaObject() const
263 {
264  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
265 }
266 
267 void *WalletModel::qt_metacast(const char *_clname)
268 {
269  if (!_clname) return nullptr;
270  if (!strcmp(_clname, qt_meta_stringdata_WalletModel.stringdata0))
271  return static_cast<void*>(this);
272  return QObject::qt_metacast(_clname);
273 }
274 
275 int WalletModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
276 {
277  _id = QObject::qt_metacall(_c, _id, _a);
278  if (_id < 0)
279  return _id;
280  if (_c == QMetaObject::InvokeMetaMethod) {
281  if (_id < 16)
282  qt_static_metacall(this, _c, _id, _a);
283  _id -= 16;
284  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
285  if (_id < 16)
286  qt_static_metacall(this, _c, _id, _a);
287  _id -= 16;
288  }
289  return _id;
290 }
291 
292 // SIGNAL 0
294 {
295  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
296  QMetaObject::activate(this, &staticMetaObject, 0, _a);
297 }
298 
299 // SIGNAL 1
301 {
302  QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
303 }
304 
305 // SIGNAL 2
307 {
308  QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
309 }
310 
311 // SIGNAL 3
312 void WalletModel::message(const QString & _t1, const QString & _t2, unsigned int _t3)
313 {
314  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
315  QMetaObject::activate(this, &staticMetaObject, 3, _a);
316 }
317 
318 // SIGNAL 4
319 void WalletModel::coinsSent(WalletModel * _t1, SendCoinsRecipient _t2, QByteArray _t3)
320 {
321  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
322  QMetaObject::activate(this, &staticMetaObject, 4, _a);
323 }
324 
325 // SIGNAL 5
326 void WalletModel::showProgress(const QString & _t1, int _t2)
327 {
328  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
329  QMetaObject::activate(this, &staticMetaObject, 5, _a);
330 }
331 
332 // SIGNAL 6
334 {
335  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
336  QMetaObject::activate(this, &staticMetaObject, 6, _a);
337 }
338 
339 // SIGNAL 7
341 {
342  QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
343 }
344 
345 // SIGNAL 8
347 {
348  QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
349 }
350 
351 // SIGNAL 9
353 {
354  QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
355 }
356 QT_WARNING_POP
357 QT_END_MOC_NAMESPACE
void coinsSent(WalletModel *wallet, SendCoinsRecipient recipient, QByteArray transaction)
void canGetAddressesChanged()
void showProgress(const QString &title, int nProgress)
static const qt_meta_stringdata_WalletModel_t qt_meta_stringdata_WalletModel
Collection of wallet balances.
Definition: wallet.h:365
void encryptionStatusChanged()
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:52
static const uint qt_meta_data_WalletModel[]
void message(const QString &title, const QString &message, unsigned int style)
#define QT_MOC_LITERAL(idx, ofs, len)
void notifyWatchonlyChanged(bool fHaveWatchonly)
void balanceChanged(const interfaces::WalletBalances &balances)