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