GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
CoreCommonUtil.h
1
27
#ifndef GPGFRONTEND_CORECOMMONUTIL_H
28
#define GPGFRONTEND_CORECOMMONUTIL_H
29
30
#include <string>
31
32
#include "core/GpgFrontendCore.h"
33
34
namespace
GpgFrontend
{
35
36
class
GPGFRONTEND_CORE_EXPORT
CoreCommonUtil
:
public
QObject {
37
Q_OBJECT
38
public
:
43
static
CoreCommonUtil
*GetInstance();
44
49
CoreCommonUtil
() =
default
;
50
55
void
SetTempCacheValue(
const
std::string &,
const
std::string &);
56
63
std::string GetTempCacheValue(
const
std::string &);
64
70
void
ResetTempCacheValue(
const
std::string &);
71
72
signals:
73
78
void
SignalGnupgNotInstall();
79
80
private
:
81
static
std::unique_ptr<CoreCommonUtil> instance_;
82
std::map<std::string, std::string> temp_cache_;
//<
83
};
84
85
}
// namespace GpgFrontend
86
87
#endif
// GPGFRONTEND_CORECOMMONUTIL_H
GpgFrontend::CoreCommonUtil
Definition:
CoreCommonUtil.h:36
GpgFrontend
Definition:
CoreCommonUtil.cpp:31
src
core
common
CoreCommonUtil.h
Generated by
1.9.1