5 #ifndef BITCOIN_QT_RPCCONSOLE_H
6 #define BITCOIN_QT_RPCCONSOLE_H
39 static bool RPCParseCommandLine(std::string &strResult,
const std::string &strCommand,
bool fExecute, std::string *
const pstrFilteredOut = NULL);
40 static bool RPCExecuteCommandLine(std::string &strResult,
const std::string &strCommand, std::string *
const pstrFilteredOut = NULL) {
62 virtual bool eventFilter(QObject* obj, QEvent *event);
87 void clear(
bool clearHistory =
true);
92 void message(
int category,
const QString &
message,
bool html =
false);
98 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
106 void peerSelected(
const QItemSelection &selected,
const QItemSelection &deselected);
Model for Bitcoin network client.
Local Bitcoin RPC console.
QMenu * peersTableContextMenu
void updateNodeDetail(const CNodeCombinedStats *stats)
show detailed information on ui about selected node
void resizeEvent(QResizeEvent *event)
static bool RPCParseCommandLine(std::string &strResult, const std::string &strCommand, bool fExecute, std::string *const pstrFilteredOut=NULL)
Split shell command line into a list of arguments and optionally execute the command(s).
void browseHistory(int offset)
Go forward or back in history.
void peerSelected(const QItemSelection &selected, const QItemSelection &deselected)
Handle selection of peer in peers list.
RPCTimerInterface * rpcTimerInterface
void on_lineEdit_returnPressed()
void setClientModel(ClientModel *model)
void setFontSize(int newSize)
void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut)
update traffic statistics
void setTrafficGraphRange(int mins)
void cmdRequest(const QString &command)
void updateNetworkState()
Update UI with latest network info from model.
void disconnectSelectedNode()
Disconnect a selected node on the Peers tab.
@ SUBVERSION_COLUMN_WIDTH
QCompleter * autoCompleter
virtual bool eventFilter(QObject *obj, QEvent *event)
void setMempoolSize(long numberOfTxs, size_t dynUsage)
Set size (number of transactions and memory usage) of the mempool in the UI.
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers)
Set number of blocks and last block date shown in the UI.
static bool RPCExecuteCommandLine(std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=NULL)
void clear(bool clearHistory=true)
void keyPressEvent(QKeyEvent *)
RPCConsole(const PlatformStyle *platformStyle, QWidget *parent)
void showPeersTableContextMenu(const QPoint &point)
Show custom context menu on Peers tab.
QList< NodeId > cachedNodeids
void unbanSelectedNode()
Unban a selected node on the Bans tab.
void clearSelectedNode()
clear the selected node
void on_sldGraphRange_valueChanged(int value)
change the time range of the network traffic graph
const PlatformStyle * platformStyle
void setNumConnections(int count)
Set number of connections shown in the UI.
ClientModel * clientModel
void banSelectedNode(int bantime)
Ban a selected node on the Peers tab.
void scrollToEnd()
Scroll console view to end.
void hideEvent(QHideEvent *event)
void on_tabWidget_currentChanged(int index)
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
QString cmdBeforeBrowsing
void message(int category, const QString &message, bool html=false)
Append the message to the message widget.
void on_openDebugLogfileButton_clicked()
open the debug.log from the current datadir
void showBanTableContextMenu(const QPoint &point)
Show custom context menu on Bans tab.
void peerLayoutAboutToChange()
Handle selection caching before update.
void setTabFocus(enum TabTypes tabType)
set which tab has the focus (is visible)
void showEvent(QShowEvent *event)
void showOrHideBanTableIfRequired()
Hides ban table if no bans are present.
QMenu * banTableContextMenu
void peerLayoutChanged()
Handle updated peer information.
static QString FormatBytes(quint64 bytes)