ActionReply TestHelper::echoaction(QVariantMap args) { qDebug() << "Echo action running"; ActionReply reply = ActionReply::SuccessReply(); reply.setData(args); return reply; }
ActionReply Helper::createReply(int code, const QVariantMap *returnData) { ActionReply reply; if (code) { reply = ActionReply::HelperError; reply.setErrorCode(code); } else { reply = ActionReply::SuccessReply; } if (returnData) reply.setData(*returnData); return reply; }