summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <sknauss@kde.org>2016-11-22 11:54:24 (GMT)
committerSandro Knauß <sknauss@kde.org>2016-11-22 11:54:24 (GMT)
commit8e54231d5e7c507ed519167600cb21bf403b6ae9 (patch)
tree79b4c5ce085c43bcced65dfa94e17f23bd675990
parent532c1daf21edbd433ec993f73d5e3c98e30dc11a (diff)
Add EncryptedMessagePart::isDecryptable
-rw-r--r--mimetreeparser/src/viewer/messagepart.cpp5
-rw-r--r--mimetreeparser/src/viewer/messagepart.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/mimetreeparser/src/viewer/messagepart.cpp b/mimetreeparser/src/viewer/messagepart.cpp
index c54f24e..9788ff1 100644
--- a/mimetreeparser/src/viewer/messagepart.cpp
+++ b/mimetreeparser/src/viewer/messagepart.cpp
@@ -1092,6 +1092,11 @@ bool EncryptedMessagePart::isEncrypted() const
return mMetaData.isEncrypted;
}
+bool EncryptedMessagePart::isDecryptable() const
+{
+ return mMetaData.isDecryptable;
+}
+
bool EncryptedMessagePart::passphraseError() const
{
return mPassphraseError;
diff --git a/mimetreeparser/src/viewer/messagepart.h b/mimetreeparser/src/viewer/messagepart.h
index 416ec79..1c9d3f9 100644
--- a/mimetreeparser/src/viewer/messagepart.h
+++ b/mimetreeparser/src/viewer/messagepart.h
@@ -333,6 +333,8 @@ public:
void setIsEncrypted(bool encrypted);
bool isEncrypted() const;
+ bool isDecryptable() const;
+
bool passphraseError() const;
void startDecryption(const QByteArray &text, const QTextCodec *aCodec);