#include <rpcexecutor.h>
|
| void | request (const QString &command) |
| |
|
| void | reply (int category, const QString &command) |
| |
|
| bool | ExecuteCommandLine (std::string &strResult, const std::string &strCommand) |
| | Split shell command line into a list of arguments and execute the command(s). More...
|
| |
Definition at line 18 of file rpcexecutor.h.
◆ CommandClass
| Enumerator |
|---|
| CMD_REQUEST | |
| CMD_REPLY | |
| CMD_ERROR | |
Definition at line 22 of file rpcexecutor.h.
◆ categoryClass()
| QString RPCExecutor::categoryClass |
( |
int |
category | ) |
|
|
static |
◆ ExecuteCommandLine()
| bool RPCExecutor::ExecuteCommandLine |
( |
std::string & |
strResult, |
|
|
const std::string & |
strCommand |
|
) |
| |
|
private |
Split shell command line into a list of arguments and execute the command(s).
Aims to emulate bash and friends.
- Command nesting is possible with brackets [example: validateaddress(getnewaddress())]
- Arguments are delimited with whitespace or comma
- 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] | result | stringified Result from the executed command(chain) |
| [in] | strCommand | Command line to split |
Definition at line 107 of file rpcexecutor.cpp.
◆ reply
| void RPCExecutor::reply |
( |
int |
category, |
|
|
const QString & |
command |
|
) |
| |
|
signal |
◆ request
| void RPCExecutor::request |
( |
const QString & |
command | ) |
|
|
slot |
The documentation for this class was generated from the following files: