5 #ifndef FABCOIN_QT_RPCCONSOLE_H 6 #define FABCOIN_QT_RPCCONSOLE_H 39 static bool RPCParseCommandLine(std::string &strResult,
const std::string &strCommand,
bool fExecute, std::string *
const pstrFilteredOut =
nullptr);
40 static bool RPCExecuteCommandLine(std::string &strResult,
const std::string &strCommand, std::string *
const pstrFilteredOut =
nullptr) {
41 return RPCParseCommandLine(strResult, strCommand,
true, pstrFilteredOut);
62 virtual bool eventFilter(QObject* obj, QEvent *event);
63 void keyPressEvent(QKeyEvent *);
66 void on_lineEdit_returnPressed();
67 void on_tabWidget_currentChanged(
int index);
69 void on_openDebugLogfileButton_clicked();
71 void on_sldGraphRange_valueChanged(
int value);
73 void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
74 void resizeEvent(QResizeEvent *event);
75 void showEvent(QShowEvent *event);
76 void hideEvent(QHideEvent *event);
78 void showPeersTableContextMenu(
const QPoint& point);
80 void showBanTableContextMenu(
const QPoint& point);
82 void showOrHideBanTableIfRequired();
84 void clearSelectedNode();
87 void clear(
bool clearHistory =
true);
90 void setFontSize(
int newSize);
92 void message(
int category,
const QString &message,
bool html =
false);
94 void setNumConnections(
int count);
96 void setNetworkActive(
bool networkActive);
98 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
100 void setMempoolSize(
long numberOfTxs,
size_t dynUsage);
102 void browseHistory(
int offset);
106 void peerSelected(
const QItemSelection &selected,
const QItemSelection &deselected);
108 void peerLayoutAboutToChange();
110 void peerLayoutChanged();
112 void disconnectSelectedNode();
114 void banSelectedNode(
int bantime);
116 void unbanSelectedNode();
118 void setTabFocus(
enum TabTypes tabType);
123 void cmdRequest(
const QString &command);
126 static QString FormatBytes(quint64
bytes);
127 void startExecutor();
128 void setTrafficGraphRange(
int mins);
134 ADDRESS_COLUMN_WIDTH = 200,
135 SUBVERSION_COLUMN_WIDTH = 150,
136 PING_COLUMN_WIDTH = 80,
137 BANSUBNET_COLUMN_WIDTH = 200,
138 BANTIME_COLUMN_WIDTH = 250
157 void updateNetworkState();
160 #endif // FABCOIN_QT_RPCCONSOLE_H Local Fabcoin RPC console.
QString cmdBeforeBrowsing
static bool RPCExecuteCommandLine(std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=nullptr)
QMenu * peersTableContextMenu
std::vector< byte > bytes
RPCTimerInterface * rpcTimerInterface
Model for Fabcoin network client.
ClientModel * clientModel
QMenu * banTableContextMenu
QList< NodeId > cachedNodeids
QCompleter * autoCompleter
const PlatformStyle * platformStyle