diff options
Diffstat (limited to 'framework/src/domain/mime/mimetreeparser/messagepart.h')
-rw-r--r-- | framework/src/domain/mime/mimetreeparser/messagepart.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/messagepart.h b/framework/src/domain/mime/mimetreeparser/messagepart.h index 2e0aac21..8f34c582 100644 --- a/framework/src/domain/mime/mimetreeparser/messagepart.h +++ b/framework/src/domain/mime/mimetreeparser/messagepart.h | |||
@@ -41,11 +41,6 @@ namespace GpgME | |||
41 | class ImportResult; | 41 | class ImportResult; |
42 | } | 42 | } |
43 | 43 | ||
44 | namespace QGpgME | ||
45 | { | ||
46 | class Protocol; | ||
47 | } | ||
48 | |||
49 | namespace KMime | 44 | namespace KMime |
50 | { | 45 | { |
51 | class Content; | 46 | class Content; |
@@ -270,14 +265,14 @@ class CertMessagePart : public MessagePart | |||
270 | Q_OBJECT | 265 | Q_OBJECT |
271 | public: | 266 | public: |
272 | typedef QSharedPointer<CertMessagePart> Ptr; | 267 | typedef QSharedPointer<CertMessagePart> Ptr; |
273 | CertMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, const QGpgME::Protocol *cryptoProto); | 268 | CertMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, const GpgME::Protocol cryptoProto); |
274 | virtual ~CertMessagePart(); | 269 | virtual ~CertMessagePart(); |
275 | 270 | ||
276 | QString text() const Q_DECL_OVERRIDE; | 271 | QString text() const Q_DECL_OVERRIDE; |
277 | void import(); | 272 | void import(); |
278 | 273 | ||
279 | private: | 274 | private: |
280 | const QGpgME::Protocol *mCryptoProto; | 275 | const GpgME::Protocol mCryptoProto; |
281 | friend class DefaultRendererPrivate; | 276 | friend class DefaultRendererPrivate; |
282 | }; | 277 | }; |
283 | 278 | ||
@@ -306,7 +301,7 @@ public: | |||
306 | typedef QSharedPointer<EncryptedMessagePart> Ptr; | 301 | typedef QSharedPointer<EncryptedMessagePart> Ptr; |
307 | EncryptedMessagePart(ObjectTreeParser *otp, | 302 | EncryptedMessagePart(ObjectTreeParser *otp, |
308 | const QString &text, | 303 | const QString &text, |
309 | const QGpgME::Protocol *cryptoProto, | 304 | const GpgME::Protocol protocol, |
310 | const QString &fromAddress, | 305 | const QString &fromAddress, |
311 | KMime::Content *node, KMime::Content *encryptedNode = nullptr); | 306 | KMime::Content *node, KMime::Content *encryptedNode = nullptr); |
312 | 307 | ||
@@ -335,7 +330,7 @@ private: | |||
335 | bool okDecryptMIME(KMime::Content &data); | 330 | bool okDecryptMIME(KMime::Content &data); |
336 | 331 | ||
337 | protected: | 332 | protected: |
338 | const QGpgME::Protocol *mCryptoProto; | 333 | const GpgME::Protocol mProtocol; |
339 | QString mFromAddress; | 334 | QString mFromAddress; |
340 | QByteArray mVerifiedText; | 335 | QByteArray mVerifiedText; |
341 | std::vector<GpgME::DecryptionResult::Recipient> mDecryptRecipients; | 336 | std::vector<GpgME::DecryptionResult::Recipient> mDecryptRecipients; |
@@ -353,7 +348,7 @@ public: | |||
353 | typedef QSharedPointer<SignedMessagePart> Ptr; | 348 | typedef QSharedPointer<SignedMessagePart> Ptr; |
354 | SignedMessagePart(ObjectTreeParser *otp, | 349 | SignedMessagePart(ObjectTreeParser *otp, |
355 | const QString &text, | 350 | const QString &text, |
356 | const QGpgME::Protocol *cryptoProto, | 351 | const GpgME::Protocol protocol, |
357 | const QString &fromAddress, | 352 | const QString &fromAddress, |
358 | KMime::Content *node, KMime::Content *signedData); | 353 | KMime::Content *node, KMime::Content *signedData); |
359 | 354 | ||
@@ -373,13 +368,10 @@ public: | |||
373 | QString htmlContent() const Q_DECL_OVERRIDE; | 368 | QString htmlContent() const Q_DECL_OVERRIDE; |
374 | 369 | ||
375 | private: | 370 | private: |
376 | CryptoBodyPartMemento *verifySignature(const QByteArray &data, const QByteArray &signature); | ||
377 | |||
378 | void sigStatusToMetaData(); | 371 | void sigStatusToMetaData(); |
379 | 372 | void setVerificationResult(const GpgME::VerificationResult &result, KMime::Content *textNode, const QByteArray &plainText); | |
380 | void setVerificationResult(const CryptoBodyPartMemento *m, KMime::Content *textNode); | ||
381 | protected: | 373 | protected: |
382 | const QGpgME::Protocol *mCryptoProto; | 374 | GpgME::Protocol mProtocol; |
383 | QString mFromAddress; | 375 | QString mFromAddress; |
384 | QByteArray mVerifiedText; | 376 | QByteArray mVerifiedText; |
385 | KMime::Content *mSignedData; | 377 | KMime::Content *mSignedData; |