Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Functions | Variables
rpcconsole.cpp File Reference
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#include <QTime>
#include <QThread>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <openssl/crypto.h>
#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
 
struct {
   const char *   url
 
   const char *   source
 
ICON_MAPPING []
 

Function Documentation

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.

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

Variable Documentation

const int CONSOLE_HISTORY = 50

Definition at line 22 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 char* source

Definition at line 27 of file rpcconsole.cpp.

const char* url

Definition at line 26 of file rpcconsole.cpp.