GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Namespaces | |
Module | |
RawAPI | |
Test | |
Thread | |
UI | |
Typedefs | |
using | ChannelObjectPtr = SecureUniquePtr< ChannelObject > |
using | SingletonStoragePtr = std::unique_ptr< SingletonStorage, SecureObjectDeleter< SingletonStorage > > |
using | GpgCommandExecutorCallback = std::function< void(int, QString, QString)> |
using | GpgCommandExecutorInteractor = std::function< void(QProcess *)> |
template<typename T > | |
using | SecureUniquePtr = std::unique_ptr< T, SecureObjectDeleter< T > > |
template<typename T > | |
using | KeyRefHandler = std::unique_ptr< T, RefDeleter< T > > |
using | DataObjectPtr = std::shared_ptr< DataObject > |
using | GFError = uint32_t |
using | ByteArray = QByteArray |
using | ByteArrayPtr = std::shared_ptr< ByteArray > |
using | StdBypeArrayPtr = std::shared_ptr< ByteArray > |
using | BypeArrayRef = ByteArray & |
using | ConstBypeArrayRef = const ByteArray & |
using | BypeArrayConstRef = const ByteArray & |
using | StringArgsPtr = std::unique_ptr< std::vector< QString > > |
using | StringArgsRef = std::vector< QString > & |
using | OperaRunnable = std::function< GFError(DataObjectPtr)> |
using | OperationCallback = std::function< void(GFError, DataObjectPtr)> |
using | GpgError = gpgme_error_t |
gpgme error | |
using | GpgErrorCode = gpg_err_code_t |
using | GpgErrorDesc = std::pair< QString, QString > |
using | KeyId = QString |
using | SubkeyId = QString |
using | KeyIdArgsList = std::vector< KeyId > |
using | KeyIdArgsListPtr = std::unique_ptr< KeyIdArgsList > |
using | UIDArgsList = std::vector< QString > |
using | UIDArgsListPtr = std::unique_ptr< UIDArgsList > |
using | SignIdArgsList = std::vector< std::pair< QString, QString > > |
using | SignIdArgsListPtr = std::unique_ptr< SignIdArgsList > |
using | KeyFprArgsListPtr = std::unique_ptr< std::vector< QString > > |
using | KeyArgsList = std::vector< GpgKey > |
using | KeyListPtr = std::shared_ptr< KeyArgsList > |
using | GpgKeyLinkList = std::list< GpgKey > |
using | KeyLinkListPtr = std::unique_ptr< GpgKeyLinkList > |
using | KeyPtr = std::unique_ptr< GpgKey > |
using | KeyPtrArgsList = const std::initializer_list< KeyPtr > |
using | GpgSignMode = gpgme_sig_mode_t |
using | GpgOperaRunnable = std::function< GpgError(DataObjectPtr)> |
using | GpgOperationCallback = std::function< void(GpgError, DataObjectPtr)> |
using | GpgOperationFuture = std::future< std::tuple< GpgError, DataObjectPtr > > |
using | GFCxtWPtr = std::weak_ptr< GpgFrontendContext > |
using | GFCxtSPtr = std::shared_ptr< GpgFrontendContext > |
Enumerations | |
enum | GpgOperation { kENCRYPT , kDECRYPT , kSIGN , kVERIFY , kENCRYPT_SIGN , kDECRYPT_VERIFY } |
Functions | |
auto | StartApplication (const GFCxtWPtr &p_ctx) -> int |
auto | PrintVersion () -> int |
auto | ParseLogLevel (const QString &log_level) -> spdlog::level::level_enum |
auto | RunTest (const GFCxtWPtr &p_ctx) -> int |
auto | CopyData (struct archive *ar, struct archive *aw) -> int |
auto | ArchiveReadCallback (struct archive *, void *client_data, const void **buffer) -> ssize_t |
auto | ArchiveWriteCallback (struct archive *, void *client_data, const void *buffer, size_t length) -> ssize_t |
auto | ArchiveCloseWriteCallback (struct archive *, void *client_data) -> int |
template<typename Derived > | |
auto | ConvertToChannelObjectPtr (std::unique_ptr< Derived, SecureObjectDeleter< Derived >> derivedPtr) -> std::unique_ptr< ChannelObject, SecureObjectDeleter< ChannelObject >> |
auto | GetGlobalFunctionObjectChannelLock (const std::type_info &type, int channel) -> std::mutex & |
auto | GetGlobalFunctionObjectTypeLock (const std::type_info &type) -> std::mutex & |
auto | GetChannelObjectInstance (const std::type_info &type, int channel) -> ChannelObject * |
Get the Instance object. More... | |
auto | CreateChannelObjectInstance (const std::type_info &type, int channel, SecureUniquePtr< ChannelObject > channel_object) -> ChannelObject * |
auto | BuildTaskFromExecCtx (const GpgCommandExecutor::ExecuteContext &context) -> Thread::Task * |
void | DestroyGpgFrontendCore () |
auto | VerifyGpgconfPath (const QFileInfo &gnupg_install_fs_path) -> bool |
auto | VerifyKeyDatabasePath (const QFileInfo &key_database_fs_path) -> bool |
auto | SearchGpgconfPath (const QList< QString > &candidate_paths) -> QString |
auto | SearchKeyDatabasePath (const QList< QString > &candidate_paths) -> QString |
auto | InitGpgME (const QString &gpgconf_path, const QString &gnupg_path) -> bool |
auto | GetGnuPGPathByGpgConf (const QString &gnupg_install_fs_path) -> QString |
auto | DetectGpgConfPath () -> QString |
auto | DetectGnuPGPath (QString gpgconf_path) -> QString |
void | InitGpgFrontendCore (CoreInitArgs) |
void | swap (DataObject &a, DataObject &b) noexcept |
template<typename... Args> | |
auto | TransferParams (Args &&... args) -> std::shared_ptr< DataObject > |
template<typename T > | |
auto | ExtractParams (const std::shared_ptr< DataObject > &d_o, int index) -> T |
auto | GFReadExCb (void *handle, void *buffer, size_t size) -> ssize_t |
auto | GFWriteExCb (void *handle, const void *buffer, size_t size) -> ssize_t |
void | GFReleaseExCb (void *handle) |
auto | RunGpgOperaAsync (const GpgOperaRunnable &runnable, const GpgOperationCallback &callback, const QString &operation, const QString &minial_version) -> Thread::Task::TaskHandler |
auto | RunGpgOperaSync (const GpgOperaRunnable &runnable, const QString &operation, const QString &minial_version) -> std::tuple< GpgError, DataObjectPtr > |
auto | RunIOOperaAsync (const OperaRunnable &runnable, const OperationCallback &callback, const QString &operation) -> Thread::Task::TaskHandler |
auto | RunOperaAsync (const OperaRunnable &runnable, const OperationCallback &callback, const QString &operation) -> Thread::Task::TaskHandler |
void | SetCacheValue (const QString &key, QString value) |
set a temp cache under a certain key | |
auto | GetCacheValue (const QString &key) -> QString |
after get the temp cache, its value will be imediately ease in storage More... | |
void | ResetCacheValue (const QString &) |
imediately ease temp cache in storage More... | |
auto | BeautifyFingerprint (QString fingerprint) -> QString |
auto | CompareSoftwareVersion (const QString &a, const QString &b) -> int |
auto | GetOnlyFileNameWithPath (const QString &path) -> QString |
Get the only file name with path object. More... | |
auto | GetFileExtension (const QString &path) -> QString |
Get the file extension object. More... | |
auto | GetFileSizeByPath (const QString &path, const QString &filename_pattern) -> int64_t |
Get the File Size By Path object. More... | |
auto | GetHumanFriendlyFileSize (int64_t size) -> QString |
Get the Human Readable File Size object. More... | |
void | DeleteAllFilesByPattern (const QString &path, const QString &filename_pattern) |
auto | Trim (QString &s) -> QString |
auto | GetGpgmeErrorString (size_t buffer_size, gpgme_error_t err) -> QString |
auto | GetGpgmeErrorString (gpgme_error_t err) -> QString |
auto | CheckGpgError (GpgError err) -> GpgError |
auto | CheckGpgError2ErrCode (GpgError err, GpgError predict) -> GpgErrorCode |
auto | DescribeGpgErrCode (GpgError err) -> GpgErrorDesc |
auto | CheckGpgError (GpgError err, const QString &) -> GpgError |
auto | TextIsSigned (QString text) -> int |
auto | SetExtensionOfOutputFile (const QString &path, GpgOperation opera, bool ascii) -> QString |
auto | SetExtensionOfOutputFileForArchive (const QString &path, GpgOperation opera, bool ascii) -> QString |
auto GPGFRONTEND_CORE_EXPORT | TextIsSigned (BypeArrayRef text) -> int |
auto | GetFileChecksum (const QString &file_name, QCryptographicHash::Algorithm hashAlgorithm) -> QByteArray |
auto | ReadFile (const QString &file_name, QByteArray &data) -> bool |
read file content More... | |
auto | WriteFile (const QString &file_name, const QByteArray &data) -> bool |
write file content More... | |
auto | ReadFileGFBuffer (const QString &file_name) -> std::tuple< bool, GFBuffer > |
auto | WriteFileGFBuffer (const QString &file_name, GFBuffer data) -> bool |
auto | CalculateHash (const QString &file_path) -> QString |
auto | GetTempFilePath () -> QString |
auto | CreateTempFileAndWriteData (const QString &data) -> QString |
auto | CreateTempFileAndWriteData (const GFBuffer &data) -> QString |
auto | TargetFilePreCheck (const QString &path, bool read) -> std::tuple< bool, QString > |
auto | GetFullExtension (const QString &path) -> QString |
auto GPGFRONTEND_CORE_EXPORT | WriteBufferToFile (const QString &path, const QString &out_buffer) -> bool |
auto GPGFRONTEND_CORE_EXPORT | GetFullExtension (QString path) -> QString |
auto | GetLocalizedDateByTimestamp (time_t timestamp) -> QString |
auto | GetUTCDateByTimestamp (time_t timestamp) -> QString |
auto | GetDefaultLogger () -> std::shared_ptr< spdlog::logger > |
auto | GetCoreLogger () -> std::shared_ptr< spdlog::logger > |
auto | GetLogger (const QString &id) -> std::shared_ptr< spdlog::logger > |
void | SetDefaultLogLevel (spdlog::level::level_enum) |
Set the Default Log Level object. More... | |
void | RegisterAsyncLogger (const QString &id, spdlog::level::level_enum level) |
void | RegisterSyncLogger (const QString &id, spdlog::level::level_enum level) |
auto | SecureMalloc (std::size_t size) -> void * |
auto | SecureRealloc (void *ptr, std::size_t size) -> void * |
void | SecureFree (void *) |
template<typename T > | |
auto | SecureMallocAsType (std::size_t size) -> T * |
template<typename T > | |
auto | SecureReallocAsType (T *ptr, std::size_t size) -> T * |
template<typename T , typename... Args> | |
static auto | SecureCreateObject (Args &&...args) -> T * |
template<typename T > | |
static void | SecureDestroyObject (T *obj) |
template<typename T , typename... Args> | |
static auto | SecureCreateUniqueObject (Args &&...args) -> std::unique_ptr< T, SecureObjectDeleter< T >> |
template<typename T , typename... Args> | |
auto | SecureCreateSharedObject (Args &&...args) -> std::shared_ptr< T > |
template<typename T , typename... Args> | |
auto | SecureCreateQSharedObject (Args &&...args) -> QSharedPointer< T > |
void | InitLoggingSystem (const GFCxtSPtr &ctx) |
void | InitGlobalPathEnv () |
init global PATH env | |
void | InitGlobalBasicalEnv (const GFCxtWPtr &p_ctx, bool gui_mode) |
void | InitLocale () |
setup the locale and load the translations | |
void | ShutdownGlobalBasicalEnv (const GFCxtWPtr &p_ctx) |
Variables | |
constexpr int | kCrashCode = ~0 |
SecureUniquePtr< SingletonStorageCollection > | global_instance = nullptr |
constexpr ssize_t | kDataExchangerSize = 8192 |
constexpr int | kRestartCode = 1000 |
only refresh ui | |
constexpr int | kDeepRestartCode = 1001 |
constexpr int | kGpgFrontendDefaultChannel = 0 |
constexpr int | kGpgFrontendNonAsciiChannel = 2 |
constexpr const char * | PGP_CRYPT_BEGIN = "-----BEGIN PGP MESSAGE-----" |
constexpr const char * | PGP_CRYPT_END = "-----END PGP MESSAGE-----" |
constexpr const char * | PGP_SIGNED_BEGIN |
constexpr const char * | PGP_SIGNED_END = "-----END PGP SIGNATURE-----" |
constexpr const char * | PGP_SIGNATURE_BEGIN |
constexpr const char * | PGP_SIGNATURE_END = "-----END PGP SIGNATURE-----" |
constexpr const char * | PGP_PUBLIC_KEY_BEGIN |
constexpr const char * | PGP_PRIVATE_KEY_BEGIN |
constexpr size_t | kBufferSize = 32 * 1024 |
Copyright (C) 2021 Saturneric eric@ bktu s.com
This file is part of GpgFrontend.
GpgFrontend 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.
GpgFrontend 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 GpgFrontend. If not, see 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 GpgFrontend was modified and released by Saturneric eric@ starting on May 12, 2021. bktu s.com
SPDX-License-Identifier: GPL-3.0-or-later
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::BeautifyFingerprint | ( | QString | fingerprint | ) | -> QString |
fingerprint |
Referenced by GpgFrontend::UI::VerifyKeyDetailBox::create_key_info_grid().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::CalculateHash | ( | const QString & | file_path | ) | -> QString |
err |
Referenced by GpgFrontend::GpgUIDOperator::AddUID(), GpgFrontend::GpgBasicOperator::Decrypt(), GpgFrontend::GpgFileOpera::DecryptArchive(), GpgFrontend::GpgFileOpera::DecryptFile(), GpgFrontend::GpgFileOpera::DecryptFileSync(), GpgFrontend::GpgBasicOperator::DecryptSync(), GpgFrontend::GpgBasicOperator::DecryptVerify(), GpgFrontend::GpgFileOpera::DecryptVerifyArchive(), GpgFrontend::GpgFileOpera::DecryptVerifyFile(), GpgFrontend::GpgFileOpera::DecryptVerifyFileSync(), GpgFrontend::GpgBasicOperator::DecryptVerifySync(), GpgFrontend::GpgKeyOpera::DeleteKeys(), GpgFrontend::GpgFileOpera::EncryptDerectorySymmetric(), GpgFrontend::GpgFileOpera::EncryptDerectorySymmetricSync(), GpgFrontend::GpgFileOpera::EncryptDirectory(), GpgFrontend::GpgFileOpera::EncryptFile(), GpgFrontend::GpgFileOpera::EncryptFileSymmetric(), GpgFrontend::GpgFileOpera::EncryptFileSymmetricSync(), GpgFrontend::GpgFileOpera::EncryptFileSync(), GpgFrontend::GpgBasicOperator::EncryptSign(), GpgFrontend::GpgFileOpera::EncryptSignDirectory(), GpgFrontend::GpgFileOpera::EncryptSignFile(), GpgFrontend::GpgFileOpera::EncryptSignFileSync(), GpgFrontend::GpgBasicOperator::EncryptSignSync(), GpgFrontend::GpgBasicOperator::EncryptSymmetric(), GpgFrontend::GpgBasicOperator::EncryptSymmetricSync(), GpgFrontend::GpgKeyOpera::GenerateKey(), GpgFrontend::KeyPackageOperator::GenerateKeyPackage(), GpgFrontend::GpgKeyOpera::GenerateKeySync(), GpgFrontend::GpgKeyOpera::GenerateKeyWithSubkey(), GpgFrontend::GpgKeyOpera::GenerateKeyWithSubkeySync(), GpgFrontend::GpgKeyOpera::GenerateSubkey(), GpgFrontend::GpgKeyOpera::GenerateSubkeySync(), GpgFrontend::GpgKeyImportExporter::ImportKey(), GpgFrontend::GpgKeyOpera::ModifyTOFUPolicy(), GpgFrontend::GpgKeyManager::RevSign(), GpgFrontend::GpgUIDOperator::RevUID(), GpgFrontend::GpgKeyManager::SetExpire(), GpgFrontend::GpgKeyManager::SetOwnerTrustLevel(), GpgFrontend::GpgUIDOperator::SetPrimaryUID(), GpgFrontend::GpgBasicOperator::SetSigners(), GpgFrontend::GpgBasicOperator::Sign(), GpgFrontend::GpgFileOpera::SignFile(), GpgFrontend::GpgFileOpera::SignFileSync(), GpgFrontend::GpgKeyManager::SignKey(), GpgFrontend::GpgBasicOperator::SignSync(), GpgFrontend::UI::MainWindow::slot_append_selected_keys(), GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key(), GpgFrontend::UI::KeyGenDialog::slot_key_gen_accept(), GpgFrontend::UI::SubkeyGenerateDialog::slot_key_gen_accept(), GpgFrontend::UI::MainWindow::SlotArchiveDecrypt(), GpgFrontend::UI::MainWindow::SlotArchiveDecryptVerify(), GpgFrontend::UI::MainWindow::SlotDecrypt(), GpgFrontend::UI::MainWindow::SlotDecryptVerify(), GpgFrontend::UI::MainWindow::SlotDirectoryEncryptSign(), GpgFrontend::UI::MainWindow::SlotEncrypt(), GpgFrontend::UI::MainWindow::SlotEncryptSign(), GpgFrontend::UI::MainWindow::SlotFileDecrypt(), GpgFrontend::UI::MainWindow::SlotFileDecryptVerify(), GpgFrontend::UI::MainWindow::SlotFileEncrypt(), GpgFrontend::UI::MainWindow::SlotFileEncryptSign(), GpgFrontend::UI::MainWindow::SlotFileSign(), GpgFrontend::UI::MainWindow::SlotFileVerify(), GpgFrontend::UI::MainWindow::SlotSign(), GpgFrontend::UI::MainWindow::SlotVerify(), GpgFrontend::GpgBasicOperator::Verify(), GpgFrontend::GpgFileOpera::VerifyFile(), GpgFrontend::GpgFileOpera::VerifyFileSync(), and GpgFrontend::GpgBasicOperator::VerifySync().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::CheckGpgError | ( | GpgError | gpgmeError, |
const QString & | comment | ||
) | -> GpgError |
gpgmeError | |
comment |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::CheckGpgError2ErrCode | ( | gpgme_error_t | err, |
gpgme_error_t | predict = GPG_ERR_NO_ERROR |
||
) | -> gpg_err_code_t |
err | |
predict |
Referenced by GpgFrontend::UI::CommonUtils::RaiseFailureMessageBox(), and GpgFrontend::UI::CommonUtils::RaiseMessageBox().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::CompareSoftwareVersion | ( | const QString & | a, |
const QString & | b | ||
) | -> int |
a | |
b |
Referenced by GpgFrontend::GpgKeyOpera::ModifyTOFUPolicy(), GpgFrontend::Module::Integrated::VersionCheckingModule::SoftwareVersion::NeedUpgrade(), RunGpgOperaAsync(), and RunGpgOperaSync().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::CreateTempFileAndWriteData | ( | const GFBuffer & | data | ) | -> QString |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::CreateTempFileAndWriteData | ( | const QString & | data | ) | -> QString |
void GPGFRONTEND_CORE_EXPORT GpgFrontend::DeleteAllFilesByPattern | ( | const QString & | path, |
const QString & | filename_pattern | ||
) |
path | |
filename_pattern |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::DescribeGpgErrCode | ( | GpgError | err | ) | -> GpgErrorDesc |
err |
Referenced by GpgFrontend::KeyPackageOperator::GenerateKeyPackage(), GpgFrontend::UI::CommonUtils::RaiseFailureMessageBox(), and GpgFrontend::UI::CommonUtils::RaiseMessageBox().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetCacheValue | ( | const QString & | key | ) | -> QString |
after get the temp cache, its value will be imediately ease in storage
References GpgFrontend::SingletonFunctionObject< CacheManager >::GetInstance().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetChannelObjectInstance | ( | const std::type_info & | type, |
int | channel | ||
) | -> ChannelObject * |
Get the Instance object.
channel |
References GpgFrontend::SingletonStorageCollection::GetInstance().
Referenced by GpgFrontend::SingletonFunctionObject< T >::GetInstance().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetCoreLogger | ( | ) | -> std::shared_ptr< spdlog::logger > |
References GpgFrontend::SingletonFunctionObject< LoggerManager >::GetInstance().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetDefaultLogger | ( | ) | -> std::shared_ptr< spdlog::logger > |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetFileExtension | ( | const QString & | path | ) | -> QString |
Get the file extension object.
path |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetFileSizeByPath | ( | const QString & | path, |
const QString & | filename_pattern | ||
) | -> int64_t |
Get the File Size By Path object.
path | The path of the file |
filename_pattern | The pattern of the file name, e.g. "*.txt" |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetFullExtension | ( | QString | path | ) | -> QString |
path |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetHumanFriendlyFileSize | ( | int64_t | size | ) | -> QString |
Get the Human Readable File Size object.
size |
Referenced by CalculateHash().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetLogger | ( | const QString & | ) | -> std::shared_ptr< spdlog::logger > |
References GpgFrontend::SingletonFunctionObject< LoggerManager >::GetInstance().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetOnlyFileNameWithPath | ( | const QString & | path | ) | -> QString |
Get the only file name with path object.
path |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::GetTempFilePath | ( | ) | -> QString |
Referenced by CreateTempFileAndWriteData().
void GpgFrontend::InitGlobalBasicalEnv | ( | const GFCxtWPtr & | , |
bool | |||
) |
args |
References InitGlobalPathEnv(), InitLocale(), InitLoggingSystem(), GpgFrontend::Module::LoadGpgFrontendModules(), and SetDefaultLogLevel().
void GpgFrontend::InitLoggingSystem | ( | const GFCxtSPtr & | ) |
args |
References RegisterAsyncLogger(), and RegisterSyncLogger().
Referenced by InitGlobalBasicalEnv().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::ReadFile | ( | const QString & | file_name, |
QByteArray & | data | ||
) | -> bool |
read file content
file_name | file name |
data | data read from file |
Referenced by GpgFrontend::DataObjectOperator::DataObjectOperator(), GpgFrontend::KeyPackageOperator::ImportKeyPackage(), ReadFileGFBuffer(), and GpgFrontend::UI::CommonUtils::SlotImportKeyFromFile().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::ReadFileGFBuffer | ( | const QString & | file_name | ) | -> std::tuple< bool, GFBuffer > |
void GPGFRONTEND_CORE_EXPORT GpgFrontend::RegisterAsyncLogger | ( | const QString & | , |
spdlog::level::level_enum | |||
) |
References GpgFrontend::SingletonFunctionObject< LoggerManager >::GetInstance().
Referenced by InitLoggingSystem().
void GPGFRONTEND_CORE_EXPORT GpgFrontend::RegisterSyncLogger | ( | const QString & | , |
spdlog::level::level_enum | |||
) |
References GpgFrontend::SingletonFunctionObject< LoggerManager >::GetInstance().
Referenced by InitLoggingSystem().
void GPGFRONTEND_CORE_EXPORT GpgFrontend::ResetCacheValue | ( | const QString & | ) |
imediately ease temp cache in storage
References GpgFrontend::SingletonFunctionObject< CacheManager >::GetInstance().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::RunGpgOperaAsync | ( | const GpgOperaRunnable & | runnable, |
const GpgOperationCallback & | callback, | ||
const QString & | operation, | ||
const QString & | minial_version | ||
) | -> Thread::Task::TaskHandler |
runnable | |
callback | |
operation | |
minial_version |
References CompareSoftwareVersion(), and GpgFrontend::SingletonFunctionObject< TaskRunnerGetter >::GetInstance().
Referenced by GpgFrontend::GpgBasicOperator::Decrypt(), GpgFrontend::GpgFileOpera::DecryptArchive(), GpgFrontend::GpgFileOpera::DecryptFile(), GpgFrontend::GpgBasicOperator::DecryptVerify(), GpgFrontend::GpgFileOpera::DecryptVerifyArchive(), GpgFrontend::GpgFileOpera::DecryptVerifyFile(), GpgFrontend::GpgFileOpera::EncryptDerectorySymmetric(), GpgFrontend::GpgFileOpera::EncryptDirectory(), GpgFrontend::GpgFileOpera::EncryptFile(), GpgFrontend::GpgFileOpera::EncryptFileSymmetric(), GpgFrontend::GpgBasicOperator::EncryptSign(), GpgFrontend::GpgFileOpera::EncryptSignDirectory(), GpgFrontend::GpgFileOpera::EncryptSignFile(), GpgFrontend::GpgBasicOperator::EncryptSymmetric(), GpgFrontend::GpgKeyImportExporter::ExportAllKeys(), GpgFrontend::GpgKeyImportExporter::ExportKeys(), GpgFrontend::GpgKeyOpera::GenerateKey(), GpgFrontend::GpgKeyOpera::GenerateKeyWithSubkey(), GpgFrontend::GpgKeyOpera::GenerateSubkey(), GpgFrontend::GpgKeyOpera::ModifyPassword(), GpgFrontend::GpgBasicOperator::Sign(), GpgFrontend::GpgFileOpera::SignFile(), GpgFrontend::GpgBasicOperator::Verify(), and GpgFrontend::GpgFileOpera::VerifyFile().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::RunGpgOperaSync | ( | const GpgOperaRunnable & | runnable, |
const QString & | operation, | ||
const QString & | minial_version | ||
) | -> std::tuple< GpgError, DataObjectPtr > |
runnable | |
operation | |
minial_version |
References CompareSoftwareVersion().
Referenced by GpgFrontend::GpgFileOpera::DecryptFileSync(), GpgFrontend::GpgBasicOperator::DecryptSync(), GpgFrontend::GpgFileOpera::DecryptVerifyFileSync(), GpgFrontend::GpgBasicOperator::DecryptVerifySync(), GpgFrontend::GpgFileOpera::EncryptDerectorySymmetricSync(), GpgFrontend::GpgFileOpera::EncryptFileSymmetricSync(), GpgFrontend::GpgFileOpera::EncryptFileSync(), GpgFrontend::GpgFileOpera::EncryptSignFileSync(), GpgFrontend::GpgBasicOperator::EncryptSignSync(), GpgFrontend::GpgBasicOperator::EncryptSymmetricSync(), GpgFrontend::GpgKeyOpera::GenerateKeySync(), GpgFrontend::GpgKeyOpera::GenerateKeyWithSubkeySync(), GpgFrontend::GpgKeyOpera::GenerateSubkeySync(), GpgFrontend::GpgFileOpera::SignFileSync(), GpgFrontend::GpgBasicOperator::SignSync(), GpgFrontend::GpgFileOpera::VerifyFileSync(), and GpgFrontend::GpgBasicOperator::VerifySync().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::RunIOOperaAsync | ( | const OperaRunnable & | runnable, |
const OperationCallback & | callback, | ||
const QString & | operation | ||
) | -> Thread::Task::TaskHandler |
runnable | |
callback | |
operation |
References GpgFrontend::SingletonFunctionObject< TaskRunnerGetter >::GetInstance().
Referenced by GpgFrontend::ArchiveFileOperator::ExtractArchiveFromDataExchanger(), and GpgFrontend::ArchiveFileOperator::NewArchive2DataExchanger().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::RunOperaAsync | ( | const OperaRunnable & | runnable, |
const OperationCallback & | callback, | ||
const QString & | operation | ||
) | -> Thread::Task::TaskHandler |
runnable | |
callback | |
operation |
References GpgFrontend::SingletonFunctionObject< TaskRunnerGetter >::GetInstance().
Referenced by GpgFrontend::KeyPackageOperator::ImportKeyPackage().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::SecureMalloc | ( | std::size_t | ) | -> void * |
auto GpgFrontend::SecureMallocAsType | ( | std::size_t | size | ) | -> T * |
T |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::SecureRealloc | ( | void * | , |
std::size_t | |||
) | -> void * |
auto GpgFrontend::SecureReallocAsType | ( | T * | ptr, |
std::size_t | size | ||
) | -> T * |
void GPGFRONTEND_CORE_EXPORT GpgFrontend::SetDefaultLogLevel | ( | spdlog::level::level_enum | ) |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::SetExtensionOfOutputFile | ( | const QString & | path, |
GpgOperation | opera, | ||
bool | ascii | ||
) | -> QString |
opera | |
ascii |
Referenced by GpgFrontend::UI::MainWindow::SlotFileDecrypt(), GpgFrontend::UI::MainWindow::SlotFileDecryptVerify(), GpgFrontend::UI::MainWindow::SlotFileEncrypt(), GpgFrontend::UI::MainWindow::SlotFileEncryptSign(), and GpgFrontend::UI::MainWindow::SlotFileSign().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::SetExtensionOfOutputFileForArchive | ( | const QString & | path, |
GpgOperation | opera, | ||
bool | ascii | ||
) | -> QString |
path | |
opera | |
ascii |
Referenced by GpgFrontend::UI::MainWindow::SlotArchiveDecrypt(), GpgFrontend::UI::MainWindow::SlotArchiveDecryptVerify(), and GpgFrontend::UI::MainWindow::SlotDirectoryEncryptSign().
void GpgFrontend::ShutdownGlobalBasicalEnv | ( | const GFCxtWPtr & | p_ctx | ) |
auto GpgFrontend::StartApplication | ( | const GFCxtWPtr & | p_ctx | ) | -> int |
argc | |
argv |
internationalisation. loop to restart main window with changed translation when settings change.
References GpgFrontend::UI::InitGpgFrontendUI(), InitLocale(), kRestartCode, GpgFrontend::UI::RunGpgFrontendUI(), and GpgFrontend::Module::ShutdownGpgFrontendModules().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::TargetFilePreCheck | ( | const QString & | path, |
bool | read | ||
) | -> std::tuple< bool, QString > |
path | |
read |
Referenced by GpgFrontend::UI::MainWindow::SlotArchiveDecrypt(), GpgFrontend::UI::MainWindow::SlotArchiveDecryptVerify(), GpgFrontend::UI::MainWindow::SlotDirectoryEncryptSign(), GpgFrontend::UI::MainWindow::SlotFileDecrypt(), GpgFrontend::UI::MainWindow::SlotFileDecryptVerify(), GpgFrontend::UI::MainWindow::SlotFileEncrypt(), GpgFrontend::UI::MainWindow::SlotFileEncryptSign(), GpgFrontend::UI::MainWindow::SlotFileSign(), and GpgFrontend::UI::MainWindow::SlotFileVerify().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::TextIsSigned | ( | BypeArrayRef | text | ) | -> int |
text |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::WriteBufferToFile | ( | const QString & | path, |
const QString & | out_buffer | ||
) | -> bool |
path | |
out_buffer |
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::WriteFile | ( | const QString & | file_name, |
const QByteArray & | data | ||
) | -> bool |
write file content
file_name | file name |
data | data to write to file |
Referenced by CreateTempFileAndWriteData(), GpgFrontend::KeyPackageOperator::GenerateKeyPackage(), GpgFrontend::KeyPackageOperator::GeneratePassphrase(), GpgFrontend::DataObjectOperator::init_app_secure_key(), and WriteFileGFBuffer().
auto GPGFRONTEND_CORE_EXPORT GpgFrontend::WriteFileGFBuffer | ( | const QString & | file_name, |
GFBuffer | data | ||
) | -> bool |
file_name | |
data |
References WriteFile().
Referenced by GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |