Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ExecRPCCommand Class Reference

The ExecRPCCommand class Execution of RPC command line. More...

#include <execrpccommand.h>

Inheritance diagram for ExecRPCCommand:
[legend]
Collaboration diagram for ExecRPCCommand:
[legend]

Public Member Functions

 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 > &params, QVariant &result, QString &resultJson, QString &errorMessage)
 exec Execute the RPC command More...
 

Static Public Member Functions

static void appendParam (QMap< QString, QString > &params, const QString &paramName, const QString &paramValue)
 appendParam Append paramether to the list More...
 

Private Attributes

QString m_command
 
QStringList m_mandatoryParams
 
QStringList m_optionalParams
 
QMap< QString, QString > m_translations
 

Detailed Description

The ExecRPCCommand class Execution of RPC command line.

Definition at line 12 of file execrpccommand.h.

Constructor & Destructor Documentation

ExecRPCCommand::ExecRPCCommand ( const QString &  command,
const QStringList &  mandatory,
const QStringList &  optional,
const QMap< QString, QString > &  translations,
QObject *  parent = 0 
)
explicit

ExecRPCCommand Constructor.

Parameters
commandCommand to be executed
mandatoryMandatory parameters
optionalOptional parameters
translationsTranslations of the fields
parentParent object

Definition at line 6 of file execrpccommand.cpp.

Member Function Documentation

void ExecRPCCommand::appendParam ( QMap< QString, QString > &  params,
const QString &  paramName,
const QString &  paramValue 
)
static

appendParam Append paramether to the list

Parameters
paramsList of paramethers
paramNameParamether name
paramValueParamether valuse

Definition at line 104 of file execrpccommand.cpp.

Here is the caller graph for this function:

bool ExecRPCCommand::exec ( const QMap< QString, QString > &  params,
QVariant &  result,
QString &  resultJson,
QString &  errorMessage 
)

exec Execute the RPC command

Parameters
paramsMap of the parameter name and the parameter value
resultReturned data from the PRC call execution
resultJsonRaw JSON string from the PRC call execution
errorMessageError message from the execution
Returns
Result of the execution

Definition at line 15 of file execrpccommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QString ExecRPCCommand::m_command
private

Definition at line 44 of file execrpccommand.h.

QStringList ExecRPCCommand::m_mandatoryParams
private

Definition at line 45 of file execrpccommand.h.

QStringList ExecRPCCommand::m_optionalParams
private

Definition at line 46 of file execrpccommand.h.

QMap<QString, QString> ExecRPCCommand::m_translations
private

Definition at line 47 of file execrpccommand.h.


The documentation for this class was generated from the following files: