5 #ifndef BITCOIN_QT_RPCCONSOLE_H 6 #define BITCOIN_QT_RPCCONSOLE_H 8 #if defined(HAVE_CONFIG_H) 56 void setClientModel(
ClientModel *model =
nullptr,
int bestblock_height = 0, int64_t bestblock_date = 0,
double verification_progress = 0.0);
61 #endif // ENABLE_WALLET 84 virtual bool eventFilter(QObject* obj, QEvent *event)
override;
98 void showEvent(QShowEvent *event)
override;
99 void hideEvent(QHideEvent *event)
override;
112 void clear(
bool keep_prompt =
false);
141 void setCurrentWallet(
WalletModel*
const wallet_model);
142 #endif // ENABLE_WALLET 146 const QString
yes{tr(
"Yes")},
no{tr(
"No")},
to{tr(
"To")},
from{tr(
"From")},
187 QString
TimeDurationField(std::chrono::seconds time_now, std::chrono::seconds time_at_event)
const 196 #endif // BITCOIN_QT_RPCCONSOLE_H
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 formatDurationStr(std::chrono::seconds dur)
Convert seconds into a QString with days, hours, mins, secs.
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.
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.
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, SyncType synctype)
Set number of blocks and last block date shown in the UI.
void updateAlerts(const QString &warnings)
QString TimeDurationField(std::chrono::seconds time_now, std::chrono::seconds time_at_event) const
Helper for the output of a time duration field.
static bool RPCExecuteCommandLine(interfaces::Node &node, std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=nullptr, const WalletModel *wallet_model=nullptr)
void showEvent(QShowEvent *event) override
QCompleter * autoCompleter
Top-level interface for a bitcoin node (bitcoind process).
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