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