Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
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.5.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  }
177  }
178  {
179  typedef void (WalletModel::*_t)();
180  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::encryptionStatusChanged)) {
181  *result = 1;
182  }
183  }
184  {
185  typedef void (WalletModel::*_t)();
186  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::requireUnlock)) {
187  *result = 2;
188  }
189  }
190  {
191  typedef void (WalletModel::*_t)(const QString & , const QString & , unsigned int );
192  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::message)) {
193  *result = 3;
194  }
195  }
196  {
197  typedef void (WalletModel::*_t)(WalletModel * , SendCoinsRecipient , QByteArray );
198  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::coinsSent)) {
199  *result = 4;
200  }
201  }
202  {
203  typedef void (WalletModel::*_t)(const QString & , int );
204  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::showProgress)) {
205  *result = 5;
206  }
207  }
208  {
209  typedef void (WalletModel::*_t)(bool );
210  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::notifyWatchonlyChanged)) {
211  *result = 6;
212  }
213  }
214  {
215  typedef void (WalletModel::*_t)();
216  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::unload)) {
217  *result = 7;
218  }
219  }
220  {
221  typedef void (WalletModel::*_t)();
222  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::canGetAddressesChanged)) {
223  *result = 8;
224  }
225  }
226  }
227 }
228 
229 const QMetaObject WalletModel::staticMetaObject = {
230  { &QObject::staticMetaObject, qt_meta_stringdata_WalletModel.data,
231  qt_meta_data_WalletModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
232 };
233 
234 
235 const QMetaObject *WalletModel::metaObject() const
236 {
237  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
238 }
239 
240 void *WalletModel::qt_metacast(const char *_clname)
241 {
242  if (!_clname) return Q_NULLPTR;
243  if (!strcmp(_clname, qt_meta_stringdata_WalletModel.stringdata0))
244  return static_cast<void*>(const_cast< WalletModel*>(this));
245  return QObject::qt_metacast(_clname);
246 }
247 
248 int WalletModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
249 {
250  _id = QObject::qt_metacall(_c, _id, _a);
251  if (_id < 0)
252  return _id;
253  if (_c == QMetaObject::InvokeMetaMethod) {
254  if (_id < 15)
255  qt_static_metacall(this, _c, _id, _a);
256  _id -= 15;
257  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
258  if (_id < 15)
259  qt_static_metacall(this, _c, _id, _a);
260  _id -= 15;
261  }
262  return _id;
263 }
264 
265 // SIGNAL 0
267 {
268  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
269  QMetaObject::activate(this, &staticMetaObject, 0, _a);
270 }
271 
272 // SIGNAL 1
274 {
275  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
276 }
277 
278 // SIGNAL 2
280 {
281  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
282 }
283 
284 // SIGNAL 3
285 void WalletModel::message(const QString & _t1, const QString & _t2, unsigned int _t3)
286 {
287  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)) };
288  QMetaObject::activate(this, &staticMetaObject, 3, _a);
289 }
290 
291 // SIGNAL 4
292 void WalletModel::coinsSent(WalletModel * _t1, SendCoinsRecipient _t2, QByteArray _t3)
293 {
294  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)) };
295  QMetaObject::activate(this, &staticMetaObject, 4, _a);
296 }
297 
298 // SIGNAL 5
299 void WalletModel::showProgress(const QString & _t1, int _t2)
300 {
301  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
302  QMetaObject::activate(this, &staticMetaObject, 5, _a);
303 }
304 
305 // SIGNAL 6
307 {
308  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
309  QMetaObject::activate(this, &staticMetaObject, 6, _a);
310 }
311 
312 // SIGNAL 7
314 {
315  QMetaObject::activate(this, &staticMetaObject, 7, Q_NULLPTR);
316 }
317 
318 // SIGNAL 8
320 {
321  QMetaObject::activate(this, &staticMetaObject, 8, Q_NULLPTR);
322 }
323 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