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