diff options
author | saturneric <[email protected]> | 2024-01-15 09:22:32 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-15 09:22:32 +0000 |
commit | 6c632d70b391f8b317c68f7db8cfd217f9370995 (patch) | |
tree | 4136eb7164d9f910527c0392d12bd4854a2fdcff /src/core/function/CacheManager.h | |
parent | refactor: remove boost and use QString instead of std::filesystem::path (diff) | |
download | GpgFrontend-6c632d70b391f8b317c68f7db8cfd217f9370995.tar.gz GpgFrontend-6c632d70b391f8b317c68f7db8cfd217f9370995.zip |
feat: use qt json support components in data object and infos gathering module
Diffstat (limited to 'src/core/function/CacheManager.h')
-rw-r--r-- | src/core/function/CacheManager.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/function/CacheManager.h b/src/core/function/CacheManager.h index 9e95096d..96496648 100644 --- a/src/core/function/CacheManager.h +++ b/src/core/function/CacheManager.h @@ -28,8 +28,6 @@ #pragma once -#include <nlohmann/json.hpp> - #include "core/function/basic/GpgFunctionObject.h" namespace GpgFrontend { @@ -42,11 +40,11 @@ class GPGFRONTEND_CORE_EXPORT CacheManager ~CacheManager() override; - void SaveCache(QString key, const nlohmann::json& value, bool flush = false); + void SaveCache(QString key, const QJsonDocument& value, bool flush = false); - auto LoadCache(QString key) -> nlohmann::json; + auto LoadCache(QString key) -> QJsonDocument; - auto LoadCache(QString key, nlohmann::json default_value) -> nlohmann::json; + auto LoadCache(QString key, QJsonDocument default_value) -> QJsonDocument; auto ResetCache(QString key) -> bool; |