1 #ifndef EXECRPCCOMMAND_H 2 #define EXECRPCCOMMAND_H 23 explicit ExecRPCCommand(
const QString& command,
const QStringList& mandatory,
const QStringList& optional,
const QMap<QString, QString>& translations, QObject *parent = 0);
33 bool exec(
const QMap<QString, QString>& params, QVariant& result, QString& resultJson, QString& errorMessage);
41 static void appendParam(QMap<QString, QString>& params,
const QString& paramName,
const QString& paramValue);
50 #endif // EXECRPCCOMMAND_H ExecRPCCommand(const QString &command, const QStringList &mandatory, const QStringList &optional, const QMap< QString, QString > &translations, QObject *parent=0)
ExecRPCCommand Constructor.
bool exec(const QMap< QString, QString > ¶ms, QVariant &result, QString &resultJson, QString &errorMessage)
exec Execute the RPC command
QMap< QString, QString > m_translations
The ExecRPCCommand class Execution of RPC command line.
static void appendParam(QMap< QString, QString > ¶ms, const QString ¶mName, const QString ¶mValue)
appendParam Append paramether to the list
QStringList m_mandatoryParams
QStringList m_optionalParams