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