Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 41350286 authored by Sandro Knauß's avatar Sandro Knauß

constify

parent cdc8a8a0
......@@ -52,12 +52,12 @@ public:
{
}
MessageViewer::HtmlWriter *htmlWriter() override
MessageViewer::HtmlWriter *htmlWriter() const override
{
return nullptr;
}
MessageViewer::CSSHelperBase *cssHelper() override
MessageViewer::CSSHelperBase *cssHelper() const override
{
return mCSSHelper;
}
......
......@@ -56,12 +56,12 @@ public:
{
}
HtmlWriter *htmlWriter() override
HtmlWriter *htmlWriter() const override
{
return mWriter;
}
CSSHelperBase *cssHelper() override
CSSHelperBase *cssHelper() const override
{
return mCSSHelper;
}
......@@ -81,7 +81,7 @@ public:
mAttachmentStrategy = strategy;
}
const AttachmentStrategy *attachmentStrategy() override
const AttachmentStrategy *attachmentStrategy() const override
{
return AttachmentStrategy::create(mAttachmentStrategy);
}
......
......@@ -102,17 +102,17 @@ QString EmptySource::createMessageHeader(KMime::Message *message)
return QString(); //do nothing
}
const AttachmentStrategy *EmptySource::attachmentStrategy()
const AttachmentStrategy *EmptySource::attachmentStrategy() const
{
return AttachmentStrategy::smart();
}
HtmlWriter *EmptySource::htmlWriter()
HtmlWriter *EmptySource::htmlWriter() const
{
return nullptr;
}
CSSHelperBase *EmptySource::cssHelper()
CSSHelperBase *EmptySource::cssHelper() const
{
return nullptr;
}
......
......@@ -42,14 +42,14 @@ public:
void setAllowDecryption(bool allowDecryption);
const QTextCodec *overrideCodec() override;
QString createMessageHeader(KMime::Message *message) override;
virtual const AttachmentStrategy *attachmentStrategy();
virtual HtmlWriter *htmlWriter();
virtual CSSHelperBase *cssHelper();
bool autoImportKeys() const override;
const MimeTreeParser::BodyPartFormatterFactory *bodyPartFormatterFactory() override;
void render(const MimeTreeParser::MessagePartPtr &msgPart, bool showOnlyOneMimePart) override;
virtual const AttachmentStrategy *attachmentStrategy() const;
virtual HtmlWriter *htmlWriter() const;
virtual CSSHelperBase *cssHelper() const;
/** Return true if external sources should be loaded in a html mail */
virtual bool htmlLoadExternal() const;
virtual bool showSignatureDetails() const;
......
......@@ -94,17 +94,17 @@ QString MailViewerSource::createMessageHeader(KMime::Message *message)
return mViewer->writeMsgHeader(message);
}
const AttachmentStrategy *MailViewerSource::attachmentStrategy()
const AttachmentStrategy *MailViewerSource::attachmentStrategy() const
{
return mViewer->attachmentStrategy();
}
CSSHelperBase *MailViewerSource::cssHelper()
CSSHelperBase *MailViewerSource::cssHelper() const
{
return mViewer->cssHelper();
}
HtmlWriter *MailViewerSource::htmlWriter()
HtmlWriter *MailViewerSource::htmlWriter() const
{
return mViewer->htmlWriter();
}
......
......@@ -42,9 +42,9 @@ public:
int levelQuote() const override;
const QTextCodec *overrideCodec() override;
QString createMessageHeader(KMime::Message *message) override;
const AttachmentStrategy *attachmentStrategy() override;
HtmlWriter *htmlWriter() override;
CSSHelperBase *cssHelper() override;
const AttachmentStrategy *attachmentStrategy() const override;
HtmlWriter *htmlWriter() const override;
CSSHelperBase *cssHelper() const override;
bool autoImportKeys() const override;
bool showSignatureDetails() const override;
......
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