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