The ExecRPCCommand class Execution of RPC command line.
More...
#include <execrpccommand.h>
|
| ExecRPCCommand (const QString &command, const QStringList &mandatory, const QStringList &optional, const QMap< QString, QString > &translations, QObject *parent=0) |
| ExecRPCCommand Constructor. More...
|
|
bool | exec (const QMap< QString, QString > ¶ms, QVariant &result, QString &resultJson, QString &errorMessage) |
| exec Execute the RPC command More...
|
|
|
static void | appendParam (QMap< QString, QString > ¶ms, const QString ¶mName, const QString ¶mValue) |
| appendParam Append paramether to the list More...
|
|
The ExecRPCCommand class Execution of RPC command line.
Definition at line 12 of file execrpccommand.h.
ExecRPCCommand::ExecRPCCommand |
( |
const QString & |
command, |
|
|
const QStringList & |
mandatory, |
|
|
const QStringList & |
optional, |
|
|
const QMap< QString, QString > & |
translations, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
ExecRPCCommand Constructor.
- Parameters
-
command | Command to be executed |
mandatory | Mandatory parameters |
optional | Optional parameters |
translations | Translations of the fields |
parent | Parent object |
Definition at line 6 of file execrpccommand.cpp.
void ExecRPCCommand::appendParam |
( |
QMap< QString, QString > & |
params, |
|
|
const QString & |
paramName, |
|
|
const QString & |
paramValue |
|
) |
| |
|
static |
appendParam Append paramether to the list
- Parameters
-
params | List of paramethers |
paramName | Paramether name |
paramValue | Paramether valuse |
Definition at line 104 of file execrpccommand.cpp.
bool ExecRPCCommand::exec |
( |
const QMap< QString, QString > & |
params, |
|
|
QVariant & |
result, |
|
|
QString & |
resultJson, |
|
|
QString & |
errorMessage |
|
) |
| |
exec Execute the RPC command
- Parameters
-
params | Map of the parameter name and the parameter value |
result | Returned data from the PRC call execution |
resultJson | Raw JSON string from the PRC call execution |
errorMessage | Error message from the execution |
- Returns
- Result of the execution
Definition at line 15 of file execrpccommand.cpp.
QString ExecRPCCommand::m_command |
|
private |
QStringList ExecRPCCommand::m_mandatoryParams |
|
private |
QStringList ExecRPCCommand::m_optionalParams |
|
private |
QMap<QString, QString> ExecRPCCommand::m_translations |
|
private |
The documentation for this class was generated from the following files: