5 #ifndef BITCOIN_QT_RPCCONSOLE_H 6 #define BITCOIN_QT_RPCCONSOLE_H 44 static bool RPCParseCommandLine(
interfaces::Node* node, std::string &strResult,
const std::string &strCommand,
bool fExecute, std::string *
const pstrFilteredOut =
nullptr,
const std::string *walletID =
nullptr);
45 static bool RPCExecuteCommandLine(
interfaces::Node& node, std::string &strResult,
const std::string &strCommand, std::string *
const pstrFilteredOut =
nullptr,
const std::string *walletID =
nullptr) {
69 virtual bool eventFilter(QObject* obj, QEvent *event);
94 void clear(
bool clearHistory =
true);
99 void message(
int category,
const QString &msg) {
message(category, msg,
false); }
106 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
114 void peerSelected(
const QItemSelection &selected,
const QItemSelection &deselected);
131 void cmdRequest(
const QString &command,
const QString &walletID);
150 Ui::RPCConsole*
const ui;
169 #endif // BITCOIN_QT_RPCCONSOLE_H
void addWallet(WalletModel *const walletModel)
Local Bitcoin RPC console.
void keyPressEvent(QKeyEvent *)
QString cmdBeforeBrowsing
void showEvent(QShowEvent *event)
void on_lineEdit_returnPressed()
void showPeersTableContextMenu(const QPoint &point)
Show custom context menu on Peers tab.
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 disconnectSelectedNode()
Disconnect a selected node on the Peers tab.
void cmdRequest(const QString &command, const QString &walletID)
void on_tabWidget_currentChanged(int index)
void updateNodeDetail(const CNodeCombinedStats *stats)
show detailed information on ui about selected node
void setClientModel(ClientModel *model)
void resizeEvent(QResizeEvent *event)
const PlatformStyle *const platformStyle
QMenu * peersTableContextMenu
void browseHistory(int offset)
Go forward or back in history.
void message(int category, const QString &msg)
Append the message to the message widget.
void setTabFocus(enum TabTypes tabType)
set which tab has the focus (is visible)
void peerLayoutChanged()
Handle updated peer information.
RPCTimerInterface * rpcTimerInterface
void updateNetworkState()
Update UI with latest network info from model.
static bool RPCParseCommandLine(interfaces::Node *node, std::string &strResult, const std::string &strCommand, bool fExecute, std::string *const pstrFilteredOut=nullptr, const std::string *walletID=nullptr)
Split shell command line into a list of arguments and optionally execute the command(s).
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.
void hideEvent(QHideEvent *event)
ClientModel * clientModel
virtual bool eventFilter(QObject *obj, QEvent *event)
QMenu * banTableContextMenu
void setTrafficGraphRange(int mins)
void clear(bool clearHistory=true)
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.
void peerLayoutAboutToChange()
Handle selection caching before update.
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 removeWallet(WalletModel *const walletModel)
void peerSelected(const QItemSelection &selected, const QItemSelection &deselected)
Handle selection of peer in peers list.
static bool RPCExecuteCommandLine(interfaces::Node &node, std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=nullptr, const std::string *walletID=nullptr)
QCompleter * autoCompleter
Top-level interface for a bitcoin node (bsha3d 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.