6 #include <pajlada/serialize.hpp> 16 explicit Command(
const QString &text);
17 Command(
const QString &name,
const QString &func,
18 bool showInMsgContextMenu =
false);
30 rapidjson::Document::AllocatorType &a)
32 rapidjson::Value ret(rapidjson::kObjectType);
37 value.showInMsgContextMenu, a);
46 bool *error =
nullptr)
50 if (!value.IsObject())
52 PAJLADA_REPORT_ERROR(error);
58 PAJLADA_REPORT_ERROR(error);
63 PAJLADA_REPORT_ERROR(error);
71 PAJLADA_REPORT_ERROR(error);
Definition: Command.hpp:10
bool showInMsgContextMenu
Definition: Command.hpp:13
Definition: Application.cpp:48
void set(rapidjson::Value &obj, const char *key, const Type &value, rapidjson::Document::AllocatorType &a)
Definition: RapidjsonHelpers.hpp:22
QString toString() const
Definition: Command.cpp:29
Definition: Command.hpp:25
bool getSafe(const rapidjson::Value &obj, const char *key, Type &out)
Definition: RapidjsonHelpers.hpp:73
QString func
Definition: Command.hpp:12
QString name
Definition: Command.hpp:11