318 lines
18 KiB
HTML
318 lines
18 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>GpgFrontend Project: GpgFrontend::CacheManager::Impl Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">GpgFrontend Project
|
|
</div>
|
|
<div id="projectbrief">A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('classGpgFrontend_1_1CacheManager_1_1Impl.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pri-slots">Private Slots</a> |
|
|
<a href="#pri-methods">Private Member Functions</a> |
|
|
<a href="#pri-static-methods">Static Private Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="classGpgFrontend_1_1CacheManager_1_1Impl-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">GpgFrontend::CacheManager::Impl Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="dynheader">
|
|
Inheritance diagram for GpgFrontend::CacheManager::Impl:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classGpgFrontend_1_1CacheManager_1_1Impl__inherit__graph.png" border="0" usemap="#aGpgFrontend_1_1CacheManager_1_1Impl_inherit__map" alt="Inheritance graph"/></div>
|
|
<map name="aGpgFrontend_1_1CacheManager_1_1Impl_inherit__map" id="aGpgFrontend_1_1CacheManager_1_1Impl_inherit__map">
|
|
<area shape="rect" title=" " alt="" coords="5,131,216,472"/>
|
|
<area shape="rect" title=" " alt="" coords="73,5,148,83"/>
|
|
</map>
|
|
</div>
|
|
<div class="dynheader">
|
|
Collaboration diagram for GpgFrontend::CacheManager::Impl:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classGpgFrontend_1_1CacheManager_1_1Impl__coll__graph.png" border="0" usemap="#aGpgFrontend_1_1CacheManager_1_1Impl_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="aGpgFrontend_1_1CacheManager_1_1Impl_coll__map" id="aGpgFrontend_1_1CacheManager_1_1Impl_coll__map">
|
|
<area shape="rect" title=" " alt="" coords="5,1013,216,1340"/>
|
|
<area shape="rect" title=" " alt="" coords="52,807,127,885"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1ThreadSafeMap.html" title=" " alt="" coords="151,741,366,951"/>
|
|
<area shape="rect" href="classGpgFrontend_1_1ThreadSafeMap.html" title=" " alt="" coords="151,499,366,679"/>
|
|
<area shape="rect" title=" " alt="" coords="143,329,286,407"/>
|
|
<area shape="rect" title=" " alt="" coords="311,315,561,421"/>
|
|
<area shape="rect" title=" " alt="" coords="357,145,515,223"/>
|
|
<area shape="rect" title=" " alt="" coords="417,5,455,83"/>
|
|
</map>
|
|
</div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:af089be0439141989703ff120f63570e8"><td class="memItemLeft" align="right" valign="top"><a id="af089be0439141989703ff120f63570e8"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SaveDurableCache</b> (QString key, const QJsonDocument &value, bool flush)</td></tr>
|
|
<tr class="separator:af089be0439141989703ff120f63570e8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac0513c16e64d12893a04f0aab0e85e05"><td class="memItemLeft" align="right" valign="top"><a id="ac0513c16e64d12893a04f0aab0e85e05"></a>
|
|
auto </td><td class="memItemRight" valign="bottom"><b>LoadDurableCache</b> (const QString &key) -> QJsonDocument</td></tr>
|
|
<tr class="separator:ac0513c16e64d12893a04f0aab0e85e05"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab4f673f09f3dd8f80d33cba0bf56e8f5"><td class="memItemLeft" align="right" valign="top"><a id="ab4f673f09f3dd8f80d33cba0bf56e8f5"></a>
|
|
auto </td><td class="memItemRight" valign="bottom"><b>LoadDurableCache</b> (const QString &key, QJsonDocument default_value) -> QJsonDocument</td></tr>
|
|
<tr class="separator:ab4f673f09f3dd8f80d33cba0bf56e8f5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad70fe4f1e2b94c36421586355fa2b506"><td class="memItemLeft" align="right" valign="top"><a id="ad70fe4f1e2b94c36421586355fa2b506"></a>
|
|
auto </td><td class="memItemRight" valign="bottom"><b>ResetDurableCache</b> (const QString &key) -> bool</td></tr>
|
|
<tr class="separator:ad70fe4f1e2b94c36421586355fa2b506"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa3fb1ad86a073a43af99e307d9a0402f"><td class="memItemLeft" align="right" valign="top"><a id="aa3fb1ad86a073a43af99e307d9a0402f"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>FlushCacheStorage</b> ()</td></tr>
|
|
<tr class="separator:aa3fb1ad86a073a43af99e307d9a0402f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afe2243c83449e960e73f3dca5bb82776"><td class="memItemLeft" align="right" valign="top"><a id="afe2243c83449e960e73f3dca5bb82776"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SaveCache</b> (const QString &key, QString value)</td></tr>
|
|
<tr class="separator:afe2243c83449e960e73f3dca5bb82776"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8119a9c5a1bdaafc700fdfb6eb2bdc14"><td class="memItemLeft" align="right" valign="top"><a id="a8119a9c5a1bdaafc700fdfb6eb2bdc14"></a>
|
|
auto </td><td class="memItemRight" valign="bottom"><b>LoadCache</b> (const QString &key) -> QString</td></tr>
|
|
<tr class="separator:a8119a9c5a1bdaafc700fdfb6eb2bdc14"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af9b917839231de2427ccf5b0f640c425"><td class="memItemLeft" align="right" valign="top"><a id="af9b917839231de2427ccf5b0f640c425"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>ResetCache</b> (const QString &key)</td></tr>
|
|
<tr class="separator:af9b917839231de2427ccf5b0f640c425"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
|
|
Private Slots</h2></td></tr>
|
|
<tr class="memitem:ae6cae5032706bc243d034725d5f870b1"><td class="memItemLeft" align="right" valign="top"><a id="ae6cae5032706bc243d034725d5f870b1"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>slot_flush_cache_storage</b> ()</td></tr>
|
|
<tr class="separator:ae6cae5032706bc243d034725d5f870b1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
|
|
Private Member Functions</h2></td></tr>
|
|
<tr class="memitem:a397bfeb673d2165d16489c2bfce26104"><td class="memItemLeft" align="right" valign="top"><a id="a397bfeb673d2165d16489c2bfce26104"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>load_all_cache_storage</b> ()</td></tr>
|
|
<tr class="separator:a397bfeb673d2165d16489c2bfce26104"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab8723181823b8c3c3b1dd5f333c0f196"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1CacheManager_1_1Impl.html#ab8723181823b8c3c3b1dd5f333c0f196">register_cache_key</a> (const QString &key)</td></tr>
|
|
<tr class="separator:ab8723181823b8c3c3b1dd5f333c0f196"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
|
|
Static Private Member Functions</h2></td></tr>
|
|
<tr class="memitem:a2e30e1288e5e7bff4cb54a9723fbcaeb"><td class="memItemLeft" align="right" valign="top">static auto </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1CacheManager_1_1Impl.html#a2e30e1288e5e7bff4cb54a9723fbcaeb">get_data_object_key</a> (const QString &key) -> QString</td></tr>
|
|
<tr class="memdesc:a2e30e1288e5e7bff4cb54a9723fbcaeb"><td class="mdescLeft"> </td><td class="mdescRight">Get the data object key object. <a href="classGpgFrontend_1_1CacheManager_1_1Impl.html#a2e30e1288e5e7bff4cb54a9723fbcaeb">More...</a><br /></td></tr>
|
|
<tr class="separator:a2e30e1288e5e7bff4cb54a9723fbcaeb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abf1dd239b38bc2eceb4de984b4f7d13a"><td class="memItemLeft" align="right" valign="top">static auto </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1CacheManager_1_1Impl.html#abf1dd239b38bc2eceb4de984b4f7d13a">load_cache_storage</a> (const QString &key, QJsonDocument default_value) -> QJsonDocument</td></tr>
|
|
<tr class="separator:abf1dd239b38bc2eceb4de984b4f7d13a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
|
|
Private Attributes</h2></td></tr>
|
|
<tr class="memitem:a5da9c8bd064b2576954a1ff245b8b2de"><td class="memItemLeft" align="right" valign="top"><a id="a5da9c8bd064b2576954a1ff245b8b2de"></a>
|
|
QCache< QString, QString > </td><td class="memItemRight" valign="bottom"><b>runtime_cache_storage_</b></td></tr>
|
|
<tr class="separator:a5da9c8bd064b2576954a1ff245b8b2de"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6507681ca4687ea10fab576e525c12ac"><td class="memItemLeft" align="right" valign="top"><a id="a6507681ca4687ea10fab576e525c12ac"></a>
|
|
<a class="el" href="classGpgFrontend_1_1ThreadSafeMap.html">ThreadSafeMap</a>< QString, QJsonDocument > </td><td class="memItemRight" valign="bottom"><b>durable_cache_storage_</b></td></tr>
|
|
<tr class="separator:a6507681ca4687ea10fab576e525c12ac"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a701c3151be61c70322c38c6dce868c34"><td class="memItemLeft" align="right" valign="top"><a id="a701c3151be61c70322c38c6dce868c34"></a>
|
|
QJsonArray </td><td class="memItemRight" valign="bottom"><b>key_storage_</b></td></tr>
|
|
<tr class="separator:a701c3151be61c70322c38c6dce868c34"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa8c5219887b6268ea76d0e782c13dc33"><td class="memItemLeft" align="right" valign="top"><a id="aa8c5219887b6268ea76d0e782c13dc33"></a>
|
|
QTimer * </td><td class="memItemRight" valign="bottom"><b>flush_timer_</b></td></tr>
|
|
<tr class="separator:aa8c5219887b6268ea76d0e782c13dc33"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a000b765f73f6b796d4207d0ab59f4c20"><td class="memItemLeft" align="right" valign="top"><a id="a000b765f73f6b796d4207d0ab59f4c20"></a>
|
|
const QString </td><td class="memItemRight" valign="bottom"><b>drk_key_</b> = "__cache_manage_data_register_key_list"</td></tr>
|
|
<tr class="separator:a000b765f73f6b796d4207d0ab59f4c20"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a2e30e1288e5e7bff4cb54a9723fbcaeb"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2e30e1288e5e7bff4cb54a9723fbcaeb">◆ </a></span>get_data_object_key()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static auto GpgFrontend::CacheManager::Impl::get_data_object_key </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const QString & </td>
|
|
<td class="paramname"><em>key</em></td><td>)</td>
|
|
<td> -> QString </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the data object key object. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">key</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>QString </dd></dl>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1CacheManager_1_1Impl.html#abf1dd239b38bc2eceb4de984b4f7d13a">load_cache_storage()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abf1dd239b38bc2eceb4de984b4f7d13a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abf1dd239b38bc2eceb4de984b4f7d13a">◆ </a></span>load_cache_storage()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static auto GpgFrontend::CacheManager::Impl::load_cache_storage </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const QString & </td>
|
|
<td class="paramname"><em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">QJsonDocument </td>
|
|
<td class="paramname"><em>default_value</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> -> QJsonDocument </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">key</td><td></td></tr>
|
|
<tr><td class="paramname">default_value</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>QJsonObject </dd></dl>
|
|
|
|
<p class="reference">References <a class="el" href="classGpgFrontend_1_1CacheManager_1_1Impl.html#a2e30e1288e5e7bff4cb54a9723fbcaeb">get_data_object_key()</a>, and <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#ac963fee992753970bfb5c81608d4070f">GpgFrontend::SingletonFunctionObject< DataObjectOperator >::GetInstance()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab8723181823b8c3c3b1dd5f333c0f196"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab8723181823b8c3c3b1dd5f333c0f196">◆ </a></span>register_cache_key()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GpgFrontend::CacheManager::Impl::register_cache_key </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const QString & </td>
|
|
<td class="paramname"><em>key</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">key</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>src/core/function/CacheManager.cpp</li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a></li><li class="navelem"><a class="el" href="classGpgFrontend_1_1CacheManager.html">CacheManager</a></li><li class="navelem"><a class="el" href="classGpgFrontend_1_1CacheManager_1_1Impl.html">Impl</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|