Changeset View
Changeset View
Standalone View
Standalone View
src/utils/gnupg-helper.h
Show All 28 Lines | 1 | /* -*- mode: c++; c-basic-offset:4 -*- | |||
---|---|---|---|---|---|
29 | you do not wish to do so, delete this exception statement from | 29 | you do not wish to do so, delete this exception statement from | ||
30 | your version. | 30 | your version. | ||
31 | */ | 31 | */ | ||
32 | 32 | | |||
33 | #ifndef __KLEOPATRA_GNUPGHELPER_H__ | 33 | #ifndef __KLEOPATRA_GNUPGHELPER_H__ | ||
34 | #define __KLEOPATRA_GNUPGHELPER_H__ | 34 | #define __KLEOPATRA_GNUPGHELPER_H__ | ||
35 | 35 | | |||
36 | #include <gpgme++/engineinfo.h> | 36 | #include <gpgme++/engineinfo.h> | ||
37 | #include <gpgme++/key.h> | ||||
38 | | ||||
39 | /* Support compilation with GPGME older than 1.9. */ | ||||
40 | #include <gpgme++/gpgmepp_version.h> | ||||
41 | #if GPGMEPP_VERSION >= 0x10900 | ||||
42 | # define GPGME_HAS_KEY_IS_DEVS | ||||
43 | #endif | ||||
44 | | ||||
45 | /* Does the given object comply with DE_VS? This macro can be used to | ||||
46 | ensure that we can still build against older versions of GPGME | ||||
47 | without cluttering the code with preprocessor conditionals. */ | ||||
48 | #ifdef GPGME_HAS_KEY_IS_DEVS | ||||
49 | # define IS_DE_VS(x) (x).isDeVs() | ||||
50 | #else | ||||
51 | # define IS_DE_VS(x) 0 | ||||
aheinecke: false instead of 0 please and tabs -> spaces. | |||||
52 | #endif | ||||
37 | 53 | | |||
38 | class QString; | 54 | class QString; | ||
39 | class QStringList; | 55 | class QStringList; | ||
40 | 56 | | |||
41 | namespace Kleo | 57 | namespace Kleo | ||
42 | { | 58 | { | ||
43 | 59 | | |||
44 | QString gnupgHomeDirectory(); | 60 | QString gnupgHomeDirectory(); | ||
Show All 9 Lines | |||||
54 | const QString& paperKeyInstallPath(); | 70 | const QString& paperKeyInstallPath(); | ||
55 | 71 | | |||
56 | QStringList gnupgFileWhitelist(); | 72 | QStringList gnupgFileWhitelist(); | ||
57 | 73 | | |||
58 | int makeGnuPGError(int code); | 74 | int makeGnuPGError(int code); | ||
59 | 75 | | |||
60 | bool engineIsVersion(int major, int minor, int patch, GpgME::Engine = GpgME::GpgConfEngine); | 76 | bool engineIsVersion(int major, int minor, int patch, GpgME::Engine = GpgME::GpgConfEngine); | ||
61 | bool haveKeyserverConfigured(); | 77 | bool haveKeyserverConfigured(); | ||
78 | bool gpgComplianceP(const char *mode); | ||||
79 | enum GpgME::UserID::Validity keyValidity(const GpgME::Key &key); | ||||
62 | } | 80 | } | ||
63 | 81 | | |||
64 | #endif // __KLEOPATRA_GNUPGHELPER_H__ | 82 | #endif // __KLEOPATRA_GNUPGHELPER_H__ |
false instead of 0 please and tabs -> spaces.