Anoncoin  0.9.4
P2P Digital Currency
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
RPCConsole Class Reference

Local Anoncoin RPC console. More...

#include <rpcconsole.h>

Inheritance diagram for RPCConsole:
[legend]
Collaboration diagram for RPCConsole:
[legend]

Public Types

enum  MessageClass {
  MC_ERROR, MC_DEBUG, CMD_REQUEST, CMD_REPLY,
  CMD_ERROR
}
 

Public Slots

void clear ()
 
void reject ()
 
void message (int category, const QString &message, bool html=false)
 
void setNumConnections (int count)
 Set number of connections shown in the UI. More...
 
void setNumBlocks (int count)
 Set number of blocks shown in the UI. More...
 
void browseHistory (int offset)
 Go forward or back in history. More...
 
void scrollToEnd ()
 Scroll console view to end. More...
 
void peerSelected (const QItemSelection &selected, const QItemSelection &deselected)
 Handle selection of peer in peers list. More...
 
void peerLayoutChanged ()
 Handle updated peer information. More...
 

Signals

void stopExecutor ()
 
void cmdRequest (const QString &command)
 

Public Member Functions

 RPCConsole (QWidget *parent)
 
 ~RPCConsole ()
 
void setClientModel (ClientModel *model)
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event)
 

Private Types

enum  ColumnWidths { ADDRESS_COLUMN_WIDTH = 200, SUBVERSION_COLUMN_WIDTH = 100, PING_COLUMN_WIDTH = 80 }
 

Private Slots

void on_lineEdit_returnPressed ()
 
void on_tabWidget_currentChanged (int index)
 
void on_openDebugLogfileButton_clicked ()
 open the debug.log from the current datadir More...
 
void on_sldGraphRange_valueChanged (int value)
 change the time range of the network traffic graph More...
 
void updateTrafficStats (quint64 totalBytesIn, quint64 totalBytesOut)
 update traffic statistics More...
 
void resizeEvent (QResizeEvent *event)
 
void showEvent (QShowEvent *event)
 
void hideEvent (QHideEvent *event)
 

Private Member Functions

void startExecutor ()
 
void setTrafficGraphRange (int mins)
 
void updateNodeDetail (const CNodeCombinedStats *stats)
 show detailed information on ui about selected node More...
 

Static Private Member Functions

static QString FormatBytes (quint64 bytes)
 

Private Attributes

Ui::RPCConsoleui
 
ClientModelclientModel
 
QStringList history
 
int historyPtr
 
NodeId cachedNodeid
 

Detailed Description

Local Anoncoin RPC console.

Definition at line 26 of file rpcconsole.h.

Member Enumeration Documentation

Enumerator
ADDRESS_COLUMN_WIDTH 
SUBVERSION_COLUMN_WIDTH 
PING_COLUMN_WIDTH 

Definition at line 89 of file rpcconsole.h.

Enumerator
MC_ERROR 
MC_DEBUG 
CMD_REQUEST 
CMD_REPLY 
CMD_ERROR 

Definition at line 36 of file rpcconsole.h.

Constructor & Destructor Documentation

RPCConsole::RPCConsole ( QWidget *  parent)
explicit

Definition at line 208 of file rpcconsole.cpp.

Here is the call graph for this function:

RPCConsole::~RPCConsole ( )

Definition at line 249 of file rpcconsole.cpp.

Here is the call graph for this function:

Member Function Documentation

void RPCConsole::browseHistory ( int  offset)
slot

Go forward or back in history.

Definition at line 443 of file rpcconsole.cpp.

Here is the caller graph for this function:

void RPCConsole::clear ( )
slot

Definition at line 345 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::cmdRequest ( const QString &  command)
signal

Definition at line 237 of file moc_rpcconsole.cpp.

Here is the caller graph for this function:

bool RPCConsole::eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedvirtual

Definition at line 256 of file rpcconsole.cpp.

Here is the call graph for this function:

QString RPCConsole::FormatBytes ( quint64  bytes)
staticprivate

Definition at line 506 of file rpcconsole.cpp.

Here is the caller graph for this function:

void RPCConsole::hideEvent ( QHideEvent *  event)
privateslot

Definition at line 669 of file rpcconsole.cpp.

Here is the call graph for this function:

void RPCConsole::message ( int  category,
const QString &  message,
bool  html = false 
)
slot

Definition at line 385 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::on_lineEdit_returnPressed ( )
privateslot

Definition at line 420 of file rpcconsole.cpp.

Here is the call graph for this function:

void RPCConsole::on_openDebugLogfileButton_clicked ( )
privateslot

open the debug.log from the current datadir

Definition at line 488 of file rpcconsole.cpp.

Here is the call graph for this function:

void RPCConsole::on_sldGraphRange_valueChanged ( int  value)
privateslot

change the time range of the network traffic graph

Definition at line 499 of file rpcconsole.cpp.

Here is the call graph for this function:

void RPCConsole::on_tabWidget_currentChanged ( int  index)
privateslot

Definition at line 480 of file rpcconsole.cpp.

void RPCConsole::peerLayoutChanged ( )
slot

Handle updated peer information.

Definition at line 552 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::peerSelected ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
slot

Handle selection of peer in peers list.

Definition at line 540 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::reject ( )
slot

Definition at line 378 of file rpcconsole.cpp.

void RPCConsole::resizeEvent ( QResizeEvent *  event)
privateslot

Definition at line 653 of file rpcconsole.cpp.

void RPCConsole::scrollToEnd ( )
slot

Scroll console view to end.

Definition at line 493 of file rpcconsole.cpp.

Here is the caller graph for this function:

void RPCConsole::setClientModel ( ClientModel model)

Definition at line 292 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::setNumBlocks ( int  count)
slot

Set number of blocks shown in the UI.

Definition at line 413 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::setNumConnections ( int  count)
slot

Set number of connections shown in the UI.

Definition at line 401 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::setTrafficGraphRange ( int  mins)
private

Definition at line 518 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::showEvent ( QShowEvent *  event)
privateslot

Definition at line 658 of file rpcconsole.cpp.

Here is the call graph for this function:

void RPCConsole::startExecutor ( )
private

Definition at line 456 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::stopExecutor ( )
signal

Definition at line 231 of file moc_rpcconsole.cpp.

Here is the caller graph for this function:

void RPCConsole::updateNodeDetail ( const CNodeCombinedStats stats)
private

show detailed information on ui about selected node

Definition at line 612 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCConsole::updateTrafficStats ( quint64  totalBytesIn,
quint64  totalBytesOut 
)
privateslot

update traffic statistics

Definition at line 534 of file rpcconsole.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

NodeId RPCConsole::cachedNodeid
private

Definition at line 100 of file rpcconsole.h.

ClientModel* RPCConsole::clientModel
private

Definition at line 97 of file rpcconsole.h.

QStringList RPCConsole::history
private

Definition at line 98 of file rpcconsole.h.

int RPCConsole::historyPtr
private

Definition at line 99 of file rpcconsole.h.

Ui::RPCConsole* RPCConsole::ui
private

Definition at line 96 of file rpcconsole.h.


The documentation for this class was generated from the following files: