From 265f105d77bf91c127c363b0c880357f91df7db4 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 21 May 2021 00:29:08 +0200 Subject: Cache deviceslist across restarts --- lib/csapi/keys.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/csapi') 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 { fillFromJson(jo, result); fromJson(jo.value("unsigned"_ls), result.unsignedData); } + static void dumpTo(QJsonObject& jo, const QueryKeysJob::DeviceInformation& deviceInformation) + { + jo = toJson(deviceInformation); + //addParam<>(jo, "unsigned"_ls, deviceInformation.unsignedData); + } }; /*! \brief Claim one-time encryption keys. -- cgit v1.2.3