From d15a02d3c26c24530e8d9360629212e419c81c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Knau=C3=9F?= Date: Mon, 17 Oct 2016 19:06:12 +0200 Subject: fill Encryption and Signatures with content --- framework/domain/mimetreeparser/interface.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'framework/domain/mimetreeparser/interface.h') diff --git a/framework/domain/mimetreeparser/interface.h b/framework/domain/mimetreeparser/interface.h index f88271af..3ff29d5d 100644 --- a/framework/domain/mimetreeparser/interface.h +++ b/framework/domain/mimetreeparser/interface.h @@ -53,6 +53,7 @@ class CertContentPrivate; class EncryptionError; class Key; +class KeyPrivate; class Signature; class SignaturePrivate; class Encryption; @@ -262,10 +263,9 @@ public: EncryptionError error() const; private: - std::unique_ptr d; + std::unique_ptr d; }; - /* * we want to request complete headers like: * from/to... @@ -279,7 +279,7 @@ public: //template QByteArray header(); private: - std::unique_ptr d; + std::unique_ptr d; }; class EncryptionError @@ -291,6 +291,12 @@ public: class Key { +public: + typedef std::shared_ptr Ptr; + Key(); + Key(KeyPrivate *); + ~Key(); + QString keyid() const; QString name() const; QString email() const; @@ -305,8 +311,10 @@ class Key bool isInvalid() const; bool isExpired() const; - std::vector subkeys(); + std::vector subkeys(); Key parentkey() const; +private: + std::unique_ptr d; }; class Signature @@ -317,9 +325,9 @@ public: Signature(SignaturePrivate *); ~Signature(); - Key key() const; + Key::Ptr key() const; QDateTime creationDateTime() const; - QDateTime expirationTime() const; + QDateTime expirationDateTime() const; bool neverExpires() const; //template <> StatusObject verify() const; @@ -339,7 +347,7 @@ public: Encryption(); Encryption(EncryptionPrivate *); ~Encryption(); - std::vector recipients() const; + std::vector recipients() const; private: std::unique_ptr d; }; -- cgit v1.2.3