PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Functions | Variables
rpcconsole.cpp File Reference
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "bantablemodel.h"
#include "clientmodel.h"
#include "guiutil.h"
#include "peertablemodel.h"
#include "chainparams.h"
#include "netbase.h"
#include "rpc/client.h"
#include "rpc/server.h"
#include "util.h"
#include <univalue.h>
#include <openssl/crypto.h>
#include <QDir>
#include <QKeyEvent>
#include <QMenu>
#include <QScrollBar>
#include <QSignalMapper>
#include <QThread>
#include <QTime>
#include <QTimer>
#include <QStringList>
#include "rpcconsole.moc"
Include dependency graph for rpcconsole.cpp:

Go to the source code of this file.

Classes

class  RPCExecutor
 
class  QtRPCTimerBase
 Class for handling RPC timers (used for e.g. More...
 
class  QtRPCTimerInterface
 

Functions

const QSize ICON_SIZE (24, 24)
 
const QString SALVAGEWALLET ("-salvagewallet")
 
const QString RESCAN ("-rescan")
 
const QString ZAPTXES1 ("-zapwallettxes=1")
 
const QString ZAPTXES2 ("-zapwallettxes=2")
 
const QString UPGRADEWALLET ("-upgradewallet")
 
const QString REINDEX ("-reindex")
 
const QString RESYNC ("-resync")
 
bool parseCommandLine (std::vector< std::string > &args, const std::string &strCommand)
 Split shell command line into a list of arguments. More...
 

Variables

const int CONSOLE_HISTORY = 50
 
const int INITIAL_TRAFFIC_GRAPH_MINS = 30
 
struct {
   const char *   url
 
   const char *   source
 
ICON_MAPPING []
 

Function Documentation

◆ ICON_SIZE()

const QSize ICON_SIZE ( 24  ,
24   
)
Here is the caller graph for this function:

◆ parseCommandLine()

bool parseCommandLine ( std::vector< std::string > &  args,
const std::string &  strCommand 
)

Split shell command line into a list of arguments.

Aims to emulate bash and friends.

  • Arguments are delimited with whitespace
  • Extra whitespace at the beginning and end and between arguments will be ignored
  • Text can be "double" or 'single' quoted
  • The backslash \ is used as escape character
    • Outside quotes, any character can be escaped
    • Within double quotes, only escape " and backslashes before a \c " or another backslash
    • Within single quotes, no escaping is possible and no special interpretation takes place
Parameters
[out]argsParsed arguments will be appended to this list
[in]strCommandCommand line to split

Definition at line 133 of file rpcconsole.cpp.

Here is the caller graph for this function:

◆ REINDEX()

const QString REINDEX ( "-reindex"  )
Here is the caller graph for this function:

◆ RESCAN()

const QString RESCAN ( "-rescan"  )
Here is the caller graph for this function:

◆ RESYNC()

const QString RESYNC ( "-resync"  )
Here is the caller graph for this function:

◆ SALVAGEWALLET()

const QString SALVAGEWALLET ( "-salvagewallet"  )
Here is the caller graph for this function:

◆ UPGRADEWALLET()

const QString UPGRADEWALLET ( "-upgradewallet"  )
Here is the caller graph for this function:

◆ ZAPTXES1()

const QString ZAPTXES1 ( )
Here is the caller graph for this function:

◆ ZAPTXES2()

const QString ZAPTXES2 ( )
Here is the caller graph for this function:

Variable Documentation

◆ CONSOLE_HISTORY

const int CONSOLE_HISTORY = 50
Todo:

: add a scrollback limit, as there is currently none

: make it possible to filter out categories (esp debug messages when implemented)

: receive errors and debug messages through ClientModel

Definition at line 46 of file rpcconsole.cpp.

◆ ICON_MAPPING

const { ... } ICON_MAPPING[]
Initial value:
= {
{"cmd-request", ":/icons/tx_input"},
{"cmd-reply", ":/icons/tx_output"},
{"cmd-error", ":/icons/tx_output"},
{"misc", ":/icons/tx_inout"},
{NULL, NULL}}

◆ INITIAL_TRAFFIC_GRAPH_MINS

const int INITIAL_TRAFFIC_GRAPH_MINS = 30

Definition at line 49 of file rpcconsole.cpp.

◆ source

const char* source

Definition at line 62 of file rpcconsole.cpp.

◆ url

const char* url

Definition at line 61 of file rpcconsole.cpp.