diff options
Diffstat (limited to 'framework/domain/mimetreeparser/interface.h')
-rw-r--r-- | framework/domain/mimetreeparser/interface.h | 22 |
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; | |||
53 | class EncryptionError; | 53 | class EncryptionError; |
54 | 54 | ||
55 | class Key; | 55 | class Key; |
56 | class KeyPrivate; | ||
56 | class Signature; | 57 | class Signature; |
57 | class SignaturePrivate; | 58 | class SignaturePrivate; |
58 | class Encryption; | 59 | class Encryption; |
@@ -262,10 +263,9 @@ public: | |||
262 | 263 | ||
263 | EncryptionError error() const; | 264 | EncryptionError error() const; |
264 | private: | 265 | private: |
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>(); |
281 | private: | 281 | private: |
282 | std::unique_ptr<EncapsulatedPartPrivate> d; | 282 | std::unique_ptr<EncapsulatedPartPrivate> d; |
283 | }; | 283 | }; |
284 | 284 | ||
285 | class EncryptionError | 285 | class EncryptionError |
@@ -291,6 +291,12 @@ public: | |||
291 | 291 | ||
292 | class Key | 292 | class Key |
293 | { | 293 | { |
294 | public: | ||
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; |
316 | private: | ||
317 | std::unique_ptr<KeyPrivate> d; | ||
310 | }; | 318 | }; |
311 | 319 | ||
312 | class Signature | 320 | class 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; |
343 | private: | 351 | private: |
344 | std::unique_ptr<EncryptionPrivate> d; | 352 | std::unique_ptr<EncryptionPrivate> d; |
345 | }; | 353 | }; |