Fabcoin Core  0.16.2
P2P Digital Currency
moc_rpcconsole.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'rpcconsole.h'
3 **
4 **
5 ** WARNING! All changes made in this file will be lost!
6 *****************************************************************************/
7 
8 #include "qt/rpcconsole.h"
9 #include <QtCore/qbytearray.h>
10 #include <QtCore/qmetatype.h>
11 #if !defined(Q_MOC_OUTPUT_REVISION)
12 #error "The header file 'rpcconsole.h' doesn't include <QObject>."
13 #elif Q_MOC_OUTPUT_REVISION != 67
14 #error "This file was generated using the moc from 5.5.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[63];
22  char stringdata0[851];
23 };
24 #define QT_MOC_LITERAL(idx, ofs, len) \
25  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
26  qptrdiff(offsetof(qt_meta_stringdata_RPCConsole_t, stringdata0) + ofs \
27  - idx * sizeof(QByteArrayData)) \
28  )
29 static const qt_meta_stringdata_RPCConsole_t qt_meta_stringdata_RPCConsole = {
30  {
31 QT_MOC_LITERAL(0, 0, 10), // "RPCConsole"
32 QT_MOC_LITERAL(1, 11, 12), // "stopExecutor"
33 QT_MOC_LITERAL(2, 24, 0), // ""
34 QT_MOC_LITERAL(3, 25, 10), // "cmdRequest"
35 QT_MOC_LITERAL(4, 36, 7), // "command"
36 QT_MOC_LITERAL(5, 44, 25), // "on_lineEdit_returnPressed"
37 QT_MOC_LITERAL(6, 70, 27), // "on_tabWidget_currentChanged"
38 QT_MOC_LITERAL(7, 98, 5), // "index"
39 QT_MOC_LITERAL(8, 104, 33), // "on_openDebugLogfileButton_cli..."
40 QT_MOC_LITERAL(9, 138, 29), // "on_sldGraphRange_valueChanged"
41 QT_MOC_LITERAL(10, 168, 5), // "value"
42 QT_MOC_LITERAL(11, 174, 18), // "updateTrafficStats"
43 QT_MOC_LITERAL(12, 193, 12), // "totalBytesIn"
44 QT_MOC_LITERAL(13, 206, 13), // "totalBytesOut"
45 QT_MOC_LITERAL(14, 220, 11), // "resizeEvent"
46 QT_MOC_LITERAL(15, 232, 13), // "QResizeEvent*"
47 QT_MOC_LITERAL(16, 246, 5), // "event"
48 QT_MOC_LITERAL(17, 252, 9), // "showEvent"
49 QT_MOC_LITERAL(18, 262, 11), // "QShowEvent*"
50 QT_MOC_LITERAL(19, 274, 9), // "hideEvent"
51 QT_MOC_LITERAL(20, 284, 11), // "QHideEvent*"
52 QT_MOC_LITERAL(21, 296, 25), // "showPeersTableContextMenu"
53 QT_MOC_LITERAL(22, 322, 5), // "point"
54 QT_MOC_LITERAL(23, 328, 23), // "showBanTableContextMenu"
55 QT_MOC_LITERAL(24, 352, 28), // "showOrHideBanTableIfRequired"
56 QT_MOC_LITERAL(25, 381, 17), // "clearSelectedNode"
57 QT_MOC_LITERAL(26, 399, 5), // "clear"
58 QT_MOC_LITERAL(27, 405, 12), // "clearHistory"
59 QT_MOC_LITERAL(28, 418, 10), // "fontBigger"
60 QT_MOC_LITERAL(29, 429, 11), // "fontSmaller"
61 QT_MOC_LITERAL(30, 441, 11), // "setFontSize"
62 QT_MOC_LITERAL(31, 453, 7), // "newSize"
63 QT_MOC_LITERAL(32, 461, 7), // "message"
64 QT_MOC_LITERAL(33, 469, 8), // "category"
65 QT_MOC_LITERAL(34, 478, 4), // "html"
66 QT_MOC_LITERAL(35, 483, 17), // "setNumConnections"
67 QT_MOC_LITERAL(36, 501, 5), // "count"
68 QT_MOC_LITERAL(37, 507, 16), // "setNetworkActive"
69 QT_MOC_LITERAL(38, 524, 13), // "networkActive"
70 QT_MOC_LITERAL(39, 538, 12), // "setNumBlocks"
71 QT_MOC_LITERAL(40, 551, 9), // "blockDate"
72 QT_MOC_LITERAL(41, 561, 21), // "nVerificationProgress"
73 QT_MOC_LITERAL(42, 583, 7), // "headers"
74 QT_MOC_LITERAL(43, 591, 14), // "setMempoolSize"
75 QT_MOC_LITERAL(44, 606, 11), // "numberOfTxs"
76 QT_MOC_LITERAL(45, 618, 6), // "size_t"
77 QT_MOC_LITERAL(46, 625, 8), // "dynUsage"
78 QT_MOC_LITERAL(47, 634, 13), // "browseHistory"
79 QT_MOC_LITERAL(48, 648, 6), // "offset"
80 QT_MOC_LITERAL(49, 655, 11), // "scrollToEnd"
81 QT_MOC_LITERAL(50, 667, 12), // "peerSelected"
82 QT_MOC_LITERAL(51, 680, 14), // "QItemSelection"
83 QT_MOC_LITERAL(52, 695, 8), // "selected"
84 QT_MOC_LITERAL(53, 704, 10), // "deselected"
85 QT_MOC_LITERAL(54, 715, 23), // "peerLayoutAboutToChange"
86 QT_MOC_LITERAL(55, 739, 17), // "peerLayoutChanged"
87 QT_MOC_LITERAL(56, 757, 22), // "disconnectSelectedNode"
88 QT_MOC_LITERAL(57, 780, 15), // "banSelectedNode"
89 QT_MOC_LITERAL(58, 796, 7), // "bantime"
90 QT_MOC_LITERAL(59, 804, 17), // "unbanSelectedNode"
91 QT_MOC_LITERAL(60, 822, 11), // "setTabFocus"
92 QT_MOC_LITERAL(61, 834, 8), // "TabTypes"
93 QT_MOC_LITERAL(62, 843, 7) // "tabType"
94 
95  },
96  "RPCConsole\0stopExecutor\0\0cmdRequest\0"
97  "command\0on_lineEdit_returnPressed\0"
98  "on_tabWidget_currentChanged\0index\0"
99  "on_openDebugLogfileButton_clicked\0"
100  "on_sldGraphRange_valueChanged\0value\0"
101  "updateTrafficStats\0totalBytesIn\0"
102  "totalBytesOut\0resizeEvent\0QResizeEvent*\0"
103  "event\0showEvent\0QShowEvent*\0hideEvent\0"
104  "QHideEvent*\0showPeersTableContextMenu\0"
105  "point\0showBanTableContextMenu\0"
106  "showOrHideBanTableIfRequired\0"
107  "clearSelectedNode\0clear\0clearHistory\0"
108  "fontBigger\0fontSmaller\0setFontSize\0"
109  "newSize\0message\0category\0html\0"
110  "setNumConnections\0count\0setNetworkActive\0"
111  "networkActive\0setNumBlocks\0blockDate\0"
112  "nVerificationProgress\0headers\0"
113  "setMempoolSize\0numberOfTxs\0size_t\0"
114  "dynUsage\0browseHistory\0offset\0scrollToEnd\0"
115  "peerSelected\0QItemSelection\0selected\0"
116  "deselected\0peerLayoutAboutToChange\0"
117  "peerLayoutChanged\0disconnectSelectedNode\0"
118  "banSelectedNode\0bantime\0unbanSelectedNode\0"
119  "setTabFocus\0TabTypes\0tabType"
120 };
121 #undef QT_MOC_LITERAL
122 
123 static const uint qt_meta_data_RPCConsole[] = {
124 
125  // content:
126  7, // revision
127  0, // classname
128  0, 0, // classinfo
129  34, 14, // methods
130  0, 0, // properties
131  0, 0, // enums/sets
132  0, 0, // constructors
133  0, // flags
134  2, // signalCount
135 
136  // signals: name, argc, parameters, tag, flags
137  1, 0, 184, 2, 0x06 /* Public */,
138  3, 1, 185, 2, 0x06 /* Public */,
139 
140  // slots: name, argc, parameters, tag, flags
141  5, 0, 188, 2, 0x08 /* Private */,
142  6, 1, 189, 2, 0x08 /* Private */,
143  8, 0, 192, 2, 0x08 /* Private */,
144  9, 1, 193, 2, 0x08 /* Private */,
145  11, 2, 196, 2, 0x08 /* Private */,
146  14, 1, 201, 2, 0x08 /* Private */,
147  17, 1, 204, 2, 0x08 /* Private */,
148  19, 1, 207, 2, 0x08 /* Private */,
149  21, 1, 210, 2, 0x08 /* Private */,
150  23, 1, 213, 2, 0x08 /* Private */,
151  24, 0, 216, 2, 0x08 /* Private */,
152  25, 0, 217, 2, 0x08 /* Private */,
153  26, 1, 218, 2, 0x0a /* Public */,
154  26, 0, 221, 2, 0x2a /* Public | MethodCloned */,
155  28, 0, 222, 2, 0x0a /* Public */,
156  29, 0, 223, 2, 0x0a /* Public */,
157  30, 1, 224, 2, 0x0a /* Public */,
158  32, 3, 227, 2, 0x0a /* Public */,
159  32, 2, 234, 2, 0x2a /* Public | MethodCloned */,
160  35, 1, 239, 2, 0x0a /* Public */,
161  37, 1, 242, 2, 0x0a /* Public */,
162  39, 4, 245, 2, 0x0a /* Public */,
163  43, 2, 254, 2, 0x0a /* Public */,
164  47, 1, 259, 2, 0x0a /* Public */,
165  49, 0, 262, 2, 0x0a /* Public */,
166  50, 2, 263, 2, 0x0a /* Public */,
167  54, 0, 268, 2, 0x0a /* Public */,
168  55, 0, 269, 2, 0x0a /* Public */,
169  56, 0, 270, 2, 0x0a /* Public */,
170  57, 1, 271, 2, 0x0a /* Public */,
171  59, 0, 274, 2, 0x0a /* Public */,
172  60, 1, 275, 2, 0x0a /* Public */,
173 
174  // signals: parameters
175  QMetaType::Void,
176  QMetaType::Void, QMetaType::QString, 4,
177 
178  // slots: parameters
179  QMetaType::Void,
180  QMetaType::Void, QMetaType::Int, 7,
181  QMetaType::Void,
182  QMetaType::Void, QMetaType::Int, 10,
183  QMetaType::Void, QMetaType::ULongLong, QMetaType::ULongLong, 12, 13,
184  QMetaType::Void, 0x80000000 | 15, 16,
185  QMetaType::Void, 0x80000000 | 18, 16,
186  QMetaType::Void, 0x80000000 | 20, 16,
187  QMetaType::Void, QMetaType::QPoint, 22,
188  QMetaType::Void, QMetaType::QPoint, 22,
189  QMetaType::Void,
190  QMetaType::Void,
191  QMetaType::Void, QMetaType::Bool, 27,
192  QMetaType::Void,
193  QMetaType::Void,
194  QMetaType::Void,
195  QMetaType::Void, QMetaType::Int, 31,
196  QMetaType::Void, QMetaType::Int, QMetaType::QString, QMetaType::Bool, 33, 32, 34,
197  QMetaType::Void, QMetaType::Int, QMetaType::QString, 33, 32,
198  QMetaType::Void, QMetaType::Int, 36,
199  QMetaType::Void, QMetaType::Bool, 38,
200  QMetaType::Void, QMetaType::Int, QMetaType::QDateTime, QMetaType::Double, QMetaType::Bool, 36, 40, 41, 42,
201  QMetaType::Void, QMetaType::Long, 0x80000000 | 45, 44, 46,
202  QMetaType::Void, QMetaType::Int, 48,
203  QMetaType::Void,
204  QMetaType::Void, 0x80000000 | 51, 0x80000000 | 51, 52, 53,
205  QMetaType::Void,
206  QMetaType::Void,
207  QMetaType::Void,
208  QMetaType::Void, QMetaType::Int, 58,
209  QMetaType::Void,
210  QMetaType::Void, 0x80000000 | 61, 62,
211 
212  0 // eod
213 };
214 
215 void RPCConsole::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
216 {
217  if (_c == QMetaObject::InvokeMetaMethod) {
218  RPCConsole *_t = static_cast<RPCConsole *>(_o);
219  Q_UNUSED(_t)
220  switch (_id) {
221  case 0: _t->stopExecutor(); break;
222  case 1: _t->cmdRequest((*reinterpret_cast< const QString(*)>(_a[1]))); break;
223  case 2: _t->on_lineEdit_returnPressed(); break;
224  case 3: _t->on_tabWidget_currentChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
225  case 4: _t->on_openDebugLogfileButton_clicked(); break;
226  case 5: _t->on_sldGraphRange_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
227  case 6: _t->updateTrafficStats((*reinterpret_cast< quint64(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2]))); break;
228  case 7: _t->resizeEvent((*reinterpret_cast< QResizeEvent*(*)>(_a[1]))); break;
229  case 8: _t->showEvent((*reinterpret_cast< QShowEvent*(*)>(_a[1]))); break;
230  case 9: _t->hideEvent((*reinterpret_cast< QHideEvent*(*)>(_a[1]))); break;
231  case 10: _t->showPeersTableContextMenu((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
232  case 11: _t->showBanTableContextMenu((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
233  case 12: _t->showOrHideBanTableIfRequired(); break;
234  case 13: _t->clearSelectedNode(); break;
235  case 14: _t->clear((*reinterpret_cast< bool(*)>(_a[1]))); break;
236  case 15: _t->clear(); break;
237  case 16: _t->fontBigger(); break;
238  case 17: _t->fontSmaller(); break;
239  case 18: _t->setFontSize((*reinterpret_cast< int(*)>(_a[1]))); break;
240  case 19: _t->message((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
241  case 20: _t->message((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
242  case 21: _t->setNumConnections((*reinterpret_cast< int(*)>(_a[1]))); break;
243  case 22: _t->setNetworkActive((*reinterpret_cast< bool(*)>(_a[1]))); break;
244  case 23: _t->setNumBlocks((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QDateTime(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4]))); break;
245  case 24: _t->setMempoolSize((*reinterpret_cast< long(*)>(_a[1])),(*reinterpret_cast< size_t(*)>(_a[2]))); break;
246  case 25: _t->browseHistory((*reinterpret_cast< int(*)>(_a[1]))); break;
247  case 26: _t->scrollToEnd(); break;
248  case 27: _t->peerSelected((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< const QItemSelection(*)>(_a[2]))); break;
249  case 28: _t->peerLayoutAboutToChange(); break;
250  case 29: _t->peerLayoutChanged(); break;
251  case 30: _t->disconnectSelectedNode(); break;
252  case 31: _t->banSelectedNode((*reinterpret_cast< int(*)>(_a[1]))); break;
253  case 32: _t->unbanSelectedNode(); break;
254  case 33: _t->setTabFocus((*reinterpret_cast< TabTypes(*)>(_a[1]))); break;
255  default: ;
256  }
257  } else if (_c == QMetaObject::IndexOfMethod) {
258  int *result = reinterpret_cast<int *>(_a[0]);
259  void **func = reinterpret_cast<void **>(_a[1]);
260  {
261  typedef void (RPCConsole::*_t)();
262  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&RPCConsole::stopExecutor)) {
263  *result = 0;
264  }
265  }
266  {
267  typedef void (RPCConsole::*_t)(const QString & );
268  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&RPCConsole::cmdRequest)) {
269  *result = 1;
270  }
271  }
272  }
273 }
274 
275 const QMetaObject RPCConsole::staticMetaObject = {
276  { &QWidget::staticMetaObject, qt_meta_stringdata_RPCConsole.data,
277  qt_meta_data_RPCConsole, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
278 };
279 
280 
281 const QMetaObject *RPCConsole::metaObject() const
282 {
283  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
284 }
285 
286 void *RPCConsole::qt_metacast(const char *_clname)
287 {
288  if (!_clname) return Q_NULLPTR;
289  if (!strcmp(_clname, qt_meta_stringdata_RPCConsole.stringdata0))
290  return static_cast<void*>(const_cast< RPCConsole*>(this));
291  return QWidget::qt_metacast(_clname);
292 }
293 
294 int RPCConsole::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
295 {
296  _id = QWidget::qt_metacall(_c, _id, _a);
297  if (_id < 0)
298  return _id;
299  if (_c == QMetaObject::InvokeMetaMethod) {
300  if (_id < 34)
301  qt_static_metacall(this, _c, _id, _a);
302  _id -= 34;
303  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
304  if (_id < 34)
305  *reinterpret_cast<int*>(_a[0]) = -1;
306  _id -= 34;
307  }
308  return _id;
309 }
310 
311 // SIGNAL 0
313 {
314  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
315 }
316 
317 // SIGNAL 1
318 void RPCConsole::cmdRequest(const QString & _t1)
319 {
320  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
321  QMetaObject::activate(this, &staticMetaObject, 1, _a);
322 }
323 QT_END_MOC_NAMESPACE
Local Fabcoin RPC console.
Definition: rpcconsole.h:31
void showEvent(QShowEvent *event)
void on_lineEdit_returnPressed()
Definition: rpcconsole.cpp:845
void message(int category, const QString &message, bool html=false)
Append the message to the message widget.
Definition: rpcconsole.cpp:785
void showPeersTableContextMenu(const QPoint &point)
Show custom context menu on Peers tab.
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
Definition: rpcconsole.cpp:822
void scrollToEnd()
Scroll console view to end.
Definition: rpcconsole.cpp:942
uint32_t uint
Definition: libclwrapper.h:40
void clearSelectedNode()
clear the selected node
void fontSmaller()
Definition: rpcconsole.cpp:697
void disconnectSelectedNode()
Disconnect a selected node on the Peers tab.
void on_tabWidget_currentChanged(int index)
Definition: rpcconsole.cpp:929
#define QT_MOC_LITERAL(idx, ofs, len)
void resizeEvent(QResizeEvent *event)
void browseHistory(int offset)
Go forward or back in history.
Definition: rpcconsole.cpp:887
void setTabFocus(enum TabTypes tabType)
set which tab has the focus (is visible)
void peerLayoutChanged()
Handle updated peer information.
void on_openDebugLogfileButton_clicked()
open the debug.log from the current datadir
Definition: rpcconsole.cpp:937
void unbanSelectedNode()
Unban a selected node on the Bans tab.
void hideEvent(QHideEvent *event)
void clear(bool clearHistory=true)
Definition: rpcconsole.cpp:727
void showOrHideBanTableIfRequired()
Hides ban table if no bans are present.
void fontBigger()
Definition: rpcconsole.cpp:692
void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut)
update traffic statistics
Definition: rpcconsole.cpp:973
void setMempoolSize(long numberOfTxs, size_t dynUsage)
Set size (number of transactions and memory usage) of the mempool in the UI.
Definition: rpcconsole.cpp:835
void setFontSize(int newSize)
Definition: rpcconsole.cpp:702
void setNumConnections(int count)
Set number of connections shown in the UI.
Definition: rpcconsole.cpp:814
void peerLayoutAboutToChange()
Handle selection caching before update.
Definition: rpcconsole.cpp:991
void on_sldGraphRange_valueChanged(int value)
change the time range of the network traffic graph
Definition: rpcconsole.cpp:948
void banSelectedNode(int bantime)
Ban a selected node on the Peers tab.
void peerSelected(const QItemSelection &selected, const QItemSelection &deselected)
Handle selection of peer in peers list.
Definition: rpcconsole.cpp:979
void stopExecutor()
void cmdRequest(const QString &command)
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers)
Set number of blocks and last block date shown in the UI.
Definition: rpcconsole.cpp:827
void showBanTableContextMenu(const QPoint &point)
Show custom context menu on Bans tab.