summaryrefslogtreecommitdiffstats
path: root/framework/domain/mimetreeparser/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/domain/mimetreeparser/interface.h')
-rw-r--r--framework/domain/mimetreeparser/interface.h22
1 files changed, 15 insertions, 7 deletions
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;
53class EncryptionError; 53class EncryptionError;
54 54
55class Key; 55class Key;
56class KeyPrivate;
56class Signature; 57class Signature;
57class SignaturePrivate; 58class SignaturePrivate;
58class Encryption; 59class Encryption;
@@ -262,10 +263,9 @@ public:
262 263
263 EncryptionError error() const; 264 EncryptionError error() const;
264private: 265private:
265 std::unique_ptr<EncryptionPartPrivate> d; 266 std::unique_ptr<EncryptionPartPrivate> d;
266}; 267};
267 268
268
269/* 269/*
270 * we want to request complete headers like: 270 * we want to request complete headers like:
271 * from/to... 271 * from/to...
@@ -279,7 +279,7 @@ public:
279 279
280 //template <class T> QByteArray header<T>(); 280 //template <class T> QByteArray header<T>();
281private: 281private:
282 std::unique_ptr<EncapsulatedPartPrivate> d; 282 std::unique_ptr<EncapsulatedPartPrivate> d;
283}; 283};
284 284
285class EncryptionError 285class EncryptionError
@@ -291,6 +291,12 @@ public:
291 291
292class Key 292class Key
293{ 293{
294public:
295 typedef std::shared_ptr<Key> Ptr;
296 Key();
297 Key(KeyPrivate *);
298 ~Key();
299
294 QString keyid() const; 300 QString keyid() const;
295 QString name() const; 301 QString name() const;
296 QString email() const; 302 QString email() const;
@@ -305,8 +311,10 @@ class Key
305 bool isInvalid() const; 311 bool isInvalid() const;
306 bool isExpired() const; 312 bool isExpired() const;
307 313
308 std::vector<Key> subkeys(); 314 std::vector<Key::Ptr> subkeys();
309 Key parentkey() const; 315 Key parentkey() const;
316private:
317 std::unique_ptr<KeyPrivate> d;
310}; 318};
311 319
312class Signature 320class Signature
@@ -317,9 +325,9 @@ public:
317 Signature(SignaturePrivate *); 325 Signature(SignaturePrivate *);
318 ~Signature(); 326 ~Signature();
319 327
320 Key key() const; 328 Key::Ptr key() const;
321 QDateTime creationDateTime() const; 329 QDateTime creationDateTime() const;
322 QDateTime expirationTime() const; 330 QDateTime expirationDateTime() const;
323 bool neverExpires() const; 331 bool neverExpires() const;
324 332
325 //template <> StatusObject<SignatureVerificationResult> verify() const; 333 //template <> StatusObject<SignatureVerificationResult> verify() const;
@@ -339,7 +347,7 @@ public:
339 Encryption(); 347 Encryption();
340 Encryption(EncryptionPrivate *); 348 Encryption(EncryptionPrivate *);
341 ~Encryption(); 349 ~Encryption();
342 std::vector<Key> recipients() const; 350 std::vector<Key::Ptr> recipients() const;
343private: 351private:
344 std::unique_ptr<EncryptionPrivate> d; 352 std::unique_ptr<EncryptionPrivate> d;
345}; 353};