GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgUtils.h
1 
29 #pragma once
30 
31 #include "core/function/result_analyse/GpgResultAnalyse.h"
32 #include "core/typedef/CoreTypedef.h"
33 #include "core/typedef/GpgTypedef.h"
34 
35 namespace GpgFrontend {
36 
37 // Error Info Printer
38 
45 auto GPGFRONTEND_CORE_EXPORT CheckGpgError(GpgError err) -> GpgError;
46 
54 auto GPGFRONTEND_CORE_EXPORT CheckGpgError(GpgError gpgmeError,
55  const QString& comment) -> GpgError;
56 
64 auto GPGFRONTEND_CORE_EXPORT CheckGpgError2ErrCode(
65  gpgme_error_t err, gpgme_error_t predict = GPG_ERR_NO_ERROR)
66  -> gpg_err_code_t;
67 
74 auto GPGFRONTEND_CORE_EXPORT DescribeGpgErrCode(GpgError err) -> GpgErrorDesc;
75 
76 // Check
77 
84 auto GPGFRONTEND_CORE_EXPORT TextIsSigned(BypeArrayRef text) -> int;
85 
93 auto GPGFRONTEND_CORE_EXPORT SetExtensionOfOutputFile(const QString& path,
94  GpgOperation opera,
95  bool ascii) -> QString;
96 
105 auto GPGFRONTEND_CORE_EXPORT SetExtensionOfOutputFileForArchive(
106  const QString& path, GpgOperation opera, bool ascii) -> QString;
107 
108 } // namespace GpgFrontend
Definition: app.cpp:39
gpgme_error_t GpgError
gpgme error
Definition: GpgTypedef.h:42
auto SetExtensionOfOutputFileForArchive(const QString &path, GpgOperation opera, bool ascii) -> QString
Definition: GpgUtils.cpp:137
auto CheckGpgError(GpgError err) -> GpgError
Definition: GpgUtils.cpp:50
auto DescribeGpgErrCode(GpgError err) -> GpgErrorDesc
Definition: GpgUtils.cpp:76
auto SetExtensionOfOutputFile(const QString &path, GpgOperation opera, bool ascii) -> QString
Definition: GpgUtils.cpp:100
auto CheckGpgError2ErrCode(GpgError err, GpgError predict) -> GpgErrorCode
Definition: GpgUtils.cpp:60