Anoncoin  0.9.4
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.2.1. 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
21  QByteArrayData data[22];
22  char stringdata[281];
23 };
24 #define QT_MOC_LITERAL(idx, ofs, len) \
25  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
26  offsetof(qt_meta_stringdata_ClientModel_t, stringdata) + ofs \
27  - idx * sizeof(QByteArrayData) \
28  )
29 static const qt_meta_stringdata_ClientModel_t qt_meta_stringdata_ClientModel = {
30  {
31 QT_MOC_LITERAL(0, 0, 11),
32 QT_MOC_LITERAL(1, 12, 21),
33 QT_MOC_LITERAL(2, 34, 0),
34 QT_MOC_LITERAL(3, 35, 5),
35 QT_MOC_LITERAL(4, 41, 16),
36 QT_MOC_LITERAL(5, 58, 13),
37 QT_MOC_LITERAL(6, 72, 8),
38 QT_MOC_LITERAL(7, 81, 12),
39 QT_MOC_LITERAL(8, 94, 12),
40 QT_MOC_LITERAL(9, 107, 13),
41 QT_MOC_LITERAL(10, 121, 24),
42 QT_MOC_LITERAL(11, 146, 7),
43 QT_MOC_LITERAL(12, 154, 5),
44 QT_MOC_LITERAL(13, 160, 5),
45 QT_MOC_LITERAL(14, 166, 11),
46 QT_MOC_LITERAL(15, 178, 20),
47 QT_MOC_LITERAL(16, 199, 14),
48 QT_MOC_LITERAL(17, 214, 11),
49 QT_MOC_LITERAL(18, 226, 4),
50 QT_MOC_LITERAL(19, 231, 6),
51 QT_MOC_LITERAL(20, 238, 23),
52 QT_MOC_LITERAL(21, 262, 17)
53  },
54  "ClientModel\0numConnectionsChanged\0\0"
55  "count\0numBlocksChanged\0alertsChanged\0"
56  "warnings\0bytesChanged\0totalBytesIn\0"
57  "totalBytesOut\0numI2PConnectionsChanged\0"
58  "message\0title\0style\0updateTimer\0"
59  "updateNumConnections\0numConnections\0"
60  "updateAlert\0hash\0status\0updateNumI2PConnections\0"
61  "numI2PConnections\0"
62 };
63 #undef QT_MOC_LITERAL
64 
65 static const uint qt_meta_data_ClientModel[] = {
66 
67  // content:
68  7, // revision
69  0, // classname
70  0, 0, // classinfo
71  10, 14, // methods
72  0, 0, // properties
73  0, 0, // enums/sets
74  0, 0, // constructors
75  0, // flags
76  6, // signalCount
77 
78  // signals: name, argc, parameters, tag, flags
79  1, 1, 64, 2, 0x06,
80  4, 1, 67, 2, 0x06,
81  5, 1, 70, 2, 0x06,
82  7, 2, 73, 2, 0x06,
83  10, 1, 78, 2, 0x06,
84  11, 3, 81, 2, 0x06,
85 
86  // slots: name, argc, parameters, tag, flags
87  14, 0, 88, 2, 0x0a,
88  15, 1, 89, 2, 0x0a,
89  17, 2, 92, 2, 0x0a,
90  20, 1, 97, 2, 0x0a,
91 
92  // signals: parameters
93  QMetaType::Void, QMetaType::Int, 3,
94  QMetaType::Void, QMetaType::Int, 3,
95  QMetaType::Void, QMetaType::QString, 6,
96  QMetaType::Void, QMetaType::ULongLong, QMetaType::ULongLong, 8, 9,
97  QMetaType::Void, QMetaType::Int, 3,
98  QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::UInt, 12, 11, 13,
99 
100  // slots: parameters
101  QMetaType::Void,
102  QMetaType::Void, QMetaType::Int, 16,
103  QMetaType::Void, QMetaType::QString, QMetaType::Int, 18, 19,
104  QMetaType::Void, QMetaType::Int, 21,
105 
106  0 // eod
107 };
108 
109 void ClientModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
110 {
111  if (_c == QMetaObject::InvokeMetaMethod) {
112  ClientModel *_t = static_cast<ClientModel *>(_o);
113  switch (_id) {
114  case 0: _t->numConnectionsChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
115  case 1: _t->numBlocksChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
116  case 2: _t->alertsChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
117  case 3: _t->bytesChanged((*reinterpret_cast< quint64(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2]))); break;
118  case 4: _t->numI2PConnectionsChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
119  case 5: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break;
120  case 6: _t->updateTimer(); break;
121  case 7: _t->updateNumConnections((*reinterpret_cast< int(*)>(_a[1]))); break;
122  case 8: _t->updateAlert((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
123  case 9: _t->updateNumI2PConnections((*reinterpret_cast< int(*)>(_a[1]))); break;
124  default: ;
125  }
126  } else if (_c == QMetaObject::IndexOfMethod) {
127  int *result = reinterpret_cast<int *>(_a[0]);
128  void **func = reinterpret_cast<void **>(_a[1]);
129  {
130  typedef void (ClientModel::*_t)(int );
131  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::numConnectionsChanged)) {
132  *result = 0;
133  }
134  }
135  {
136  typedef void (ClientModel::*_t)(int );
137  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::numBlocksChanged)) {
138  *result = 1;
139  }
140  }
141  {
142  typedef void (ClientModel::*_t)(const QString & );
143  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::alertsChanged)) {
144  *result = 2;
145  }
146  }
147  {
148  typedef void (ClientModel::*_t)(quint64 , quint64 );
149  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::bytesChanged)) {
150  *result = 3;
151  }
152  }
153  {
154  typedef void (ClientModel::*_t)(int );
155  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::numI2PConnectionsChanged)) {
156  *result = 4;
157  }
158  }
159  {
160  typedef void (ClientModel::*_t)(const QString & , const QString & , unsigned int );
161  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ClientModel::message)) {
162  *result = 5;
163  }
164  }
165  }
166 }
167 
168 const QMetaObject ClientModel::staticMetaObject = {
169  { &QObject::staticMetaObject, qt_meta_stringdata_ClientModel.data,
170  qt_meta_data_ClientModel, qt_static_metacall, 0, 0}
171 };
172 
173 
174 const QMetaObject *ClientModel::metaObject() const
175 {
176  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
177 }
178 
179 void *ClientModel::qt_metacast(const char *_clname)
180 {
181  if (!_clname) return 0;
182  if (!strcmp(_clname, qt_meta_stringdata_ClientModel.stringdata))
183  return static_cast<void*>(const_cast< ClientModel*>(this));
184  return QObject::qt_metacast(_clname);
185 }
186 
187 int ClientModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
188 {
189  _id = QObject::qt_metacall(_c, _id, _a);
190  if (_id < 0)
191  return _id;
192  if (_c == QMetaObject::InvokeMetaMethod) {
193  if (_id < 10)
194  qt_static_metacall(this, _c, _id, _a);
195  _id -= 10;
196  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
197  if (_id < 10)
198  *reinterpret_cast<int*>(_a[0]) = -1;
199  _id -= 10;
200  }
201  return _id;
202 }
203 
204 // SIGNAL 0
206 {
207  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
208  QMetaObject::activate(this, &staticMetaObject, 0, _a);
209 }
210 
211 // SIGNAL 1
213 {
214  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
215  QMetaObject::activate(this, &staticMetaObject, 1, _a);
216 }
217 
218 // SIGNAL 2
219 void ClientModel::alertsChanged(const QString & _t1)
220 {
221  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
222  QMetaObject::activate(this, &staticMetaObject, 2, _a);
223 }
224 
225 // SIGNAL 3
226 void ClientModel::bytesChanged(quint64 _t1, quint64 _t2)
227 {
228  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
229  QMetaObject::activate(this, &staticMetaObject, 3, _a);
230 }
231 
232 // SIGNAL 4
233 void ClientModel::numI2PConnectionsChanged(int _t1)
234 {
235  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
236  QMetaObject::activate(this, &staticMetaObject, 4, _a);
237 }
238 
239 // SIGNAL 5
240 void ClientModel::message(const QString & _t1, const QString & _t2, unsigned int _t3)
241 {
242  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
243  QMetaObject::activate(this, &staticMetaObject, 5, _a);
244 }
245 QT_END_MOC_NAMESPACE
void numBlocksChanged(int count)
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
#define QT_MOC_LITERAL(idx, ofs, len)
void numConnectionsChanged(int count)
Note signal functions like this are created here in the header file, yet no source implmentation will...
void alertsChanged(const QString &warnings)
void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut)
void updateAlert(const QString &hash, int status)
Model for Anoncoin network client.
Definition: clientmodel.h:45
void updateTimer()
From: https://qt-project.org/doc/qt-5-snapshot/signalsandslots.html A slot is a function that is call...
void updateNumConnections(int numConnections)