GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgConstants.h
1 
29 #pragma once
30 
31 namespace GpgFrontend {
32 
33 constexpr int kNonRestartCode = 0;
34 constexpr int kRestartCode = 1000;
35 constexpr int kDeepRestartCode = 1001; // refresh core and ui
36 
37 // Channels
38 constexpr int kGpgFrontendDefaultChannel = 0;
39 constexpr int kGpgFrontendNonAsciiChannel = 2;
40 
41 // HEADER
42 constexpr const char* PGP_CRYPT_BEGIN = "-----BEGIN PGP MESSAGE-----";
43 constexpr const char* PGP_CRYPT_END = "-----END PGP MESSAGE-----";
44 constexpr const char* PGP_SIGNED_BEGIN =
45  "-----BEGIN PGP SIGNED MESSAGE-----";
46 constexpr const char* PGP_SIGNED_END = "-----END PGP SIGNATURE-----";
47 constexpr const char* PGP_SIGNATURE_BEGIN =
48  "-----BEGIN PGP SIGNATURE-----";
49 constexpr const char* PGP_SIGNATURE_END = "-----END PGP SIGNATURE-----";
50 constexpr const char* PGP_PUBLIC_KEY_BEGIN =
51  "-----BEGIN PGP PUBLIC KEY BLOCK-----";
52 constexpr const char* PGP_PRIVATE_KEY_BEGIN =
53  "-----BEGIN PGP PRIVATE KEY BLOCK-----";
54 
55 // MODULE ID
56 const QString kGnuPGInfoGatheringModuleID =
57  "com.bktus.gpgfrontend.module.gnupg_info_gathering";
58 const QString kVersionCheckingModuleID =
59  "com.bktus.gpgfrontend.module.version_checking";
60 
61 } // namespace GpgFrontend
Definition: app.cpp:39
constexpr int kRestartCode
only refresh ui
Definition: GpgConstants.h:34