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 d4e789b3 authored by Laurent Montel's avatar Laurent Montel 😁

Use override

parent b96807b2
......@@ -48,7 +48,7 @@ class MESSAGECOMPOSER_EXPORT Composer : public JobBase
public:
explicit Composer(QObject *parent = nullptr);
virtual ~Composer();
~Composer() override;
QList<KMime::Message::Ptr> resultMessages() const;
......
......@@ -80,7 +80,7 @@ class MESSAGECOMPOSER_EXPORT ComposerViewBase : public QObject
Q_OBJECT
public:
explicit ComposerViewBase(QObject *parent = nullptr, QWidget *widget = nullptr);
virtual ~ComposerViewBase();
~ComposerViewBase() override;
enum Confirmation {
LetUserConfirm, NoConfirmationNeeded
......
......@@ -68,7 +68,7 @@ public:
};
explicit MessageFactoryNG(const KMime::Message::Ptr &origMsg, Akonadi::Item::Id id, const Akonadi::Collection &col = Akonadi::Collection(), QObject *parent = nullptr);
virtual ~MessageFactoryNG();
~MessageFactoryNG() override;
/**
* Create a new message that is a reply to this message, filling all
......
......@@ -35,7 +35,7 @@ class MESSAGECOMPOSER_EXPORT AttachmentFromPublicKeyJob : public MessageCore::At
public:
explicit AttachmentFromPublicKeyJob(const QString &fingerprint, QObject *parent = nullptr);
virtual ~AttachmentFromPublicKeyJob();
~AttachmentFromPublicKeyJob() override;
QString fingerprint() const;
void setFingerprint(const QString &fingerprint);
......
......@@ -36,7 +36,7 @@ class MESSAGECOMPOSER_EXPORT AttachmentJob : public ContentJobBase
public:
explicit AttachmentJob(MessageCore::AttachmentPart::Ptr part, QObject *parent = nullptr);
virtual ~AttachmentJob();
~AttachmentJob() override;
MessageCore::AttachmentPart::Ptr attachmentPart() const;
void setAttachmentPart(MessageCore::AttachmentPart::Ptr part);
......
......@@ -38,7 +38,7 @@ class MESSAGECOMPOSER_EXPORT ContentJobBase : public JobBase
public:
explicit ContentJobBase(QObject *parent = nullptr);
virtual ~ContentJobBase();
~ContentJobBase() override;
/**
Starts processing this ContentJobBase asynchronously.
......
......@@ -48,7 +48,7 @@ class MESSAGECOMPOSER_EXPORT EncryptJob : public ContentJobBase, public MessageC
public:
explicit EncryptJob(QObject *parent = nullptr);
virtual ~EncryptJob();
~EncryptJob() override;
void setContent(KMime::Content *content);
void setCryptoMessageFormat(Kleo::CryptoMessageFormat format);
......
......@@ -49,7 +49,7 @@ public:
};
explicit JobBase(QObject *parent = nullptr);
virtual ~JobBase();
~JobBase() override;
// asserts if no Composer parent
GlobalPart *globalPart();
......
......@@ -33,7 +33,7 @@ class MESSAGECOMPOSER_EXPORT MainTextJob : public ContentJobBase
public:
explicit MainTextJob(TextPart *textPart = nullptr, QObject *parent = nullptr);
virtual ~MainTextJob();
~MainTextJob() override;
TextPart *textPart() const;
void setTextPart(TextPart *part);
......
......@@ -34,7 +34,7 @@ class MESSAGECOMPOSER_EXPORT MultipartJob : public ContentJobBase
public:
explicit MultipartJob(QObject *parent = nullptr);
virtual ~MultipartJob();
~MultipartJob() override;
QByteArray multipartSubtype() const;
void setMultipartSubtype(const QByteArray &subtype);
......
......@@ -48,7 +48,7 @@ class MESSAGECOMPOSER_EXPORT SignEncryptJob : public ContentJobBase, public Mess
public:
explicit SignEncryptJob(QObject *parent = nullptr);
virtual ~SignEncryptJob();
~SignEncryptJob() override;
void setContent(KMime::Content *content);
void setCryptoMessageFormat(Kleo::CryptoMessageFormat format);
......
......@@ -46,7 +46,7 @@ class MESSAGECOMPOSER_EXPORT SignJob : public ContentJobBase
public:
explicit SignJob(QObject *parent = nullptr);
virtual ~SignJob();
~SignJob() override;
void setContent(KMime::Content *content);
void setCryptoMessageFormat(Kleo::CryptoMessageFormat format);
......
......@@ -44,7 +44,7 @@ class MESSAGECOMPOSER_EXPORT SinglepartJob : public ContentJobBase
public:
explicit SinglepartJob(QObject *parent = nullptr);
virtual ~SinglepartJob();
~SinglepartJob() override;
QByteArray data() const;
void setData(const QByteArray &data);
......
......@@ -41,7 +41,7 @@ class MESSAGECOMPOSER_EXPORT SkeletonMessageJob : public JobBase
public:
explicit SkeletonMessageJob(InfoPart *infoPart = nullptr, GlobalPart *globalPart = nullptr, QObject *parent = nullptr);
virtual ~SkeletonMessageJob();
~SkeletonMessageJob() override;
InfoPart *infoPart() const;
void setInfoPart(InfoPart *part);
......
......@@ -37,7 +37,7 @@ class MESSAGECOMPOSER_EXPORT TransparentJob : public MessageComposer::ContentJob
public:
explicit TransparentJob(QObject *parent = nullptr);
virtual ~TransparentJob();
~TransparentJob() override;
void setContent(KMime::Content *content);
void process() override;
......
......@@ -32,7 +32,7 @@ class MESSAGECOMPOSER_EXPORT GlobalPart : public MessageComposer::MessagePart
public:
explicit GlobalPart(QObject *parent = nullptr);
virtual ~GlobalPart();
~GlobalPart() override;
// default true
bool isGuiEnabled() const;
......
......@@ -33,7 +33,7 @@ class MESSAGECOMPOSER_EXPORT InfoPart : public MessageComposer::MessagePart
public:
explicit InfoPart(QObject *parent = nullptr);
virtual ~InfoPart();
~InfoPart() override;
QString from() const;
void setFrom(const QString &from);
......
......@@ -37,7 +37,7 @@ class MESSAGECOMPOSER_EXPORT MessagePart : public QObject
public:
explicit MessagePart(QObject *parent = nullptr);
virtual ~MessagePart();
~MessagePart() override;
private:
class Private;
......
......@@ -33,7 +33,7 @@ class MESSAGECOMPOSER_EXPORT TextPart : public MessagePart
public:
explicit TextPart(QObject *parent = nullptr);
virtual ~TextPart();
~TextPart() override;
// default true
bool isWordWrappingEnabled() const;
......
......@@ -48,7 +48,7 @@ private Q_SLOTS:
private:
MessageComposerSettings();
virtual ~MessageComposerSettings();
~MessageComposerSettings() override;
static MessageComposerSettings *mSelf;
QTimer *mConfigSyncTimer = nullptr;
......
......@@ -48,7 +48,7 @@ public:
/**
* Destroys the attachment compress job.
*/
virtual ~AttachmentCompressJob();
~AttachmentCompressJob() override;
/**
* Starts the attachment compress job.
......
......@@ -32,7 +32,7 @@ class MESSAGECORE_EXPORT AttachmentFromUrlBaseJob : public AttachmentLoadJob
public:
explicit AttachmentFromUrlBaseJob(const QUrl &url = QUrl(), QObject *parent = nullptr);
virtual ~AttachmentFromUrlBaseJob();
~AttachmentFromUrlBaseJob() override;
/**
* Returns the url that will be loaded as attachment.
......
......@@ -47,7 +47,7 @@ public:
/**
* Destroys the attachment load job.
*/
virtual ~AttachmentLoadJob();
~AttachmentLoadJob() override;
/**
* Starts the attachment load job.
......
......@@ -63,7 +63,7 @@ public:
/**
* Destroys the attachment properties dialog.
*/
virtual ~AttachmentPropertiesDialog();
~AttachmentPropertiesDialog() override;
/**
* Returns the modified attachment.
......
......@@ -34,7 +34,7 @@ public:
private:
MessageCoreSettings();
virtual ~MessageCoreSettings();
~MessageCoreSettings() override;
static MessageCoreSettings *mSelf;
};
}
......
......@@ -31,7 +31,7 @@ class GroupHeaderItem : public Item
{
public:
explicit GroupHeaderItem(const QString &label);
virtual ~GroupHeaderItem();
~GroupHeaderItem() override;
const QString &label() const;
void setLabel(const QString &label);
......
......@@ -91,7 +91,7 @@ class ModelInvariantRowMapper : public QObject
public:
explicit ModelInvariantRowMapper();
virtual ~ModelInvariantRowMapper();
~ModelInvariantRowMapper() override;
/**
* Sets the maximum time we can spend inside a single lazy update step.
......
......@@ -64,8 +64,8 @@ void AntiSpamConfig::readConfig()
KConfig config(QStringLiteral("kmail.antispamrc"));
config.setReadDefaults(true);
KConfigGroup general(&config, "General");
unsigned int totalTools = general.readEntry("tools", 0);
for (unsigned int i = 1; i <= totalTools; ++i) {
int totalTools = general.readEntry("tools", 0);
for (int i = 1; i <= totalTools; ++i) {
KConfigGroup tool(&config, QStringLiteral("Spamtool #%1").arg(i));
if (tool.hasKey("ScoreHeader")) {
const QString name = tool.readEntry("ScoreName");
......
......@@ -35,7 +35,7 @@ class MESSAGEVIEWER_EXPORT HeaderStyleInterface : public QObject
Q_OBJECT
public:
explicit HeaderStyleInterface(MessageViewer::HeaderStylePlugin *, QObject *parent = nullptr);
virtual ~HeaderStyleInterface();
~HeaderStyleInterface() override;
QList<KToggleAction * > action() const;
virtual void createAction(KActionMenu *menu, QActionGroup *actionGroup, KActionCollection *ac) = 0;
virtual void activateAction() = 0;
......
......@@ -28,7 +28,7 @@ class TestCSSHelper : public MessageViewer::CSSHelperBase
{
public:
explicit TestCSSHelper(const QPaintDevice *pd);
virtual ~TestCSSHelper();
~TestCSSHelper() override;
QString htmlHead(bool fixed) const override;
};
}
......
......@@ -27,7 +27,7 @@ class AttachmentMessagePartRenderer : public MessagePartRendererBase
{
public:
AttachmentMessagePartRenderer();
virtual ~AttachmentMessagePartRenderer();
~AttachmentMessagePartRenderer() override;
bool render(const MimeTreeParser::MessagePartPtr &msgPart, HtmlWriter *htmlWriter, RenderContext *context) const override;
};
}
......
......@@ -29,7 +29,7 @@ class MessagePartRenderer : public MessagePartRendererBase
{
public:
MessagePartRenderer();
virtual ~MessagePartRenderer();
~MessagePartRenderer() override;
bool render(const MimeTreeParser::MessagePartPtr &msgPart, HtmlWriter *htmlWriter, RenderContext *context) const override;
};
}
......
......@@ -27,7 +27,7 @@ class TextMessagePartRenderer : public MessagePartRendererBase
{
public:
TextMessagePartRenderer();
virtual ~TextMessagePartRenderer();
~TextMessagePartRenderer() override;
bool render(const MimeTreeParser::MessagePartPtr &msgPart, HtmlWriter *htmlWriter, RenderContext *context) const override;
};
}
......
......@@ -47,7 +47,7 @@ private Q_SLOTS:
private:
MessageViewerSettings();
virtual ~MessageViewerSettings();
~MessageViewerSettings() override;
static MessageViewerSettings *mSelf;
QTimer *mConfigSyncTimer = nullptr;
......
......@@ -41,7 +41,7 @@ class MESSAGEVIEWER_EXPORT CSSHelper : public CSSHelperBase
{
public:
explicit CSSHelper(const QPaintDevice *pd);
virtual ~CSSHelper();
~CSSHelper() override;
/** @return HTML head including style sheet definitions and the
&gt;body&lt; tag */
......
......@@ -199,7 +199,7 @@ public:
ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollection *actionCollection);
virtual ~ViewerPrivate();
~ViewerPrivate() override;
/** Returns message part from given URL or null if invalid. The URL's path is a KMime::ContentIndex path, or an index for the extra nodes,
followed by : and the ContentIndex path. */
......
......@@ -149,7 +149,7 @@ class MIMETREEPARSER_EXPORT MimeMessagePart : public MessagePart
public:
typedef QSharedPointer<MimeMessagePart> Ptr;
MimeMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, bool onlyOneMimePart);
virtual ~MimeMessagePart();
~MimeMessagePart() override;
QString text() const override;
......@@ -165,7 +165,7 @@ class MIMETREEPARSER_EXPORT MessagePartList : public MessagePart
public:
typedef QSharedPointer<MessagePartList> Ptr;
MessagePartList(MimeTreeParser::ObjectTreeParser *otp);
virtual ~MessagePartList();
~MessagePartList() override;
QString text() const override;
......@@ -190,7 +190,7 @@ class MIMETREEPARSER_EXPORT TextMessagePart : public MessagePartList
public:
typedef QSharedPointer<TextMessagePart> Ptr;
TextMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, bool decryptMessage);
virtual ~TextMessagePart();
~TextMessagePart() override;
KMMsgSignatureState signatureState() const;
KMMsgEncryptionState encryptionState() const;
......@@ -222,7 +222,7 @@ class MIMETREEPARSER_EXPORT AttachmentMessagePart : public TextMessagePart
public:
typedef QSharedPointer<AttachmentMessagePart> Ptr;
AttachmentMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, bool decryptMessage);
virtual ~AttachmentMessagePart();
~AttachmentMessagePart() override;
};
class MIMETREEPARSER_EXPORT HtmlMessagePart : public MessagePart
......@@ -231,7 +231,7 @@ class MIMETREEPARSER_EXPORT HtmlMessagePart : public MessagePart
public:
typedef QSharedPointer<HtmlMessagePart> Ptr;
HtmlMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, MimeTreeParser::Interface::ObjectTreeSource *source);
virtual ~HtmlMessagePart();
~HtmlMessagePart() override;
QString text() const override;
......@@ -252,7 +252,7 @@ class MIMETREEPARSER_EXPORT AlternativeMessagePart : public MessagePart
public:
typedef QSharedPointer<AlternativeMessagePart> Ptr;
AlternativeMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, Util::HtmlMode preferredMode);
virtual ~AlternativeMessagePart();
~AlternativeMessagePart() override;
QString text() const override;
......@@ -283,7 +283,7 @@ class MIMETREEPARSER_EXPORT CertMessagePart : public MessagePart
public:
typedef QSharedPointer<CertMessagePart> Ptr;
CertMessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, const QGpgME::Protocol *cryptoProto, bool autoImport);
virtual ~CertMessagePart();
~CertMessagePart() override;
QString text() const override;
......@@ -301,7 +301,7 @@ class MIMETREEPARSER_EXPORT EncapsulatedRfc822MessagePart : public MessagePart
public:
typedef QSharedPointer<EncapsulatedRfc822MessagePart> Ptr;
EncapsulatedRfc822MessagePart(MimeTreeParser::ObjectTreeParser *otp, KMime::Content *node, const KMime::Message::Ptr &message);
virtual ~EncapsulatedRfc822MessagePart();
~EncapsulatedRfc822MessagePart() override;
QString text() const override;
......@@ -324,7 +324,7 @@ public:
typedef QSharedPointer<EncryptedMessagePart> Ptr;
EncryptedMessagePart(ObjectTreeParser *otp, const QString &text, const QGpgME::Protocol *cryptoProto, const QString &fromAddress, KMime::Content *node);
virtual ~EncryptedMessagePart();
~EncryptedMessagePart() override;
QString text() const override;
......@@ -379,7 +379,7 @@ public:
typedef QSharedPointer<SignedMessagePart> Ptr;
SignedMessagePart(ObjectTreeParser *otp, const QString &text, const QGpgME::Protocol *cryptoProto, const QString &fromAddress, KMime::Content *node);
virtual ~SignedMessagePart();
~SignedMessagePart() override;
void setIsSigned(bool isSigned);
bool isSigned() const;
......
......@@ -35,7 +35,7 @@ class WEBENGINEVIEWER_EXPORT FindBarBase : public QWidget
Q_OBJECT
public:
explicit FindBarBase(QWidget *parent = nullptr);
virtual ~FindBarBase();
~FindBarBase() override;
QString text() const;
void setText(const QString &text);
......
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