Fabcoin Core  0.16.2
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.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[39];
22  char stringdata0[490];
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  )
29 static const qt_meta_stringdata_WalletModel_t qt_meta_stringdata_WalletModel = {
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, 7), // "CAmount"
35 QT_MOC_LITERAL(4, 36, 7), // "balance"
36 QT_MOC_LITERAL(5, 44, 18), // "unconfirmedBalance"
37 QT_MOC_LITERAL(6, 63, 15), // "immatureBalance"
38 QT_MOC_LITERAL(7, 79, 5), // "stake"
39 QT_MOC_LITERAL(8, 85, 16), // "watchOnlyBalance"
40 QT_MOC_LITERAL(9, 102, 18), // "watchUnconfBalance"
41 QT_MOC_LITERAL(10, 121, 20), // "watchImmatureBalance"
42 QT_MOC_LITERAL(11, 142, 14), // "watchOnlyStake"
43 QT_MOC_LITERAL(12, 157, 23), // "encryptionStatusChanged"
44 QT_MOC_LITERAL(13, 181, 6), // "status"
45 QT_MOC_LITERAL(14, 188, 13), // "requireUnlock"
46 QT_MOC_LITERAL(15, 202, 7), // "message"
47 QT_MOC_LITERAL(16, 210, 5), // "title"
48 QT_MOC_LITERAL(17, 216, 5), // "style"
49 QT_MOC_LITERAL(18, 222, 9), // "coinsSent"
50 QT_MOC_LITERAL(19, 232, 8), // "CWallet*"
51 QT_MOC_LITERAL(20, 241, 6), // "wallet"
52 QT_MOC_LITERAL(21, 248, 18), // "SendCoinsRecipient"
53 QT_MOC_LITERAL(22, 267, 9), // "recipient"
54 QT_MOC_LITERAL(23, 277, 11), // "transaction"
55 QT_MOC_LITERAL(24, 289, 12), // "showProgress"
56 QT_MOC_LITERAL(25, 302, 9), // "nProgress"
57 QT_MOC_LITERAL(26, 312, 22), // "notifyWatchonlyChanged"
58 QT_MOC_LITERAL(27, 335, 14), // "fHaveWatchonly"
59 QT_MOC_LITERAL(28, 350, 12), // "updateStatus"
60 QT_MOC_LITERAL(29, 363, 17), // "updateTransaction"
61 QT_MOC_LITERAL(30, 381, 17), // "updateAddressBook"
62 QT_MOC_LITERAL(31, 399, 7), // "address"
63 QT_MOC_LITERAL(32, 407, 5), // "label"
64 QT_MOC_LITERAL(33, 413, 6), // "isMine"
65 QT_MOC_LITERAL(34, 420, 7), // "purpose"
66 QT_MOC_LITERAL(35, 428, 19), // "updateWatchOnlyFlag"
67 QT_MOC_LITERAL(36, 448, 18), // "pollBalanceChanged"
68 QT_MOC_LITERAL(37, 467, 18), // "updateContractBook"
69 QT_MOC_LITERAL(38, 486, 3) // "abi"
70 
71  },
72  "WalletModel\0balanceChanged\0\0CAmount\0"
73  "balance\0unconfirmedBalance\0immatureBalance\0"
74  "stake\0watchOnlyBalance\0watchUnconfBalance\0"
75  "watchImmatureBalance\0watchOnlyStake\0"
76  "encryptionStatusChanged\0status\0"
77  "requireUnlock\0message\0title\0style\0"
78  "coinsSent\0CWallet*\0wallet\0SendCoinsRecipient\0"
79  "recipient\0transaction\0showProgress\0"
80  "nProgress\0notifyWatchonlyChanged\0"
81  "fHaveWatchonly\0updateStatus\0"
82  "updateTransaction\0updateAddressBook\0"
83  "address\0label\0isMine\0purpose\0"
84  "updateWatchOnlyFlag\0pollBalanceChanged\0"
85  "updateContractBook\0abi"
86 };
87 #undef QT_MOC_LITERAL
88 
89 static const uint qt_meta_data_WalletModel[] = {
90 
91  // content:
92  7, // revision
93  0, // classname
94  0, 0, // classinfo
95  13, 14, // methods
96  0, 0, // properties
97  0, 0, // enums/sets
98  0, 0, // constructors
99  0, // flags
100  7, // signalCount
101 
102  // signals: name, argc, parameters, tag, flags
103  1, 8, 79, 2, 0x06 /* Public */,
104  12, 1, 96, 2, 0x06 /* Public */,
105  14, 0, 99, 2, 0x06 /* Public */,
106  15, 3, 100, 2, 0x06 /* Public */,
107  18, 3, 107, 2, 0x06 /* Public */,
108  24, 2, 114, 2, 0x06 /* Public */,
109  26, 1, 119, 2, 0x06 /* Public */,
110 
111  // slots: name, argc, parameters, tag, flags
112  28, 0, 122, 2, 0x0a /* Public */,
113  29, 0, 123, 2, 0x0a /* Public */,
114  30, 5, 124, 2, 0x0a /* Public */,
115  35, 1, 135, 2, 0x0a /* Public */,
116  36, 0, 138, 2, 0x0a /* Public */,
117  37, 4, 139, 2, 0x0a /* Public */,
118 
119  // signals: parameters
120  QMetaType::Void, 0x80000000 | 3, 0x80000000 | 3, 0x80000000 | 3, 0x80000000 | 3, 0x80000000 | 3, 0x80000000 | 3, 0x80000000 | 3, 0x80000000 | 3, 4, 5, 6, 7, 8, 9, 10, 11,
121  QMetaType::Void, QMetaType::Int, 13,
122  QMetaType::Void,
123  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::UInt, 16, 15, 17,
124  QMetaType::Void, 0x80000000 | 19, 0x80000000 | 21, QMetaType::QByteArray, 20, 22, 23,
125  QMetaType::Void, QMetaType::QString, QMetaType::Int, 16, 25,
126  QMetaType::Void, QMetaType::Bool, 27,
127 
128  // slots: parameters
129  QMetaType::Void,
130  QMetaType::Void,
131  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Bool, QMetaType::QString, QMetaType::Int, 31, 32, 33, 34, 13,
132  QMetaType::Void, QMetaType::Bool, 27,
133  QMetaType::Void,
134  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::Int, 31, 32, 38, 13,
135 
136  0 // eod
137 };
138 
139 void WalletModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
140 {
141  if (_c == QMetaObject::InvokeMetaMethod) {
142  WalletModel *_t = static_cast<WalletModel *>(_o);
143  Q_UNUSED(_t)
144  switch (_id) {
145  case 0: _t->balanceChanged((*reinterpret_cast< const CAmount(*)>(_a[1])),(*reinterpret_cast< const CAmount(*)>(_a[2])),(*reinterpret_cast< const CAmount(*)>(_a[3])),(*reinterpret_cast< const CAmount(*)>(_a[4])),(*reinterpret_cast< const CAmount(*)>(_a[5])),(*reinterpret_cast< const CAmount(*)>(_a[6])),(*reinterpret_cast< const CAmount(*)>(_a[7])),(*reinterpret_cast< const CAmount(*)>(_a[8]))); break;
146  case 1: _t->encryptionStatusChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
147  case 2: _t->requireUnlock(); break;
148  case 3: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break;
149  case 4: _t->coinsSent((*reinterpret_cast< CWallet*(*)>(_a[1])),(*reinterpret_cast< SendCoinsRecipient(*)>(_a[2])),(*reinterpret_cast< QByteArray(*)>(_a[3]))); break;
150  case 5: _t->showProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
151  case 6: _t->notifyWatchonlyChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
152  case 7: _t->updateStatus(); break;
153  case 8: _t->updateTransaction(); break;
154  case 9: _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;
155  case 10: _t->updateWatchOnlyFlag((*reinterpret_cast< bool(*)>(_a[1]))); break;
156  case 11: _t->pollBalanceChanged(); break;
157  case 12: _t->updateContractBook((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
158  default: ;
159  }
160  } else if (_c == QMetaObject::IndexOfMethod) {
161  int *result = reinterpret_cast<int *>(_a[0]);
162  void **func = reinterpret_cast<void **>(_a[1]);
163  {
164  typedef void (WalletModel::*_t)(const CAmount & , const CAmount & , const CAmount & , const CAmount & , const CAmount & , const CAmount & , const CAmount & , const CAmount & );
165  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::balanceChanged)) {
166  *result = 0;
167  }
168  }
169  {
170  typedef void (WalletModel::*_t)(int );
171  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::encryptionStatusChanged)) {
172  *result = 1;
173  }
174  }
175  {
176  typedef void (WalletModel::*_t)();
177  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::requireUnlock)) {
178  *result = 2;
179  }
180  }
181  {
182  typedef void (WalletModel::*_t)(const QString & , const QString & , unsigned int );
183  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::message)) {
184  *result = 3;
185  }
186  }
187  {
188  typedef void (WalletModel::*_t)(CWallet * , SendCoinsRecipient , QByteArray );
189  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::coinsSent)) {
190  *result = 4;
191  }
192  }
193  {
194  typedef void (WalletModel::*_t)(const QString & , int );
195  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::showProgress)) {
196  *result = 5;
197  }
198  }
199  {
200  typedef void (WalletModel::*_t)(bool );
201  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&WalletModel::notifyWatchonlyChanged)) {
202  *result = 6;
203  }
204  }
205  }
206 }
207 
208 const QMetaObject WalletModel::staticMetaObject = {
209  { &QObject::staticMetaObject, qt_meta_stringdata_WalletModel.data,
210  qt_meta_data_WalletModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
211 };
212 
213 
214 const QMetaObject *WalletModel::metaObject() const
215 {
216  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
217 }
218 
219 void *WalletModel::qt_metacast(const char *_clname)
220 {
221  if (!_clname) return Q_NULLPTR;
222  if (!strcmp(_clname, qt_meta_stringdata_WalletModel.stringdata0))
223  return static_cast<void*>(const_cast< WalletModel*>(this));
224  return QObject::qt_metacast(_clname);
225 }
226 
227 int WalletModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
228 {
229  _id = QObject::qt_metacall(_c, _id, _a);
230  if (_id < 0)
231  return _id;
232  if (_c == QMetaObject::InvokeMetaMethod) {
233  if (_id < 13)
234  qt_static_metacall(this, _c, _id, _a);
235  _id -= 13;
236  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
237  if (_id < 13)
238  *reinterpret_cast<int*>(_a[0]) = -1;
239  _id -= 13;
240  }
241  return _id;
242 }
243 
244 // SIGNAL 0
245 void WalletModel::balanceChanged(const CAmount & _t1, const CAmount & _t2, const CAmount & _t3, const CAmount & _t4, const CAmount & _t5, const CAmount & _t6, const CAmount & _t7, const CAmount & _t8)
246 {
247  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)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)), const_cast<void*>(reinterpret_cast<const void*>(&_t5)), const_cast<void*>(reinterpret_cast<const void*>(&_t6)), const_cast<void*>(reinterpret_cast<const void*>(&_t7)), const_cast<void*>(reinterpret_cast<const void*>(&_t8)) };
248  QMetaObject::activate(this, &staticMetaObject, 0, _a);
249 }
250 
251 // SIGNAL 1
253 {
254  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
255  QMetaObject::activate(this, &staticMetaObject, 1, _a);
256 }
257 
258 // SIGNAL 2
260 {
261  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
262 }
263 
264 // SIGNAL 3
265 void WalletModel::message(const QString & _t1, const QString & _t2, unsigned int _t3)
266 {
267  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)) };
268  QMetaObject::activate(this, &staticMetaObject, 3, _a);
269 }
270 
271 // SIGNAL 4
272 void WalletModel::coinsSent(CWallet * _t1, SendCoinsRecipient _t2, QByteArray _t3)
273 {
274  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)) };
275  QMetaObject::activate(this, &staticMetaObject, 4, _a);
276 }
277 
278 // SIGNAL 5
279 void WalletModel::showProgress(const QString & _t1, int _t2)
280 {
281  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
282  QMetaObject::activate(this, &staticMetaObject, 5, _a);
283 }
284 
285 // SIGNAL 6
287 {
288  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
289  QMetaObject::activate(this, &staticMetaObject, 6, _a);
290 }
291 QT_END_MOC_NAMESPACE
uint32_t uint
Definition: libclwrapper.h:40
void showProgress(const QString &title, int nProgress)
void balanceChanged(const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &stake, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance, const CAmount &watchOnlyStake)
void updateStatus()
int64_t CAmount
Amount in lius (Can be negative)
Definition: amount.h:15
void updateTransaction()
void encryptionStatusChanged(int status)
void updateWatchOnlyFlag(bool fHaveWatchonly)
Interface to Fabcoin wallet from Qt view code.
Definition: walletmodel.h:103
void message(const QString &title, const QString &message, unsigned int style)
#define QT_MOC_LITERAL(idx, ofs, len)
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:672
void notifyWatchonlyChanged(bool fHaveWatchonly)
void coinsSent(CWallet *wallet, SendCoinsRecipient recipient, QByteArray transaction)
void updateContractBook(const QString &address, const QString &label, const QString &abi, int status)
void updateAddressBook(const QString &address, const QString &label, bool isMine, const QString &purpose, int status)
void pollBalanceChanged()