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