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