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