Bitcoin Core  27.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[35];
25  char stringdata0[461];
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, 22), // "wallet::AddressPurpose"
65 QT_MOC_LITERAL(31, 407, 7), // "purpose"
66 QT_MOC_LITERAL(32, 415, 6), // "status"
67 QT_MOC_LITERAL(33, 422, 19), // "updateWatchOnlyFlag"
68 QT_MOC_LITERAL(34, 442, 18) // "pollBalanceChanged"
69 
70  },
71  "WalletModel\0balanceChanged\0\0"
72  "interfaces::WalletBalances\0balances\0"
73  "encryptionStatusChanged\0requireUnlock\0"
74  "message\0title\0style\0coinsSent\0"
75  "WalletModel*\0wallet\0SendCoinsRecipient\0"
76  "recipient\0transaction\0showProgress\0"
77  "nProgress\0notifyWatchonlyChanged\0"
78  "fHaveWatchonly\0unload\0canGetAddressesChanged\0"
79  "timerTimeout\0startPollBalance\0"
80  "updateStatus\0updateTransaction\0"
81  "updateAddressBook\0address\0label\0isMine\0"
82  "wallet::AddressPurpose\0purpose\0status\0"
83  "updateWatchOnlyFlag\0pollBalanceChanged"
84 };
85 #undef QT_MOC_LITERAL
86 
87 static const uint qt_meta_data_WalletModel[] = {
88 
89  // content:
90  8, // revision
91  0, // classname
92  0, 0, // classinfo
93  16, 14, // methods
94  0, 0, // properties
95  0, 0, // enums/sets
96  0, 0, // constructors
97  0, // flags
98  10, // signalCount
99 
100  // signals: name, argc, parameters, tag, flags
101  1, 1, 94, 2, 0x06 /* Public */,
102  5, 0, 97, 2, 0x06 /* Public */,
103  6, 0, 98, 2, 0x06 /* Public */,
104  7, 3, 99, 2, 0x06 /* Public */,
105  10, 3, 106, 2, 0x06 /* Public */,
106  16, 2, 113, 2, 0x06 /* Public */,
107  18, 1, 118, 2, 0x06 /* Public */,
108  20, 0, 121, 2, 0x06 /* Public */,
109  21, 0, 122, 2, 0x06 /* Public */,
110  22, 0, 123, 2, 0x06 /* Public */,
111 
112  // slots: name, argc, parameters, tag, flags
113  23, 0, 124, 2, 0x0a /* Public */,
114  24, 0, 125, 2, 0x0a /* Public */,
115  25, 0, 126, 2, 0x0a /* Public */,
116  26, 5, 127, 2, 0x0a /* Public */,
117  33, 1, 138, 2, 0x0a /* Public */,
118  34, 0, 141, 2, 0x0a /* Public */,
119 
120  // signals: parameters
121  QMetaType::Void, 0x80000000 | 3, 4,
122  QMetaType::Void,
123  QMetaType::Void,
124  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::UInt, 8, 7, 9,
125  QMetaType::Void, 0x80000000 | 11, 0x80000000 | 13, QMetaType::QByteArray, 12, 14, 15,
126  QMetaType::Void, QMetaType::QString, QMetaType::Int, 8, 17,
127  QMetaType::Void, QMetaType::Bool, 19,
128  QMetaType::Void,
129  QMetaType::Void,
130  QMetaType::Void,
131 
132  // slots: parameters
133  QMetaType::Void,
134  QMetaType::Void,
135  QMetaType::Void,
136  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Bool, 0x80000000 | 30, QMetaType::Int, 27, 28, 29, 31, 32,
137  QMetaType::Void, QMetaType::Bool, 19,
138  QMetaType::Void,
139 
140  0 // eod
141 };
142 
143 void WalletModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
144 {
145  if (_c == QMetaObject::InvokeMetaMethod) {
146  auto *_t = static_cast<WalletModel *>(_o);
147  Q_UNUSED(_t)
148  switch (_id) {
149  case 0: _t->balanceChanged((*reinterpret_cast< const interfaces::WalletBalances(*)>(_a[1]))); break;
150  case 1: _t->encryptionStatusChanged(); break;
151  case 2: _t->requireUnlock(); break;
152  case 3: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break;
153  case 4: _t->coinsSent((*reinterpret_cast< WalletModel*(*)>(_a[1])),(*reinterpret_cast< SendCoinsRecipient(*)>(_a[2])),(*reinterpret_cast< QByteArray(*)>(_a[3]))); break;
154  case 5: _t->showProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
155  case 6: _t->notifyWatchonlyChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
156  case 7: _t->unload(); break;
157  case 8: _t->canGetAddressesChanged(); break;
158  case 9: _t->timerTimeout(); break;
159  case 10: _t->startPollBalance(); break;
160  case 11: _t->updateStatus(); break;
161  case 12: _t->updateTransaction(); break;
162  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;
163  case 14: _t->updateWatchOnlyFlag((*reinterpret_cast< bool(*)>(_a[1]))); break;
164  case 15: _t->pollBalanceChanged(); break;
165  default: ;
166  }
167  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
168  switch (_id) {
169  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
170  case 4:
171  switch (*reinterpret_cast<int*>(_a[1])) {
172  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
173  case 0:
174  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< WalletModel* >(); break;
175  }
176  break;
177  }
178  } else if (_c == QMetaObject::IndexOfMethod) {
179  int *result = reinterpret_cast<int *>(_a[0]);
180  {
181  using _t = void (WalletModel::*)(const interfaces::WalletBalances & );
182  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::balanceChanged)) {
183  *result = 0;
184  return;
185  }
186  }
187  {
188  using _t = void (WalletModel::*)();
189  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::encryptionStatusChanged)) {
190  *result = 1;
191  return;
192  }
193  }
194  {
195  using _t = void (WalletModel::*)();
196  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::requireUnlock)) {
197  *result = 2;
198  return;
199  }
200  }
201  {
202  using _t = void (WalletModel::*)(const QString & , const QString & , unsigned int );
203  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::message)) {
204  *result = 3;
205  return;
206  }
207  }
208  {
209  using _t = void (WalletModel::*)(WalletModel * , SendCoinsRecipient , QByteArray );
210  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::coinsSent)) {
211  *result = 4;
212  return;
213  }
214  }
215  {
216  using _t = void (WalletModel::*)(const QString & , int );
217  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::showProgress)) {
218  *result = 5;
219  return;
220  }
221  }
222  {
223  using _t = void (WalletModel::*)(bool );
224  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::notifyWatchonlyChanged)) {
225  *result = 6;
226  return;
227  }
228  }
229  {
230  using _t = void (WalletModel::*)();
231  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::unload)) {
232  *result = 7;
233  return;
234  }
235  }
236  {
237  using _t = void (WalletModel::*)();
238  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::canGetAddressesChanged)) {
239  *result = 8;
240  return;
241  }
242  }
243  {
244  using _t = void (WalletModel::*)();
245  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WalletModel::timerTimeout)) {
246  *result = 9;
247  return;
248  }
249  }
250  }
251 }
252 
253 QT_INIT_METAOBJECT const QMetaObject WalletModel::staticMetaObject = { {
254  &QObject::staticMetaObject,
257  qt_static_metacall,
258  nullptr,
259  nullptr
260 } };
261 
262 
263 const QMetaObject *WalletModel::metaObject() const
264 {
265  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
266 }
267 
268 void *WalletModel::qt_metacast(const char *_clname)
269 {
270  if (!_clname) return nullptr;
271  if (!strcmp(_clname, qt_meta_stringdata_WalletModel.stringdata0))
272  return static_cast<void*>(this);
273  return QObject::qt_metacast(_clname);
274 }
275 
276 int WalletModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
277 {
278  _id = QObject::qt_metacall(_c, _id, _a);
279  if (_id < 0)
280  return _id;
281  if (_c == QMetaObject::InvokeMetaMethod) {
282  if (_id < 16)
283  qt_static_metacall(this, _c, _id, _a);
284  _id -= 16;
285  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
286  if (_id < 16)
287  qt_static_metacall(this, _c, _id, _a);
288  _id -= 16;
289  }
290  return _id;
291 }
292 
293 // SIGNAL 0
295 {
296  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
297  QMetaObject::activate(this, &staticMetaObject, 0, _a);
298 }
299 
300 // SIGNAL 1
302 {
303  QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
304 }
305 
306 // SIGNAL 2
308 {
309  QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
310 }
311 
312 // SIGNAL 3
313 void WalletModel::message(const QString & _t1, const QString & _t2, unsigned int _t3)
314 {
315  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)) };
316  QMetaObject::activate(this, &staticMetaObject, 3, _a);
317 }
318 
319 // SIGNAL 4
320 void WalletModel::coinsSent(WalletModel * _t1, SendCoinsRecipient _t2, QByteArray _t3)
321 {
322  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)) };
323  QMetaObject::activate(this, &staticMetaObject, 4, _a);
324 }
325 
326 // SIGNAL 5
327 void WalletModel::showProgress(const QString & _t1, int _t2)
328 {
329  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
330  QMetaObject::activate(this, &staticMetaObject, 5, _a);
331 }
332 
333 // SIGNAL 6
335 {
336  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
337  QMetaObject::activate(this, &staticMetaObject, 6, _a);
338 }
339 
340 // SIGNAL 7
342 {
343  QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
344 }
345 
346 // SIGNAL 8
348 {
349  QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
350 }
351 
352 // SIGNAL 9
354 {
355  QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
356 }
357 QT_WARNING_POP
358 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:47
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)