diff options
author | Andre Heinecke <[email protected]> | 2016-04-12 14:05:31 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-04-12 14:05:31 +0000 |
commit | d949d711dc1d944a9d627d39a89af74943a5a8c1 (patch) | |
tree | ed4d43ae992d7e1a45c28b2435e9f2330ab9c639 /lang/cpp/src/data.h | |
parent | Fix configuration without Qt language (diff) | |
download | gpgme-d949d711dc1d944a9d627d39a89af74943a5a8c1.tar.gz gpgme-d949d711dc1d944a9d627d39a89af74943a5a8c1.zip |
Cpp: Add support for gpgme_data_identify
* lang/cpp/src/data.cpp (Data::type): New.
* lang/cpp/src/data.h (Data::Type): New enum mapping.
Diffstat (limited to 'lang/cpp/src/data.h')
-rw-r--r-- | lang/cpp/src/data.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/cpp/src/data.h b/lang/cpp/src/data.h index 97e42029..efb1e790 100644 --- a/lang/cpp/src/data.h +++ b/lang/cpp/src/data.h @@ -82,6 +82,20 @@ public: Encoding encoding() const; Error setEncoding(Encoding encoding); + enum Type { + Invalid, + Unknown, + PGPSigned, + PGPOther, + PGPKey, + CMSSigned, + CMSEncrypted, + CMSOther, + X509Cert, + PKCS12 + }; + Type type() const; + char *fileName() const; Error setFileName(const char *name); |