Local Fabcoin RPC console.
More...
#include <rpcconsole.h>
|
| static bool | RPCParseCommandLine (std::string &strResult, const std::string &strCommand, bool fExecute, std::string *const pstrFilteredOut=nullptr) |
| | Split shell command line into a list of arguments and optionally execute the command(s). More...
|
| |
| static bool | RPCExecuteCommandLine (std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=nullptr) |
| |
Local Fabcoin RPC console.
Definition at line 31 of file rpcconsole.h.
| Enumerator |
|---|
| ADDRESS_COLUMN_WIDTH |
|
| SUBVERSION_COLUMN_WIDTH |
|
| PING_COLUMN_WIDTH |
|
| BANSUBNET_COLUMN_WIDTH |
|
| BANTIME_COLUMN_WIDTH |
|
Definition at line 132 of file rpcconsole.h.
| Enumerator |
|---|
| MC_ERROR |
|
| MC_DEBUG |
|
| CMD_REQUEST |
|
| CMD_REPLY |
|
| CMD_ERROR |
|
Definition at line 46 of file rpcconsole.h.
| Enumerator |
|---|
| TAB_INFO |
|
| TAB_CONSOLE |
|
| TAB_GRAPH |
|
| TAB_PEERS |
|
Definition at line 54 of file rpcconsole.h.
| RPCConsole::RPCConsole |
( |
const PlatformStyle * |
platformStyle, |
|
|
QWidget * |
parent |
|
) |
| |
|
explicit |
| RPCConsole::~RPCConsole |
( |
| ) |
|
| void RPCConsole::banSelectedNode |
( |
int |
bantime | ) |
|
|
slot |
| void RPCConsole::browseHistory |
( |
int |
offset | ) |
|
|
slot |
| void RPCConsole::clear |
( |
bool |
clearHistory = true | ) |
|
|
slot |
| void RPCConsole::clearSelectedNode |
( |
| ) |
|
|
privateslot |
| void RPCConsole::cmdRequest |
( |
const QString & |
command | ) |
|
|
signal |
| void RPCConsole::disconnectSelectedNode |
( |
| ) |
|
|
slot |
Disconnect a selected node on the Peers tab.
Definition at line 1146 of file rpcconsole.cpp.
| bool RPCConsole::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
| void RPCConsole::fontBigger |
( |
| ) |
|
|
slot |
| void RPCConsole::fontSmaller |
( |
| ) |
|
|
slot |
| QString RPCConsole::FormatBytes |
( |
quint64 |
bytes | ) |
|
|
staticprivate |
| void RPCConsole::hideEvent |
( |
QHideEvent * |
event | ) |
|
|
privateslot |
| void RPCConsole::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protected |
| void RPCConsole::message |
( |
int |
category, |
|
|
const QString & |
message, |
|
|
bool |
html = false |
|
) |
| |
|
slot |
Append the message to the message widget.
Definition at line 785 of file rpcconsole.cpp.
| void RPCConsole::on_lineEdit_returnPressed |
( |
| ) |
|
|
privateslot |
| void RPCConsole::on_openDebugLogfileButton_clicked |
( |
| ) |
|
|
privateslot |
open the debug.log from the current datadir
Definition at line 937 of file rpcconsole.cpp.
| void RPCConsole::on_sldGraphRange_valueChanged |
( |
int |
value | ) |
|
|
privateslot |
change the time range of the network traffic graph
Definition at line 948 of file rpcconsole.cpp.
| void RPCConsole::on_tabWidget_currentChanged |
( |
int |
index | ) |
|
|
privateslot |
| void RPCConsole::peerLayoutAboutToChange |
( |
| ) |
|
|
slot |
Handle selection caching before update.
Definition at line 991 of file rpcconsole.cpp.
| void RPCConsole::peerLayoutChanged |
( |
| ) |
|
|
slot |
| void RPCConsole::peerSelected |
( |
const QItemSelection & |
selected, |
|
|
const QItemSelection & |
deselected |
|
) |
| |
|
slot |
Handle selection of peer in peers list.
Definition at line 979 of file rpcconsole.cpp.
| void RPCConsole::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
privateslot |
| static bool RPCConsole::RPCExecuteCommandLine |
( |
std::string & |
strResult, |
|
|
const std::string & |
strCommand, |
|
|
std::string *const |
pstrFilteredOut = nullptr |
|
) |
| |
|
inlinestatic |
| bool RPCConsole::RPCParseCommandLine |
( |
std::string & |
strResult, |
|
|
const std::string & |
strCommand, |
|
|
bool |
fExecute, |
|
|
std::string *const |
pstrFilteredOut = nullptr |
|
) |
| |
|
static |
Split shell command line into a list of arguments and optionally execute the command(s).
Aims to emulate bash and friends.
- Command nesting is possible with parenthesis; for example: validateaddress(getnewaddress())
- Arguments are delimited with whitespace or comma
- Extra whitespace at the beginning and end and between arguments will be ignored
- Text can be "double" or 'single' quoted
- The backslash
\ is used as escape character
- Outside quotes, any character can be escaped
- Within double quotes, only escape
" and backslashes before a \c " or another backslash
- Within single quotes, no escaping is possible and no special interpretation takes place
- Parameters
-
| [out] | result | stringified Result from the executed command(chain) |
| [in] | strCommand | Command line to split |
| [in] | fExecute | set true if you want the command to be executed |
| [out] | pstrFilteredOut | Command line, filtered to remove any sensitive data |
Definition at line 152 of file rpcconsole.cpp.
| void RPCConsole::scrollToEnd |
( |
| ) |
|
|
slot |
| void RPCConsole::setFontSize |
( |
int |
newSize | ) |
|
|
slot |
| void RPCConsole::setMempoolSize |
( |
long |
numberOfTxs, |
|
|
size_t |
dynUsage |
|
) |
| |
|
slot |
Set size (number of transactions and memory usage) of the mempool in the UI.
Definition at line 835 of file rpcconsole.cpp.
| void RPCConsole::setNetworkActive |
( |
bool |
networkActive | ) |
|
|
slot |
| void RPCConsole::setNumBlocks |
( |
int |
count, |
|
|
const QDateTime & |
blockDate, |
|
|
double |
nVerificationProgress, |
|
|
bool |
headers |
|
) |
| |
|
slot |
Set number of blocks and last block date shown in the UI.
Definition at line 827 of file rpcconsole.cpp.
| void RPCConsole::setNumConnections |
( |
int |
count | ) |
|
|
slot |
Set number of connections shown in the UI.
Definition at line 814 of file rpcconsole.cpp.
| void RPCConsole::setTabFocus |
( |
enum TabTypes |
tabType | ) |
|
|
slot |
| void RPCConsole::setTrafficGraphRange |
( |
int |
mins | ) |
|
|
private |
| void RPCConsole::showBanTableContextMenu |
( |
const QPoint & |
point | ) |
|
|
privateslot |
| void RPCConsole::showEvent |
( |
QShowEvent * |
event | ) |
|
|
privateslot |
| void RPCConsole::showOrHideBanTableIfRequired |
( |
| ) |
|
|
privateslot |
| void RPCConsole::showPeersTableContextMenu |
( |
const QPoint & |
point | ) |
|
|
privateslot |
| void RPCConsole::startExecutor |
( |
| ) |
|
|
private |
| void RPCConsole::stopExecutor |
( |
| ) |
|
|
signal |
| void RPCConsole::unbanSelectedNode |
( |
| ) |
|
|
slot |
| void RPCConsole::updateNetworkState |
( |
| ) |
|
|
private |
Update UI with latest network info from model.
Definition at line 801 of file rpcconsole.cpp.
show detailed information on ui about selected node
Definition at line 1059 of file rpcconsole.cpp.
| void RPCConsole::updateTrafficStats |
( |
quint64 |
totalBytesIn, |
|
|
quint64 |
totalBytesOut |
|
) |
| |
|
privateslot |
| QCompleter* RPCConsole::autoCompleter |
|
private |
| QMenu* RPCConsole::banTableContextMenu |
|
private |
| QList<NodeId> RPCConsole::cachedNodeids |
|
private |
| QString RPCConsole::cmdBeforeBrowsing |
|
private |
| int RPCConsole::consoleFontSize |
|
private |
| QStringList RPCConsole::history |
|
private |
| int RPCConsole::historyPtr |
|
private |
| QMenu* RPCConsole::peersTableContextMenu |
|
private |
| QThread RPCConsole::thread |
|
private |
The documentation for this class was generated from the following files: