aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/basic/SingletonStorageCollection.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-03 20:25:21 +0000
committersaturneric <[email protected]>2023-12-03 20:25:21 +0000
commit054e6e28cca2517dda2319ef683314b3318c39a6 (patch)
treeae9ff4a9fe280f3640ca249bad45ab250cfd1610 /src/core/function/basic/SingletonStorageCollection.h
parentfix: slove issues in key/subkey generation (diff)
downloadGpgFrontend-054e6e28cca2517dda2319ef683314b3318c39a6.tar.gz
GpgFrontend-054e6e28cca2517dda2319ef683314b3318c39a6.zip
feat: standarized and speed up app env loading process
Diffstat (limited to 'src/core/function/basic/SingletonStorageCollection.h')
-rw-r--r--src/core/function/basic/SingletonStorageCollection.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/core/function/basic/SingletonStorageCollection.h b/src/core/function/basic/SingletonStorageCollection.h
index b96bff3d..70b91cb9 100644
--- a/src/core/function/basic/SingletonStorageCollection.h
+++ b/src/core/function/basic/SingletonStorageCollection.h
@@ -28,8 +28,6 @@
#pragma once
-#include <core/function/SecureMemoryAllocator.h>
-
#include "core/function/SecureMemoryAllocator.h"
namespace GpgFrontend {
@@ -41,6 +39,18 @@ using SingletonStoragePtr =
class GPGFRONTEND_CORE_EXPORT SingletonStorageCollection {
public:
/**
+ * @brief
+ *
+ */
+ SingletonStorageCollection() noexcept;
+
+ /**
+ * @brief
+ *
+ */
+ ~SingletonStorageCollection();
+
+ /**
* @brief Get the Instance object
*
* @return SingletonStorageCollection*
@@ -48,6 +58,12 @@ class GPGFRONTEND_CORE_EXPORT SingletonStorageCollection {
static auto GetInstance(bool force_refresh) -> SingletonStorageCollection*;
/**
+ * @brief
+ *
+ */
+ static void Destroy();
+
+ /**
* @brief Get the Singleton Storage object
*
* @param singleton_function_object
@@ -58,18 +74,6 @@ class GPGFRONTEND_CORE_EXPORT SingletonStorageCollection {
private:
class Impl;
std::unique_ptr<Impl> p_;
-
- /**
- * @brief
- *
- */
- SingletonStorageCollection() noexcept;
-
- /**
- * @brief
- *
- */
- ~SingletonStorageCollection();
};
} // namespace GpgFrontend \ No newline at end of file