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