11 /** Local Bitcoin RPC console. */
12 class RPCConsole: public QDialog
17 explicit RPCConsole(QWidget *parent = 0);
20 void setClientModel(ClientModel *model);
31 virtual bool eventFilter(QObject* obj, QEvent *event);
34 void on_lineEdit_returnPressed();
35 void on_tabWidget_currentChanged(int index);
36 /** open the debug.log from the current datadir */
37 void on_openDebugLogfileButton_clicked();
38 /** change the time range of the network traffic graph */
39 void on_sldGraphRange_valueChanged(int value);
40 /** update traffic statistics */
41 void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
42 void resizeEvent(QResizeEvent *event);
43 void showEvent(QShowEvent *event);
44 void hideEvent(QHideEvent *event);
45 /** display messagebox with program parameters (same as bitcoin-qt --help) */
46 void on_showCLOptionsButton_clicked();
50 void message(int category, const QString &message, bool html = false);
51 /** Set number of connections shown in the UI */
52 void setNumConnections(int count);
53 /** Set number of blocks shown in the UI */
54 void setNumBlocks(int count, int countOfPeers);
55 /** Go forward or back in history */
56 void browseHistory(int offset);
57 /** Scroll console view to end */
60 // For RPC command executor
62 void cmdRequest(const QString &command);
65 static QString FormatBytes(quint64 bytes);
66 void setTrafficGraphRange(int mins);
67 /** show detailed information on ui about selected node */
71 ADDRESS_COLUMN_WIDTH = 200,
72 SUBVERSION_COLUMN_WIDTH = 100,
73 PING_COLUMN_WIDTH = 80
77 ClientModel *clientModel;
84 #endif // RPCCONSOLE_H