5 #ifndef BITCOIN_QT_RPCCONSOLE_H 6 #define BITCOIN_QT_RPCCONSOLE_H 51 void setClientModel(
ClientModel *model =
nullptr,
int bestblock_height = 0, int64_t bestblock_date = 0,
double verification_progress = 0.0);
76 virtual bool eventFilter(QObject* obj, QEvent *event)
override;
90 void showEvent(QShowEvent *event)
override;
91 void hideEvent(QHideEvent *event)
override;
104 void clear(
bool keep_prompt =
false);
109 void message(
int category,
const QString &msg) {
message(category, msg,
false); }
116 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
138 const QString
yes{tr(
"Yes")},
no{tr(
"No")},
to{tr(
"To")},
from{tr(
"From")},
156 Ui::RPCConsole*
const ui;
186 #endif // BITCOIN_QT_RPCCONSOLE_H
void addWallet(WalletModel *const walletModel)
Local Bitcoin RPC console.
QString cmdBeforeBrowsing
void on_lineEdit_returnPressed()
void showPeersTableContextMenu(const QPoint &point)
Show custom context menu on Peers tab.
WalletModel * m_last_wallet_model
void updateDetailWidget()
show detailed information on ui about selected node
void setClientModel(ClientModel *model=nullptr, int bestblock_height=0, int64_t bestblock_date=0, double verification_progress=0.0)
interfaces::Node & m_node
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
void scrollToEnd()
Scroll console view to end.
void clearSelectedNode()
clear the selected node
RPCConsole(interfaces::Node &node, const PlatformStyle *platformStyle, QWidget *parent)
void changeEvent(QEvent *e) override
void disconnectSelectedNode()
Disconnect a selected node on the Peers tab.
void on_tabWidget_currentChanged(int index)
QString tabTitle(TabTypes tab_type) const
void clear(bool keep_prompt=false)
const PlatformStyle *const platformStyle
struct RPCConsole::TranslatedStrings ts
QMenu * peersTableContextMenu
void browseHistory(int offset)
Go forward or back in history.
void resizeEvent(QResizeEvent *event) override
void message(int category, const QString &msg)
Append the message to the message widget.
QString formatDurationStr(int secs)
Convert seconds into a QString with days, hours, mins, secs.
QByteArray m_banlist_widget_header_state
void setTabFocus(enum TabTypes tabType)
set which tab has the focus (is visible)
std::vector< TabTypes > tabs() const
RPCTimerInterface * rpcTimerInterface
void updateNetworkState()
Update UI with latest network info from model.
QByteArray m_peer_widget_header_state
void on_openDebugLogfileButton_clicked()
open the debug.log from the current datadir
Model for Bitcoin network client.
void unbanSelectedNode()
Unban a selected node on the Bans tab.
ClientModel * clientModel
QMenu * banTableContextMenu
void setTrafficGraphRange(int mins)
QKeySequence tabShortcut(TabTypes tab_type) const
void showOrHideBanTableIfRequired()
Hides ban table if no bans are present.
void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut)
update traffic statistics
QList< NodeId > cachedNodeids
void setMempoolSize(long numberOfTxs, size_t dynUsage)
Set size (number of transactions and memory usage) of the mempool in the UI.
void setFontSize(int newSize)
void setNumConnections(int count)
Set number of connections shown in the UI.
static bool RPCParseCommandLine(interfaces::Node *node, std::string &strResult, const std::string &strCommand, bool fExecute, std::string *const pstrFilteredOut=nullptr, const WalletModel *wallet_model=nullptr)
Split shell command line into a list of arguments and optionally execute the command(s).
Interface to Bitcoin wallet from Qt view code.
void on_sldGraphRange_valueChanged(int value)
change the time range of the network traffic graph
void banSelectedNode(int bantime)
Ban a selected node on the Peers tab.
QString TimeDurationField(uint64_t time_now, uint64_t time_at_event) const
Helper for the output of a time duration field.
void updateAlerts(const QString &warnings)
void removeWallet(WalletModel *const walletModel)
static bool RPCExecuteCommandLine(interfaces::Node &node, std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=nullptr, const WalletModel *wallet_model=nullptr)
void cmdRequest(const QString &command, const WalletModel *wallet_model)
void showEvent(QShowEvent *event) override
QCompleter * autoCompleter
Top-level interface for a bitcoin node (bitcoind process).
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers)
Set number of blocks and last block date shown in the UI.
void showBanTableContextMenu(const QPoint &point)
Show custom context menu on Bans tab.
void keyPressEvent(QKeyEvent *) override
void hideEvent(QHideEvent *event) override
virtual bool eventFilter(QObject *obj, QEvent *event) override