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