Local Raven 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 Raven RPC console.
Definition at line 32 of file rpcconsole.h.
◆ ColumnWidths
Enumerator |
---|
ADDRESS_COLUMN_WIDTH | |
SUBVERSION_COLUMN_WIDTH | |
PING_COLUMN_WIDTH | |
BANSUBNET_COLUMN_WIDTH | |
BANTIME_COLUMN_WIDTH | |
Definition at line 143 of file rpcconsole.h.
◆ MessageClass
Enumerator |
---|
MC_ERROR | |
MC_DEBUG | |
CMD_REQUEST | |
CMD_REPLY | |
CMD_ERROR | |
Definition at line 47 of file rpcconsole.h.
◆ TabTypes
Enumerator |
---|
TAB_INFO | |
TAB_CONSOLE | |
TAB_GRAPH | |
TAB_PEERS | |
TAB_REPAIR | |
Definition at line 55 of file rpcconsole.h.
◆ RPCConsole()
RPCConsole::RPCConsole |
( |
const PlatformStyle * |
platformStyle, |
|
|
QWidget * |
parent |
|
) |
| |
|
explicit |
◆ ~RPCConsole()
RPCConsole::~RPCConsole |
( |
| ) |
|
◆ banSelectedNode
void RPCConsole::banSelectedNode |
( |
int |
bantime | ) |
|
|
slot |
◆ browseHistory
void RPCConsole::browseHistory |
( |
int |
offset | ) |
|
|
slot |
◆ buildParameterlist()
void RPCConsole::buildParameterlist |
( |
QString |
arg | ) |
|
|
private |
Build parameter list for restart.
Build command-line parameter list for restart.
Definition at line 757 of file rpcconsole.cpp.
◆ clear
void RPCConsole::clear |
( |
bool |
clearHistory = true | ) |
|
|
slot |
◆ clearSelectedNode
void RPCConsole::clearSelectedNode |
( |
| ) |
|
|
privateslot |
◆ cmdRequest
void RPCConsole::cmdRequest |
( |
const QString & |
command | ) |
|
|
signal |
◆ disconnectSelectedNode
void RPCConsole::disconnectSelectedNode |
( |
| ) |
|
|
slot |
Disconnect a selected node on the Peers tab.
Definition at line 1182 of file rpcconsole.cpp.
◆ eventFilter()
bool RPCConsole::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
◆ fontBigger
void RPCConsole::fontBigger |
( |
| ) |
|
|
slot |
◆ fontSmaller
void RPCConsole::fontSmaller |
( |
| ) |
|
|
slot |
◆ handleRestart
void RPCConsole::handleRestart |
( |
QStringList |
args | ) |
|
|
signal |
Get restart command-line parameters and handle restart.
◆ hideEvent
void RPCConsole::hideEvent |
( |
QHideEvent * |
event | ) |
|
|
privateslot |
◆ keyPressEvent()
void RPCConsole::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protected |
◆ message
void RPCConsole::message |
( |
int |
category, |
|
|
const QString & |
message, |
|
|
bool |
html = false |
|
) |
| |
|
slot |
Append the message to the message widget.
Definition at line 833 of file rpcconsole.cpp.
◆ on_lineEdit_returnPressed
void RPCConsole::on_lineEdit_returnPressed |
( |
| ) |
|
|
privateslot |
◆ on_openDebugLogfileButton_clicked
void RPCConsole::on_openDebugLogfileButton_clicked |
( |
| ) |
|
|
privateslot |
open the debug.log from the current datadir
Definition at line 985 of file rpcconsole.cpp.
◆ on_sldGraphRange_valueChanged
void RPCConsole::on_sldGraphRange_valueChanged |
( |
int |
value | ) |
|
|
privateslot |
change the time range of the network traffic graph
Definition at line 996 of file rpcconsole.cpp.
◆ on_tabWidget_currentChanged
void RPCConsole::on_tabWidget_currentChanged |
( |
int |
index | ) |
|
|
privateslot |
◆ peerLayoutAboutToChange
void RPCConsole::peerLayoutAboutToChange |
( |
| ) |
|
|
slot |
◆ peerLayoutChanged
void RPCConsole::peerLayoutChanged |
( |
| ) |
|
|
slot |
◆ peerSelected
void RPCConsole::peerSelected |
( |
const QItemSelection & |
selected, |
|
|
const QItemSelection & |
deselected |
|
) |
| |
|
slot |
◆ resizeEvent
void RPCConsole::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
privateslot |
◆ RPCExecuteCommandLine()
static bool RPCConsole::RPCExecuteCommandLine |
( |
std::string & |
strResult, |
|
|
const std::string & |
strCommand, |
|
|
std::string *const |
pstrFilteredOut = nullptr |
|
) |
| |
|
inlinestatic |
◆ RPCParseCommandLine()
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 157 of file rpcconsole.cpp.
◆ scrollToEnd
void RPCConsole::scrollToEnd |
( |
| ) |
|
|
slot |
◆ setClientModel()
◆ setFontSize
void RPCConsole::setFontSize |
( |
int |
newSize | ) |
|
|
slot |
◆ setMempoolSize
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 883 of file rpcconsole.cpp.
◆ setNetworkActive
void RPCConsole::setNetworkActive |
( |
bool |
networkActive | ) |
|
|
slot |
◆ setNumBlocks
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 875 of file rpcconsole.cpp.
◆ setNumConnections
void RPCConsole::setNumConnections |
( |
int |
count | ) |
|
|
slot |
Set number of connections shown in the UI.
Definition at line 862 of file rpcconsole.cpp.
◆ setTabFocus
void RPCConsole::setTabFocus |
( |
enum TabTypes |
tabType | ) |
|
|
slot |
◆ setTrafficGraphRange()
void RPCConsole::setTrafficGraphRange |
( |
int |
mins | ) |
|
|
private |
◆ showBanTableContextMenu
void RPCConsole::showBanTableContextMenu |
( |
const QPoint & |
point | ) |
|
|
privateslot |
◆ showEvent
void RPCConsole::showEvent |
( |
QShowEvent * |
event | ) |
|
|
privateslot |
◆ showOrHideBanTableIfRequired
void RPCConsole::showOrHideBanTableIfRequired |
( |
| ) |
|
|
privateslot |
◆ showPeersTableContextMenu
void RPCConsole::showPeersTableContextMenu |
( |
const QPoint & |
point | ) |
|
|
privateslot |
◆ startExecutor()
void RPCConsole::startExecutor |
( |
| ) |
|
|
private |
◆ stopExecutor
void RPCConsole::stopExecutor |
( |
| ) |
|
|
signal |
◆ unbanSelectedNode
void RPCConsole::unbanSelectedNode |
( |
| ) |
|
|
slot |
◆ updateNetworkState()
void RPCConsole::updateNetworkState |
( |
| ) |
|
|
private |
Update UI with latest network info from model.
Definition at line 849 of file rpcconsole.cpp.
◆ updateNodeDetail()
show detailed information on ui about selected node
Definition at line 1095 of file rpcconsole.cpp.
◆ updateTrafficStats
void RPCConsole::updateTrafficStats |
( |
quint64 |
totalBytesIn, |
|
|
quint64 |
totalBytesOut |
|
) |
| |
|
privateslot |
◆ walletReindex
void RPCConsole::walletReindex |
( |
| ) |
|
|
slot |
◆ walletRescan
void RPCConsole::walletRescan |
( |
| ) |
|
|
slot |
Wallet repair options.
Restart wallet with "-rescan".
Definition at line 727 of file rpcconsole.cpp.
◆ walletZaptxes1
void RPCConsole::walletZaptxes1 |
( |
| ) |
|
|
slot |
Restart wallet with "-zapwallettxes=1".
Definition at line 733 of file rpcconsole.cpp.
◆ autoCompleter
QCompleter* RPCConsole::autoCompleter |
|
private |
◆ banTableContextMenu
QMenu* RPCConsole::banTableContextMenu |
|
private |
◆ cachedNodeids
QList<NodeId> RPCConsole::cachedNodeids |
|
private |
◆ clientModel
◆ cmdBeforeBrowsing
QString RPCConsole::cmdBeforeBrowsing |
|
private |
◆ consoleFontSize
int RPCConsole::consoleFontSize |
|
private |
◆ history
QStringList RPCConsole::history |
|
private |
◆ historyPtr
int RPCConsole::historyPtr |
|
private |
◆ peersTableContextMenu
QMenu* RPCConsole::peersTableContextMenu |
|
private |
◆ platformStyle
◆ rpcTimerInterface
◆ thread
QThread RPCConsole::thread |
|
private |
◆ ui
Ui::RPCConsole* RPCConsole::ui |
|
private |
The documentation for this class was generated from the following files: