Fabcoin Core  0.16.2
P2P Digital Currency
moc_clientmodel.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'clientmodel.h'
3 **
4 **
5 ** WARNING! All changes made in this file will be lost!
6 *****************************************************************************/
7 
8 #include "qt/clientmodel.h"
9 #include <QtCore/qbytearray.h>
10 #include <QtCore/qmetatype.h>
11 #if !defined(Q_MOC_OUTPUT_REVISION)
12 #error "The header file 'clientmodel.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[30];
22  char stringdata0[388];
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_ClientModel_t, stringdata0) + ofs \
27  - idx * sizeof(QByteArrayData)) \
28  )
29 static const qt_meta_stringdata_ClientModel_t qt_meta_stringdata_ClientModel = {
30  {
31 QT_MOC_LITERAL(0, 0, 11), // "ClientModel"
32 QT_MOC_LITERAL(1, 12, 21), // "numConnectionsChanged"
33 QT_MOC_LITERAL(2, 34, 0), // ""
34 QT_MOC_LITERAL(3, 35, 5), // "count"
35 QT_MOC_LITERAL(4, 41, 16), // "numBlocksChanged"
36 QT_MOC_LITERAL(5, 58, 9), // "blockDate"
37 QT_MOC_LITERAL(6, 68, 21), // "nVerificationProgress"
38 QT_MOC_LITERAL(7, 90, 6), // "header"
39 QT_MOC_LITERAL(8, 97, 18), // "mempoolSizeChanged"
40 QT_MOC_LITERAL(9, 116, 6), // "size_t"
41 QT_MOC_LITERAL(10, 123, 18), // "mempoolSizeInBytes"
42 QT_MOC_LITERAL(11, 142, 20), // "networkActiveChanged"
43 QT_MOC_LITERAL(12, 163, 13), // "networkActive"
44 QT_MOC_LITERAL(13, 177, 13), // "alertsChanged"
45 QT_MOC_LITERAL(14, 191, 8), // "warnings"
46 QT_MOC_LITERAL(15, 200, 12), // "bytesChanged"
47 QT_MOC_LITERAL(16, 213, 12), // "totalBytesIn"
48 QT_MOC_LITERAL(17, 226, 13), // "totalBytesOut"
49 QT_MOC_LITERAL(18, 240, 10), // "tipChanged"
50 QT_MOC_LITERAL(19, 251, 7), // "message"
51 QT_MOC_LITERAL(20, 259, 5), // "title"
52 QT_MOC_LITERAL(21, 265, 5), // "style"
53 QT_MOC_LITERAL(22, 271, 12), // "showProgress"
54 QT_MOC_LITERAL(23, 284, 9), // "nProgress"
55 QT_MOC_LITERAL(24, 294, 11), // "updateTimer"
56 QT_MOC_LITERAL(25, 306, 20), // "updateNumConnections"
57 QT_MOC_LITERAL(26, 327, 14), // "numConnections"
58 QT_MOC_LITERAL(27, 342, 19), // "updateNetworkActive"
59 QT_MOC_LITERAL(28, 362, 11), // "updateAlert"
60 QT_MOC_LITERAL(29, 374, 13) // "updateBanlist"
61 
62  },
63  "ClientModel\0numConnectionsChanged\0\0"
64  "count\0numBlocksChanged\0blockDate\0"
65  "nVerificationProgress\0header\0"
66  "mempoolSizeChanged\0size_t\0mempoolSizeInBytes\0"
67  "networkActiveChanged\0networkActive\0"
68  "alertsChanged\0warnings\0bytesChanged\0"
69  "totalBytesIn\0totalBytesOut\0tipChanged\0"
70  "message\0title\0style\0showProgress\0"
71  "nProgress\0updateTimer\0updateNumConnections\0"
72  "numConnections\0updateNetworkActive\0"
73  "updateAlert\0updateBanlist"
74 };
75 #undef QT_MOC_LITERAL
76 
77 static const uint qt_meta_data_ClientModel[] = {
78 
79  // content:
80  7, // revision
81  0, // classname
82  0, 0, // classinfo
83  14, 14, // methods
84  0, 0, // properties
85  0, 0, // enums/sets
86  0, 0, // constructors
87  0, // flags
88  9, // signalCount
89 
90  // signals: name, argc, parameters, tag, flags
91  1, 1, 84, 2, 0x06 /* Public */,
92  4, 4, 87, 2, 0x06 /* Public */,
93  8, 2, 96, 2, 0x06 /* Public */,
94  11, 1, 101, 2, 0x06 /* Public */,
95  13, 1, 104, 2, 0x06 /* Public */,
96  15, 2, 107, 2, 0x06 /* Public */,
97  18, 0, 112, 2, 0x06 /* Public */,
98  19, 3, 113, 2, 0x06 /* Public */,
99  22, 2, 120, 2, 0x06 /* Public */,
100 
101  // slots: name, argc, parameters, tag, flags
102  24, 0, 125, 2, 0x0a /* Public */,
103  25, 1, 126, 2, 0x0a /* Public */,
104  27, 1, 129, 2, 0x0a /* Public */,
105  28, 0, 132, 2, 0x0a /* Public */,
106  29, 0, 133, 2, 0x0a /* Public */,
107 
108  // signals: parameters
109  QMetaType::Void, QMetaType::Int, 3,
110  QMetaType::Void, QMetaType::Int, QMetaType::QDateTime, QMetaType::Double, QMetaType::Bool, 3, 5, 6, 7,
111  QMetaType::Void, QMetaType::Long, 0x80000000 | 9, 3, 10,
112  QMetaType::Void, QMetaType::Bool, 12,
113  QMetaType::Void, QMetaType::QString, 14,
114  QMetaType::Void, QMetaType::ULongLong, QMetaType::ULongLong, 16, 17,
115  QMetaType::Void,
116  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::UInt, 20, 19, 21,
117  QMetaType::Void, QMetaType::QString, QMetaType::Int, 20, 23,
118 
119  // slots: parameters
120  QMetaType::Void,
121  QMetaType::Void, QMetaType::Int, 26,
122  QMetaType::Void, QMetaType::Bool, 12,
123  QMetaType::Void,
124  QMetaType::Void,
125 
126  0 // eod
127 };
128 
129 void ClientModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
130 {
131  if (_c == QMetaObject::InvokeMetaMethod) {
132  ClientModel *_t = static_cast<ClientModel *>(_o);
133  Q_UNUSED(_t)
134  switch (_id) {
135  case 0: _t->numConnectionsChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
136  case 1: _t->numBlocksChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QDateTime(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4]))); break;
137  case 2: _t->mempoolSizeChanged((*reinterpret_cast< long(*)>(_a[1])),(*reinterpret_cast< size_t(*)>(_a[2]))); break;
138  case 3: _t->networkActiveChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
139  case 4: _t->alertsChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
140  case 5: _t->bytesChanged((*reinterpret_cast< quint64(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2]))); break;
141  case 6: _t->tipChanged(); break;
142  case 7: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break;
143  case 8: _t->showProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
144  case 9: _t->updateTimer(); break;
145  case 10: _t->updateNumConnections((*reinterpret_cast< int(*)>(_a[1]))); break;
146  case 11: _t->updateNetworkActive((*reinterpret_cast< bool(*)>(_a[1]))); break;
147  case 12: _t->updateAlert(); break;
148  case 13: _t->updateBanlist(); break;
149  default: ;
150  }
151  } else if (_c == QMetaObject::IndexOfMethod) {
152  int *result = reinterpret_cast<int *>(_a[0]);
153  void **func = reinterpret_cast<void **>(_a[1]);
154  {
155  typedef void (ClientModel::*_t)(int );
156  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::numConnectionsChanged)) {
157  *result = 0;
158  }
159  }
160  {
161  typedef void (ClientModel::*_t)(int , const QDateTime & , double , bool );
162  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::numBlocksChanged)) {
163  *result = 1;
164  }
165  }
166  {
167  typedef void (ClientModel::*_t)(long , size_t );
168  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::mempoolSizeChanged)) {
169  *result = 2;
170  }
171  }
172  {
173  typedef void (ClientModel::*_t)(bool );
174  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::networkActiveChanged)) {
175  *result = 3;
176  }
177  }
178  {
179  typedef void (ClientModel::*_t)(const QString & );
180  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::alertsChanged)) {
181  *result = 4;
182  }
183  }
184  {
185  typedef void (ClientModel::*_t)(quint64 , quint64 );
186  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::bytesChanged)) {
187  *result = 5;
188  }
189  }
190  {
191  typedef void (ClientModel::*_t)();
192  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::tipChanged)) {
193  *result = 6;
194  }
195  }
196  {
197  typedef void (ClientModel::*_t)(const QString & , const QString & , unsigned int );
198  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::message)) {
199  *result = 7;
200  }
201  }
202  {
203  typedef void (ClientModel::*_t)(const QString & , int );
204  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::showProgress)) {
205  *result = 8;
206  }
207  }
208  }
209 }
210 
211 const QMetaObject ClientModel::staticMetaObject = {
212  { &QObject::staticMetaObject, qt_meta_stringdata_ClientModel.data,
213  qt_meta_data_ClientModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
214 };
215 
216 
217 const QMetaObject *ClientModel::metaObject() const
218 {
219  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
220 }
221 
222 void *ClientModel::qt_metacast(const char *_clname)
223 {
224  if (!_clname) return Q_NULLPTR;
225  if (!strcmp(_clname, qt_meta_stringdata_ClientModel.stringdata0))
226  return static_cast<void*>(const_cast< ClientModel*>(this));
227  return QObject::qt_metacast(_clname);
228 }
229 
230 int ClientModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
231 {
232  _id = QObject::qt_metacall(_c, _id, _a);
233  if (_id < 0)
234  return _id;
235  if (_c == QMetaObject::InvokeMetaMethod) {
236  if (_id < 14)
237  qt_static_metacall(this, _c, _id, _a);
238  _id -= 14;
239  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
240  if (_id < 14)
241  *reinterpret_cast<int*>(_a[0]) = -1;
242  _id -= 14;
243  }
244  return _id;
245 }
246 
247 // SIGNAL 0
249 {
250  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
251  QMetaObject::activate(this, &staticMetaObject, 0, _a);
252 }
253 
254 // SIGNAL 1
255 void ClientModel::numBlocksChanged(int _t1, const QDateTime & _t2, double _t3, bool _t4)
256 {
257  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)) };
258  QMetaObject::activate(this, &staticMetaObject, 1, _a);
259 }
260 
261 // SIGNAL 2
262 void ClientModel::mempoolSizeChanged(long _t1, size_t _t2)
263 {
264  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
265  QMetaObject::activate(this, &staticMetaObject, 2, _a);
266 }
267 
268 // SIGNAL 3
270 {
271  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
272  QMetaObject::activate(this, &staticMetaObject, 3, _a);
273 }
274 
275 // SIGNAL 4
276 void ClientModel::alertsChanged(const QString & _t1)
277 {
278  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
279  QMetaObject::activate(this, &staticMetaObject, 4, _a);
280 }
281 
282 // SIGNAL 5
283 void ClientModel::bytesChanged(quint64 _t1, quint64 _t2)
284 {
285  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
286  QMetaObject::activate(this, &staticMetaObject, 5, _a);
287 }
288 
289 // SIGNAL 6
291 {
292  QMetaObject::activate(this, &staticMetaObject, 6, Q_NULLPTR);
293 }
294 
295 // SIGNAL 7
296 void ClientModel::message(const QString & _t1, const QString & _t2, unsigned int _t3)
297 {
298  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)) };
299  QMetaObject::activate(this, &staticMetaObject, 7, _a);
300 }
301 
302 // SIGNAL 8
303 void ClientModel::showProgress(const QString & _t1, int _t2)
304 {
305  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
306  QMetaObject::activate(this, &staticMetaObject, 8, _a);
307 }
308 QT_END_MOC_NAMESPACE
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
void updateNetworkActive(bool networkActive)
void updateBanlist()
#define QT_MOC_LITERAL(idx, ofs, len)
uint32_t uint
Definition: libclwrapper.h:40
void networkActiveChanged(bool networkActive)
void numConnectionsChanged(int count)
void alertsChanged(const QString &warnings)
void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut)
void numBlocksChanged(int count, const QDateTime &blockDate, double nVerificationProgress, bool header)
Model for Fabcoin network client.
Definition: clientmodel.h:38
void updateAlert()
void updateTimer()
void mempoolSizeChanged(long count, size_t mempoolSizeInBytes)
void updateNumConnections(int numConnections)
void showProgress(const QString &title, int nProgress)