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 WalletModel* wallet_model =
nullptr);
46 return RPCParseCommandLine(&node, strResult, strCommand,
true, pstrFilteredOut, wallet_model);
49 void setClientModel(
ClientModel *model =
nullptr,
int bestblock_height = 0, int64_t bestblock_date = 0,
double verification_progress = 0.0);
68 std::vector<TabTypes>
tabs()
const {
return {TabTypes::INFO, TabTypes::CONSOLE, TabTypes::GRAPH, TabTypes::PEERS}; }
70 QString tabTitle(
TabTypes tab_type)
const;
71 QKeySequence tabShortcut(
TabTypes tab_type)
const;
74 virtual bool eventFilter(QObject* obj, QEvent *event)
override;
75 void keyPressEvent(QKeyEvent *)
override;
78 void on_lineEdit_returnPressed();
79 void on_tabWidget_currentChanged(
int index);
81 void on_openDebugLogfileButton_clicked();
83 void on_sldGraphRange_valueChanged(
int value);
85 void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
86 void resizeEvent(QResizeEvent *event)
override;
87 void showEvent(QShowEvent *event)
override;
88 void hideEvent(QHideEvent *event)
override;
90 void showPeersTableContextMenu(
const QPoint& point);
92 void showBanTableContextMenu(
const QPoint& point);
94 void showOrHideBanTableIfRequired();
96 void clearSelectedNode();
99 void clear(
bool clearHistory =
true);
102 void setFontSize(
int newSize);
104 void message(
int category,
const QString &msg) {
message(category, msg,
false); }
105 void message(
int category,
const QString &message,
bool html);
107 void setNumConnections(
int count);
109 void setNetworkActive(
bool networkActive);
111 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
113 void setMempoolSize(
long numberOfTxs,
size_t dynUsage);
115 void browseHistory(
int offset);
119 void peerSelected(
const QItemSelection &selected,
const QItemSelection &deselected);
121 void peerLayoutAboutToChange();
123 void peerLayoutChanged();
125 void disconnectSelectedNode();
127 void banSelectedNode(
int bantime);
129 void unbanSelectedNode();
131 void setTabFocus(
enum TabTypes tabType);
135 void cmdRequest(
const QString &command,
const WalletModel* wallet_model);
138 void startExecutor();
139 void setTrafficGraphRange(
int mins);
145 ADDRESS_COLUMN_WIDTH = 200,
146 SUBVERSION_COLUMN_WIDTH = 150,
147 PING_COLUMN_WIDTH = 80,
148 BANSUBNET_COLUMN_WIDTH = 200,
149 BANTIME_COLUMN_WIDTH = 250
162 QMenu *peersTableContextMenu =
nullptr;
163 QMenu *banTableContextMenu =
nullptr;
164 int consoleFontSize = 0;
165 QCompleter *autoCompleter =
nullptr;
170 void updateNetworkState();
173 void updateAlerts(
const QString& warnings);
176 #endif // BITCOIN_QT_RPCCONSOLE_H Local Bitcoin RPC console.
QString cmdBeforeBrowsing
interfaces::Node & m_node
std::vector< TabTypes > tabs() const
disconnectpool queuedTx clear()
const PlatformStyle *const platformStyle
void message(int category, const QString &msg)
Append the message to the message widget.
Model for Bitcoin network client.
QList< NodeId > cachedNodeids
Interface to Bitcoin wallet from Qt view code.
static bool RPCExecuteCommandLine(interfaces::Node &node, std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=nullptr, const WalletModel *wallet_model=nullptr)
Top-level interface for a bitcoin node (bitcoind process).