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