2023-02-16 14:01:59 +00:00
\hypertarget { classGpgFrontend_ 1_ 1CacheManager} { } \doxysection { Gpg\+ Frontend\+ ::Cache\+ Manager Class Reference}
\label { classGpgFrontend_ 1_ 1CacheManager} \index { GpgFrontend::CacheManager@{ GpgFrontend::CacheManager} }
2023-08-01 15:09:22 +00:00
Inheritance diagram for Gpg\+ Frontend\+ ::Cache\+ Manager\+ :
\nopagebreak
\begin { figure} [H]
\begin { center}
\leavevmode
\includegraphics [height=550pt] { classGpgFrontend_ 1_ 1CacheManager_ _ inherit_ _ graph}
\end { center}
\end { figure}
2023-02-16 14:01:59 +00:00
Collaboration diagram for Gpg\+ Frontend\+ ::Cache\+ Manager\+ :
\nopagebreak
\begin { figure} [H]
\begin { center}
\leavevmode
2023-08-01 15:09:22 +00:00
\includegraphics [height=550pt] { classGpgFrontend_ 1_ 1CacheManager_ _ coll_ _ graph}
2023-02-16 14:01:59 +00:00
\end { center}
\end { figure}
2023-08-01 15:09:22 +00:00
\doxysubsection * { Public Member Functions}
2023-02-16 14:01:59 +00:00
\begin { DoxyCompactItemize}
\item
2023-08-01 15:09:22 +00:00
\mbox { \hyperlink { classGpgFrontend_ 1_ 1CacheManager_ a311ae4d0cc4f4d9425b44789aea6090a} { Cache\+ Manager} } (int channel=\mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ a50e2b3794d6553f4231eaec72d9d0a50} { Singleton\+ Function\+ Object\+ ::\+ Get\+ Default\+ Channel} } ())
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ af61eef3700ff6a6790a42269b66e20e4} \label { classGpgFrontend_ 1_ 1CacheManager_ af61eef3700ff6a6790a42269b66e20e4} }
void { \bfseries Save\+ Cache} (std\+ ::string key, const nlohmann\+ ::json \& value, bool flush=false)
2023-02-16 14:01:59 +00:00
\item
2023-08-01 15:09:22 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ a1176521fa6f3df1ed760c18af53ebcf5} \label { classGpgFrontend_ 1_ 1CacheManager_ a1176521fa6f3df1ed760c18af53ebcf5} }
nlohmann\+ ::json { \bfseries Load\+ Cache} (std\+ ::string key)
2023-02-16 14:01:59 +00:00
\item
2023-08-01 15:09:22 +00:00
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ af1ee53c1ecc4b0835568ef4af34c1595} \label { classGpgFrontend_ 1_ 1CacheManager_ af1ee53c1ecc4b0835568ef4af34c1595} }
nlohmann\+ ::json { \bfseries Load\+ Cache} (std\+ ::string key, nlohmann\+ ::json default\+ \_ \+ value)
2023-02-16 14:01:59 +00:00
\end { DoxyCompactItemize}
2023-08-01 15:09:22 +00:00
\doxysubsection * { Private Member Functions}
\begin { DoxyCompactItemize}
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ a9dd86b465c144340312956366b989cee} \label { classGpgFrontend_ 1_ 1CacheManager_ a9dd86b465c144340312956366b989cee} }
std\+ ::string { \bfseries get\+ \_ \+ data\+ \_ \+ object\+ \_ \+ key} (std\+ ::string key)
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ a6e05751e92f8f0011bfcb755ccbb8003} \label { classGpgFrontend_ 1_ 1CacheManager_ a6e05751e92f8f0011bfcb755ccbb8003} }
nlohmann\+ ::json { \bfseries load\+ \_ \+ cache\+ \_ \+ storage} (std\+ ::string key, nlohmann\+ ::json default\+ \_ \+ value)
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ a8fdeea326fe6ba46d02ac2b9fbdde58c} \label { classGpgFrontend_ 1_ 1CacheManager_ a8fdeea326fe6ba46d02ac2b9fbdde58c} }
void { \bfseries load\+ \_ \+ all\+ \_ \+ cache\+ \_ \+ storage} ()
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ a2cce51cf81b62dfb10b2195a0375f9b2} \label { classGpgFrontend_ 1_ 1CacheManager_ a2cce51cf81b62dfb10b2195a0375f9b2} }
void { \bfseries flush\+ \_ \+ cache\+ \_ \+ storage} ()
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ ab974c30ff13b899ca647d6ff97f7c34d} \label { classGpgFrontend_ 1_ 1CacheManager_ ab974c30ff13b899ca647d6ff97f7c34d} }
void { \bfseries register\+ \_ \+ cache\+ \_ \+ key} (std\+ ::string key)
\end { DoxyCompactItemize}
\doxysubsection * { Private Attributes}
\begin { DoxyCompactItemize}
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ aec8664877393054794453f56373520cc} \label { classGpgFrontend_ 1_ 1CacheManager_ aec8664877393054794453f56373520cc} }
\mbox { \hyperlink { classGpgFrontend_ 1_ 1ThreadSafeMap} { Thread\+ Safe\+ Map} } $ < $ std\+ ::string, nlohmann\+ ::json $ > $ { \bfseries cache\+ \_ \+ storage\+ \_ \+ }
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ af961e0b1f041bac37d5c16929da9d515} \label { classGpgFrontend_ 1_ 1CacheManager_ af961e0b1f041bac37d5c16929da9d515} }
nlohmann\+ ::json { \bfseries key\+ \_ \+ storage\+ \_ \+ }
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ af4d6094e1c9fc5487e174ab876925a2b} \label { classGpgFrontend_ 1_ 1CacheManager_ af4d6094e1c9fc5487e174ab876925a2b} }
QTimer $ \ast $ { \bfseries m\+ \_ \+ timer\+ \_ \+ }
\item
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ a10682dce9d34272f3b99d1abbb48fb0d} \label { classGpgFrontend_ 1_ 1CacheManager_ a10682dce9d34272f3b99d1abbb48fb0d} }
const std\+ ::string { \bfseries drk\+ \_ \+ key\+ \_ \+ } = \char `\" { } \+ \_ \+ \+ \_ \+ cache\+ \_ \+ manage\+ \_ \+ data\+ \_ \+ register\+ \_ \+ key\+ \_ \+ list\char `\" { }
\end { DoxyCompactItemize}
\doxysubsection * { Additional Inherited Members}
2023-02-16 14:01:59 +00:00
2023-08-01 15:09:22 +00:00
\doxysubsection { Constructor \& Destructor Documentation}
\mbox { \Hypertarget { classGpgFrontend_ 1_ 1CacheManager_ a311ae4d0cc4f4d9425b44789aea6090a} \label { classGpgFrontend_ 1_ 1CacheManager_ a311ae4d0cc4f4d9425b44789aea6090a} }
\index { GpgFrontend::CacheManager@{ GpgFrontend::CacheManager} !CacheManager@{ CacheManager} }
\index { CacheManager@{ CacheManager} !GpgFrontend::CacheManager@{ GpgFrontend::CacheManager} }
\doxysubsubsection { \texorpdfstring { CacheManager()} { CacheManager()} }
{ \footnotesize \ttfamily Gpg\+ Frontend\+ ::\+ Cache\+ Manager\+ ::\+ Cache\+ Manager (\begin { DoxyParamCaption} \item [{int}] { channel = { \ttfamily \mbox { \hyperlink { classGpgFrontend_ 1_ 1SingletonFunctionObject_ a50e2b3794d6553f4231eaec72d9d0a50} { Singleton\+ Function\+ Object\+ ::\+ Get\+ Default\+ Channel} } ()} } \end { DoxyParamCaption} )}
2023-02-16 14:01:59 +00:00
Copyright (C) 2021 Saturneric
This file is part of \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } .
\mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } is free software\+ : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
\mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } . If not, see \href { https://www.gnu.org/licenses/} { \texttt { https\+ ://www.\+ gnu.\+ org/licenses/} } .
The initial version of the source code is inherited from the gpg4usb project, which is under GPL-\/ 3.\+ 0-\/ or-\/ later.
All the source code of \mbox { \hyperlink { namespaceGpgFrontend} { Gpg\+ Frontend} } was modified and released by Saturneric\href { mailto:eric@bktus.com} { \texttt { eric@bktus.\+ com} } starting on May 12, 2021.
SPDX-\/ \+ License-\/ \+ Identifier\+ : GPL-\/ 3.\+ 0-\/ or-\/ later
The documentation for this class was generated from the following files\+ :\begin { DoxyCompactItemize}
\item
src/core/function/Cache\+ Manager.\+ h\item
src/core/function/Cache\+ Manager.\+ cpp\end { DoxyCompactItemize}