aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-05-21 00:29:08 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:56:11 +0100
commit265f105d77bf91c127c363b0c880357f91df7db4 (patch)
tree697c46084064a1eb21b1ef0447f913fd17ca0a48 /lib/csapi
parent5d3fe54fdfae4b74272a80c4bbe8f5d8a3e4c5cb (diff)
downloadlibquotient-265f105d77bf91c127c363b0c880357f91df7db4.tar.gz
libquotient-265f105d77bf91c127c363b0c880357f91df7db4.zip
Cache deviceslist across restarts
Diffstat (limited to 'lib/csapi')
-rw-r--r--lib/csapi/keys.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/csapi/keys.h b/lib/csapi/keys.h
index 7db09e8d..b1cc640c 100644
--- a/lib/csapi/keys.h
+++ b/lib/csapi/keys.h
@@ -166,6 +166,11 @@ struct JsonObjectConverter<QueryKeysJob::DeviceInformation> {
fillFromJson<DeviceKeys>(jo, result);
fromJson(jo.value("unsigned"_ls), result.unsignedData);
}
+ static void dumpTo(QJsonObject& jo, const QueryKeysJob::DeviceInformation& deviceInformation)
+ {
+ jo = toJson<DeviceKeys>(deviceInformation);
+ //addParam<>(jo, "unsigned"_ls, deviceInformation.unsignedData);
+ }
};
/*! \brief Claim one-time encryption keys.