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