![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
Local Bitcoin RPC console. More...
#include <rpcconsole.h>
Public Slots | |
| void | clear () |
| void | walletSalvage () |
| Wallet repair options. More... | |
| void | walletRescan () |
| Restart wallet with "-rescan". More... | |
| void | walletZaptxes1 () |
| Restart wallet with "-zapwallettxes=1". More... | |
| void | walletZaptxes2 () |
| Restart wallet with "-zapwallettxes=2". More... | |
| void | walletUpgrade () |
| Restart wallet with "-upgradewallet". More... | |
| void | walletReindex () |
| Restart wallet with "-reindex". More... | |
| void | walletResync () |
| Restart wallet with "-resync". More... | |
| void | reject () |
| void | message (int category, const QString &msg) |
| void | message (int category, const QString &message, bool html) |
| void | setNumConnections (int count) |
| Set number of connections shown in the UI. More... | |
| void | setNetworkActive (bool networkActive) |
| Set network state shown in the UI. More... | |
| void | setNumBlocks (int count) |
| Set number of blocks shown in the UI. More... | |
| void | setMasternodeCount (const QString &strMasternodes) |
| Set number of masternodes shown in the UI. More... | |
| void | browseHistory (int offset) |
| Go forward or back in history. More... | |
| void | scrollToEnd () |
| Scroll console view to end. More... | |
| void | showInfo () |
| Switch to info tab and show. More... | |
| void | showConsole () |
| Switch to console tab and show. More... | |
| void | showNetwork () |
| Switch to network tab and show. More... | |
| void | showPeers () |
| Switch to peers tab and show. More... | |
| void | showRepair () |
| Switch to wallet-repair tab and show. More... | |
| void | showConfEditor () |
| Open external (default) editor with pivx.conf. More... | |
| void | showMNConfEditor () |
| Open external (default) editor with masternode.conf. More... | |
| void | peerSelected (const QItemSelection &selected, const QItemSelection &deselected) |
| Handle selection of peer in peers list. More... | |
| void | peerLayoutChanged () |
| Handle updated peer information. More... | |
| void | disconnectSelectedNode () |
| Disconnect a selected node on the Peers tab. More... | |
| void | banSelectedNode (int bantime) |
| Ban a selected node on the Peers tab. More... | |
| void | unbanSelectedNode () |
| Unban a selected node on the Bans tab. More... | |
| void | showBackups () |
| Show folder with wallet backups in default browser. More... | |
Signals | |
| void | stopExecutor () |
| void | cmdRequest (const QString &command) |
| void | handleRestart (QStringList args) |
| Get restart command-line parameters and handle restart. More... | |
Public Member Functions | |
| RPCConsole (QWidget *parent) | |
| ~RPCConsole () | |
| void | setClientModel (ClientModel *model) |
| void | setWalletModel (WalletModel *model) |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *obj, QEvent *event) |
Private Types | |
| enum | ColumnWidths { ADDRESS_COLUMN_WIDTH = 170 , SUBVERSION_COLUMN_WIDTH = 140 , PING_COLUMN_WIDTH = 80 , BANSUBNET_COLUMN_WIDTH = 200 , BANTIME_COLUMN_WIDTH = 250 } |
Private Slots | |
| void | on_lineEdit_returnPressed () |
| void | on_tabWidget_currentChanged (int index) |
| void | on_openDebugLogfileButton_clicked () |
| open the debug.log from the current datadir More... | |
| void | on_sldGraphRange_valueChanged (int value) |
| change the time range of the network traffic graph More... | |
| void | updateTrafficStats (quint64 totalBytesIn, quint64 totalBytesOut) |
| update traffic statistics More... | |
| void | resizeEvent (QResizeEvent *event) |
| void | showEvent (QShowEvent *event) |
| void | hideEvent (QHideEvent *event) |
| void | showPeersTableContextMenu (const QPoint &point) |
| Show custom context menu on Peers tab. More... | |
| void | showBanTableContextMenu (const QPoint &point) |
| Show custom context menu on Bans tab. More... | |
| void | showOrHideBanTableIfRequired () |
| Hides ban table if no bans are present. More... | |
| void | clearSelectedNode () |
| clear the selected node More... | |
Private Member Functions | |
| void | startExecutor () |
| void | setTrafficGraphRange (int mins) |
| void | buildParameterlist (QString arg) |
| Build parameter list for restart. More... | |
| void | updateNodeDetail (const CNodeCombinedStats *stats) |
| show detailed information on ui about selected node More... | |
| void | updateNetworkState (int num_connections) |
| Update UI with latest network info from model. More... | |
Static Private Member Functions | |
| static QString | FormatBytes (quint64 bytes) |
Private Attributes | |
| Ui::RPCConsole * | ui |
| ClientModel * | clientModel |
| WalletModel * | walletModel |
| QStringList | history |
| int | historyPtr |
| NodeId | cachedNodeid |
| QCompleter * | autoCompleter |
| QMenu * | peersTableContextMenu |
| QMenu * | banTableContextMenu |
| RPCTimerInterface * | rpcTimerInterface |
Local Bitcoin RPC console.
Definition at line 32 of file rpcconsole.h.
|
private |
| Enumerator | |
|---|---|
| ADDRESS_COLUMN_WIDTH | |
| SUBVERSION_COLUMN_WIDTH | |
| PING_COLUMN_WIDTH | |
| BANSUBNET_COLUMN_WIDTH | |
| BANTIME_COLUMN_WIDTH | |
Definition at line 137 of file rpcconsole.h.
|
explicit |
| RPCConsole::~RPCConsole | ( | ) |
|
slot |
Ban a selected node on the Peers tab.
Definition at line 806 of file rpcconsole.cpp.
|
slot |
Go forward or back in history.
Definition at line 510 of file rpcconsole.cpp.
|
private |
Build parameter list for restart.
Build command-line parameter list for restart.
Definition at line 356 of file rpcconsole.cpp.
|
slot |
Definition at line 377 of file rpcconsole.cpp.
|
privateslot |
clear the selected node
Definition at line 853 of file rpcconsole.cpp.
|
signal |
|
slot |
Disconnect a selected node on the Peers tab.
Definition at line 795 of file rpcconsole.cpp.
|
protectedvirtual |
|
staticprivate |
|
signal |
Get restart command-line parameters and handle restart.
|
privateslot |
|
slot |
|
inlineslot |
Definition at line 80 of file rpcconsole.h.
|
privateslot |
|
privateslot |
open the debug.log from the current datadir
Definition at line 556 of file rpcconsole.cpp.
|
privateslot |
change the time range of the network traffic graph
Definition at line 567 of file rpcconsole.cpp.
|
privateslot |
|
slot |
Handle updated peer information.
Definition at line 650 of file rpcconsole.cpp.
|
slot |
Handle selection of peer in peers list.
Definition at line 638 of file rpcconsole.cpp.
|
slot |
Definition at line 420 of file rpcconsole.cpp.
|
privateslot |
Definition at line 747 of file rpcconsole.cpp.
|
slot |
Scroll console view to end.
Definition at line 561 of file rpcconsole.cpp.
| void RPCConsole::setClientModel | ( | ClientModel * | model | ) |
Definition at line 173 of file rpcconsole.cpp.
|
slot |
Set number of masternodes shown in the UI.
Definition at line 483 of file rpcconsole.cpp.
|
slot |
Set network state shown in the UI.
Definition at line 468 of file rpcconsole.cpp.
|
slot |
Set number of blocks shown in the UI.
Definition at line 474 of file rpcconsole.cpp.
|
slot |
Set number of connections shown in the UI.
Definition at line 460 of file rpcconsole.cpp.
|
private |
Definition at line 586 of file rpcconsole.cpp.
| void RPCConsole::setWalletModel | ( | WalletModel * | model | ) |
Definition at line 290 of file rpcconsole.cpp.
|
slot |
Show folder with wallet backups in default browser.
Definition at line 776 of file rpcconsole.cpp.
|
privateslot |
Show custom context menu on Bans tab.
Definition at line 788 of file rpcconsole.cpp.
|
slot |
Open external (default) editor with pivx.conf.
Definition at line 628 of file rpcconsole.cpp.
|
slot |
Switch to console tab and show.
Definition at line 604 of file rpcconsole.cpp.
|
privateslot |
|
slot |
Switch to info tab and show.
Definition at line 598 of file rpcconsole.cpp.
|
slot |
Open external (default) editor with masternode.conf.
Definition at line 633 of file rpcconsole.cpp.
|
slot |
Switch to network tab and show.
Definition at line 610 of file rpcconsole.cpp.
|
privateslot |
Hides ban table if no bans are present.
Definition at line 861 of file rpcconsole.cpp.
|
slot |
Switch to peers tab and show.
Definition at line 616 of file rpcconsole.cpp.
|
privateslot |
Show custom context menu on Peers tab.
Definition at line 781 of file rpcconsole.cpp.
|
slot |
Switch to wallet-repair tab and show.
Definition at line 622 of file rpcconsole.cpp.
|
private |
Definition at line 523 of file rpcconsole.cpp.
|
signal |
|
slot |
Unban a selected node on the Bans tab.
Definition at line 836 of file rpcconsole.cpp.
|
private |
Update UI with latest network info from model.
Definition at line 443 of file rpcconsole.cpp.
|
private |
show detailed information on ui about selected node
Definition at line 699 of file rpcconsole.cpp.
|
privateslot |
update traffic statistics
Definition at line 592 of file rpcconsole.cpp.
|
slot |
Restart wallet with "-reindex".
Definition at line 329 of file rpcconsole.cpp.
|
slot |
Restart wallet with "-rescan".
Definition at line 305 of file rpcconsole.cpp.
|
slot |
Restart wallet with "-resync".
Definition at line 335 of file rpcconsole.cpp.
|
slot |
Wallet repair options.
Restart wallet with "-salvagewallet".
Definition at line 299 of file rpcconsole.cpp.
|
slot |
Restart wallet with "-upgradewallet".
Definition at line 323 of file rpcconsole.cpp.
|
slot |
Restart wallet with "-zapwallettxes=1".
Definition at line 311 of file rpcconsole.cpp.
|
slot |
Restart wallet with "-zapwallettxes=2".
Definition at line 317 of file rpcconsole.cpp.
|
private |
Definition at line 151 of file rpcconsole.h.
|
private |
Definition at line 153 of file rpcconsole.h.
|
private |
Definition at line 150 of file rpcconsole.h.
|
private |
Definition at line 146 of file rpcconsole.h.
|
private |
Definition at line 148 of file rpcconsole.h.
|
private |
Definition at line 149 of file rpcconsole.h.
|
private |
Definition at line 152 of file rpcconsole.h.
|
private |
Definition at line 154 of file rpcconsole.h.
|
private |
Definition at line 145 of file rpcconsole.h.
|
private |
Definition at line 147 of file rpcconsole.h.