Commit b2e3b990 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

constify encyptionState and signatureState

parent 4a766362
......@@ -188,7 +188,7 @@ void NodeHelper::setEncryptionState(KMime::Content *node, const KMMsgEncryptionS
mEncryptionState[node] = state;
}
KMMsgEncryptionState NodeHelper::encryptionState(KMime::Content *node) const
KMMsgEncryptionState NodeHelper::encryptionState(const KMime::Content *node) const
{
return mEncryptionState.value(node, KMMsgNotEncrypted);
}
......@@ -198,7 +198,7 @@ void NodeHelper::setSignatureState(KMime::Content *node, const KMMsgSignatureSta
mSignatureState[node] = state;
}
KMMsgSignatureState NodeHelper::signatureState(KMime::Content *node) const
KMMsgSignatureState NodeHelper::signatureState(const KMime::Content *node) const
{
return mSignatureState.value(node, KMMsgNotSigned);
}
......
......@@ -66,10 +66,10 @@ public:
void forceCleanTempFiles();
void setEncryptionState(KMime::Content *node, const KMMsgEncryptionState state);
KMMsgEncryptionState encryptionState(KMime::Content *node) const;
KMMsgEncryptionState encryptionState(const KMime::Content *node) const;
void setSignatureState(KMime::Content *node, const KMMsgSignatureState state);
KMMsgSignatureState signatureState(KMime::Content *node) const;
KMMsgSignatureState signatureState(const KMime::Content *node) const;
KMMsgSignatureState overallSignatureState(KMime::Content *node) const;
KMMsgEncryptionState overallEncryptionState(KMime::Content *node) const;
......@@ -285,8 +285,8 @@ private:
private:
QList<KMime::Content *> mProcessedNodes;
QList<KMime::Content *> mNodesUnderProcess;
QMap<KMime::Content *, KMMsgEncryptionState> mEncryptionState;
QMap<KMime::Content *, KMMsgSignatureState> mSignatureState;
QMap<const KMime::Content *, KMMsgEncryptionState> mEncryptionState;
QMap<const KMime::Content *, KMMsgSignatureState> mSignatureState;
QSet<KMime::Content *> mDisplayEmbeddedNodes;
QSet<KMime::Content *> mDisplayHiddenNodes;
QTextCodec *mLocalCodec;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment