aboutsummaryrefslogtreecommitdiff
path: root/lib/application-service/definitions/protocol.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 19:46:40 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 19:46:40 +0200
commit32729d9a7519cd2c4cddb0174b8329c6fd4a4a83 (patch)
tree9a966d7dc0bf628f610d5de1ad64c8d29b6b26f8 /lib/application-service/definitions/protocol.cpp
parenta0430b1fb722a77ad7cbd28f181727d46d92b3a2 (diff)
downloadlibquotient-32729d9a7519cd2c4cddb0174b8329c6fd4a4a83.tar.gz
libquotient-32729d9a7519cd2c4cddb0174b8329c6fd4a4a83.zip
Update generated files according to gtad/* changes
Diffstat (limited to 'lib/application-service/definitions/protocol.cpp')
-rw-r--r--lib/application-service/definitions/protocol.cpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/lib/application-service/definitions/protocol.cpp b/lib/application-service/definitions/protocol.cpp
deleted file mode 100644
index 8c66aa4d..00000000
--- a/lib/application-service/definitions/protocol.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-/******************************************************************************
- * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
- */
-
-#include "protocol.h"
-
-using namespace Quotient;
-
-void JsonObjectConverter<FieldType>::dumpTo(QJsonObject& jo,
- const FieldType& pod)
-{
- addParam<>(jo, QStringLiteral("regexp"), pod.regexp);
- addParam<>(jo, QStringLiteral("placeholder"), pod.placeholder);
-}
-
-void JsonObjectConverter<FieldType>::fillFrom(const QJsonObject& jo,
- FieldType& result)
-{
- fromJson(jo.value("regexp"_ls), result.regexp);
- fromJson(jo.value("placeholder"_ls), result.placeholder);
-}
-
-void JsonObjectConverter<ProtocolInstance>::dumpTo(QJsonObject& jo,
- const ProtocolInstance& pod)
-{
- addParam<>(jo, QStringLiteral("desc"), pod.desc);
- addParam<IfNotEmpty>(jo, QStringLiteral("icon"), pod.icon);
- addParam<>(jo, QStringLiteral("fields"), pod.fields);
- addParam<>(jo, QStringLiteral("network_id"), pod.networkId);
-}
-
-void JsonObjectConverter<ProtocolInstance>::fillFrom(const QJsonObject& jo,
- ProtocolInstance& result)
-{
- fromJson(jo.value("desc"_ls), result.desc);
- fromJson(jo.value("icon"_ls), result.icon);
- fromJson(jo.value("fields"_ls), result.fields);
- fromJson(jo.value("network_id"_ls), result.networkId);
-}
-
-void JsonObjectConverter<ThirdPartyProtocol>::dumpTo(
- QJsonObject& jo, const ThirdPartyProtocol& pod)
-{
- addParam<>(jo, QStringLiteral("user_fields"), pod.userFields);
- addParam<>(jo, QStringLiteral("location_fields"), pod.locationFields);
- addParam<>(jo, QStringLiteral("icon"), pod.icon);
- addParam<>(jo, QStringLiteral("field_types"), pod.fieldTypes);
- addParam<>(jo, QStringLiteral("instances"), pod.instances);
-}
-
-void JsonObjectConverter<ThirdPartyProtocol>::fillFrom(const QJsonObject& jo,
- ThirdPartyProtocol& result)
-{
- fromJson(jo.value("user_fields"_ls), result.userFields);
- fromJson(jo.value("location_fields"_ls), result.locationFields);
- fromJson(jo.value("icon"_ls), result.icon);
- fromJson(jo.value("field_types"_ls), result.fieldTypes);
- fromJson(jo.value("instances"_ls), result.instances);
-}