From d949d711dc1d944a9d627d39a89af74943a5a8c1 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Tue, 12 Apr 2016 16:05:31 +0200 Subject: 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. --- lang/cpp/src/data.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lang/cpp/src/data.h') 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); -- cgit v1.2.3