Bitcoin Core  0.21.1
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.6.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[397];
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  )
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, 20), // "SynchronizationState"
40 QT_MOC_LITERAL(9, 118, 10), // "sync_state"
41 QT_MOC_LITERAL(10, 129, 18), // "mempoolSizeChanged"
42 QT_MOC_LITERAL(11, 148, 6), // "size_t"
43 QT_MOC_LITERAL(12, 155, 18), // "mempoolSizeInBytes"
44 QT_MOC_LITERAL(13, 174, 20), // "networkActiveChanged"
45 QT_MOC_LITERAL(14, 195, 13), // "networkActive"
46 QT_MOC_LITERAL(15, 209, 13), // "alertsChanged"
47 QT_MOC_LITERAL(16, 223, 8), // "warnings"
48 QT_MOC_LITERAL(17, 232, 12), // "bytesChanged"
49 QT_MOC_LITERAL(18, 245, 12), // "totalBytesIn"
50 QT_MOC_LITERAL(19, 258, 13), // "totalBytesOut"
51 QT_MOC_LITERAL(20, 272, 7), // "message"
52 QT_MOC_LITERAL(21, 280, 5), // "title"
53 QT_MOC_LITERAL(22, 286, 5), // "style"
54 QT_MOC_LITERAL(23, 292, 12), // "showProgress"
55 QT_MOC_LITERAL(24, 305, 9), // "nProgress"
56 QT_MOC_LITERAL(25, 315, 20), // "updateNumConnections"
57 QT_MOC_LITERAL(26, 336, 14), // "numConnections"
58 QT_MOC_LITERAL(27, 351, 19), // "updateNetworkActive"
59 QT_MOC_LITERAL(28, 371, 11), // "updateAlert"
60 QT_MOC_LITERAL(29, 383, 13) // "updateBanlist"
61 
62  },
63  "ClientModel\0numConnectionsChanged\0\0"
64  "count\0numBlocksChanged\0blockDate\0"
65  "nVerificationProgress\0header\0"
66  "SynchronizationState\0sync_state\0"
67  "mempoolSizeChanged\0size_t\0mempoolSizeInBytes\0"
68  "networkActiveChanged\0networkActive\0"
69  "alertsChanged\0warnings\0bytesChanged\0"
70  "totalBytesIn\0totalBytesOut\0message\0"
71  "title\0style\0showProgress\0nProgress\0"
72  "updateNumConnections\0numConnections\0"
73  "updateNetworkActive\0updateAlert\0"
74  "updateBanlist"
75 };
76 #undef QT_MOC_LITERAL
77 
78 static const uint qt_meta_data_ClientModel[] = {
79 
80  // content:
81  7, // revision
82  0, // classname
83  0, 0, // classinfo
84  12, 14, // methods
85  0, 0, // properties
86  0, 0, // enums/sets
87  0, 0, // constructors
88  0, // flags
89  8, // signalCount
90 
91  // signals: name, argc, parameters, tag, flags
92  1, 1, 74, 2, 0x06 /* Public */,
93  4, 5, 77, 2, 0x06 /* Public */,
94  10, 2, 88, 2, 0x06 /* Public */,
95  13, 1, 93, 2, 0x06 /* Public */,
96  15, 1, 96, 2, 0x06 /* Public */,
97  17, 2, 99, 2, 0x06 /* Public */,
98  20, 3, 104, 2, 0x06 /* Public */,
99  23, 2, 111, 2, 0x06 /* Public */,
100 
101  // slots: name, argc, parameters, tag, flags
102  25, 1, 116, 2, 0x0a /* Public */,
103  27, 1, 119, 2, 0x0a /* Public */,
104  28, 0, 122, 2, 0x0a /* Public */,
105  29, 0, 123, 2, 0x0a /* Public */,
106 
107  // signals: parameters
108  QMetaType::Void, QMetaType::Int, 3,
109  QMetaType::Void, QMetaType::Int, QMetaType::QDateTime, QMetaType::Double, QMetaType::Bool, 0x80000000 | 8, 3, 5, 6, 7, 9,
110  QMetaType::Void, QMetaType::Long, 0x80000000 | 11, 3, 12,
111  QMetaType::Void, QMetaType::Bool, 14,
112  QMetaType::Void, QMetaType::QString, 16,
113  QMetaType::Void, QMetaType::ULongLong, QMetaType::ULongLong, 18, 19,
114  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::UInt, 21, 20, 22,
115  QMetaType::Void, QMetaType::QString, QMetaType::Int, 21, 24,
116 
117  // slots: parameters
118  QMetaType::Void, QMetaType::Int, 26,
119  QMetaType::Void, QMetaType::Bool, 14,
120  QMetaType::Void,
121  QMetaType::Void,
122 
123  0 // eod
124 };
125 
126 void ClientModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
127 {
128  if (_c == QMetaObject::InvokeMetaMethod) {
129  ClientModel *_t = static_cast<ClientModel *>(_o);
130  Q_UNUSED(_t)
131  switch (_id) {
132  case 0: _t->numConnectionsChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
133  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])),(*reinterpret_cast< SynchronizationState(*)>(_a[5]))); break;
134  case 2: _t->mempoolSizeChanged((*reinterpret_cast< long(*)>(_a[1])),(*reinterpret_cast< size_t(*)>(_a[2]))); break;
135  case 3: _t->networkActiveChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
136  case 4: _t->alertsChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
137  case 5: _t->bytesChanged((*reinterpret_cast< quint64(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2]))); break;
138  case 6: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break;
139  case 7: _t->showProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
140  case 8: _t->updateNumConnections((*reinterpret_cast< int(*)>(_a[1]))); break;
141  case 9: _t->updateNetworkActive((*reinterpret_cast< bool(*)>(_a[1]))); break;
142  case 10: _t->updateAlert(); break;
143  case 11: _t->updateBanlist(); break;
144  default: ;
145  }
146  } else if (_c == QMetaObject::IndexOfMethod) {
147  int *result = reinterpret_cast<int *>(_a[0]);
148  void **func = reinterpret_cast<void **>(_a[1]);
149  {
150  typedef void (ClientModel::*_t)(int );
151  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::numConnectionsChanged)) {
152  *result = 0;
153  return;
154  }
155  }
156  {
157  typedef void (ClientModel::*_t)(int , const QDateTime & , double , bool , SynchronizationState );
158  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::numBlocksChanged)) {
159  *result = 1;
160  return;
161  }
162  }
163  {
164  typedef void (ClientModel::*_t)(long , size_t );
165  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::mempoolSizeChanged)) {
166  *result = 2;
167  return;
168  }
169  }
170  {
171  typedef void (ClientModel::*_t)(bool );
172  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::networkActiveChanged)) {
173  *result = 3;
174  return;
175  }
176  }
177  {
178  typedef void (ClientModel::*_t)(const QString & );
179  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::alertsChanged)) {
180  *result = 4;
181  return;
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  return;
189  }
190  }
191  {
192  typedef void (ClientModel::*_t)(const QString & , const QString & , unsigned int );
193  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::message)) {
194  *result = 6;
195  return;
196  }
197  }
198  {
199  typedef void (ClientModel::*_t)(const QString & , int );
200  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::showProgress)) {
201  *result = 7;
202  return;
203  }
204  }
205  }
206 }
207 
208 const QMetaObject ClientModel::staticMetaObject = {
209  { &QObject::staticMetaObject, qt_meta_stringdata_ClientModel.data,
210  qt_meta_data_ClientModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
211 };
212 
213 
214 const QMetaObject *ClientModel::metaObject() const
215 {
216  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
217 }
218 
219 void *ClientModel::qt_metacast(const char *_clname)
220 {
221  if (!_clname) return Q_NULLPTR;
222  if (!strcmp(_clname, qt_meta_stringdata_ClientModel.stringdata0))
223  return static_cast<void*>(const_cast< ClientModel*>(this));
224  return QObject::qt_metacast(_clname);
225 }
226 
227 int ClientModel::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 < 12)
234  qt_static_metacall(this, _c, _id, _a);
235  _id -= 12;
236  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
237  if (_id < 12)
238  *reinterpret_cast<int*>(_a[0]) = -1;
239  _id -= 12;
240  }
241  return _id;
242 }
243 
244 // SIGNAL 0
246 {
247  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
248  QMetaObject::activate(this, &staticMetaObject, 0, _a);
249 }
250 
251 // SIGNAL 1
252 void ClientModel::numBlocksChanged(int _t1, const QDateTime & _t2, double _t3, bool _t4, SynchronizationState _t5)
253 {
254  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)) };
255  QMetaObject::activate(this, &staticMetaObject, 1, _a);
256 }
257 
258 // SIGNAL 2
259 void ClientModel::mempoolSizeChanged(long _t1, size_t _t2)
260 {
261  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
262  QMetaObject::activate(this, &staticMetaObject, 2, _a);
263 }
264 
265 // SIGNAL 3
267 {
268  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
269  QMetaObject::activate(this, &staticMetaObject, 3, _a);
270 }
271 
272 // SIGNAL 4
273 void ClientModel::alertsChanged(const QString & _t1)
274 {
275  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
276  QMetaObject::activate(this, &staticMetaObject, 4, _a);
277 }
278 
279 // SIGNAL 5
280 void ClientModel::bytesChanged(quint64 _t1, quint64 _t2)
281 {
282  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
283  QMetaObject::activate(this, &staticMetaObject, 5, _a);
284 }
285 
286 // SIGNAL 6
287 void ClientModel::message(const QString & _t1, const QString & _t2, unsigned int _t3)
288 {
289  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)) };
290  QMetaObject::activate(this, &staticMetaObject, 6, _a);
291 }
292 
293 // SIGNAL 7
294 void ClientModel::showProgress(const QString & _t1, int _t2)
295 {
296  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
297  QMetaObject::activate(this, &staticMetaObject, 7, _a);
298 }
299 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)
SynchronizationState
Current sync state passed to tip changed callbacks.
Definition: validation.h:106
void updateBanlist()
#define QT_MOC_LITERAL(idx, ofs, len)
void networkActiveChanged(bool networkActive)
void numBlocksChanged(int count, const QDateTime &blockDate, double nVerificationProgress, bool header, SynchronizationState sync_state)
void numConnectionsChanged(int count)
void alertsChanged(const QString &warnings)
void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut)
Model for Bitcoin network client.
Definition: clientmodel.h:46
void updateAlert()
void mempoolSizeChanged(long count, size_t mempoolSizeInBytes)
static const uint qt_meta_data_ClientModel[]
void updateNumConnections(int numConnections)
static const qt_meta_stringdata_ClientModel_t qt_meta_stringdata_ClientModel
void showProgress(const QString &title, int nProgress)