Anoncoin  0.9.4
P2P Digital Currency
Classes | Functions | Variables
rpcconsole.cpp File Reference
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "guiutil.h"
#include "peertablemodel.h"
#include "main.h"
#include "chainparams.h"
#include "rpcserver.h"
#include "rpcclient.h"
#include "util.h"
#include "json/json_spirit_value.h"
#include <openssl/crypto.h>
#include <QKeyEvent>
#include <QScrollBar>
#include <QThread>
#include <QTime>
#include <QUrl>
#include "rpcconsole.moc"
Include dependency graph for rpcconsole.cpp:

Go to the source code of this file.

Classes

class  RPCExecutor
 

Functions

const QSize ICON_SIZE (24, 24)
 
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

const QSize ICON_SIZE ( 24  ,
24   
)

Here is the caller graph for this function:

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 90 of file rpcconsole.cpp.

Here is the caller graph for this function:

Variable Documentation

const int CONSOLE_HISTORY = 50

Definition at line 45 of file rpcconsole.cpp.

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}
}
const int INITIAL_TRAFFIC_GRAPH_MINS = 30

Definition at line 48 of file rpcconsole.cpp.

const char* source

Definition at line 52 of file rpcconsole.cpp.

const char* url

Definition at line 51 of file rpcconsole.cpp.