Commit fd2100d4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent 1ea3dd68
......@@ -39,13 +39,13 @@ class MESSAGEVIEWER_EXPORT EmptySource : public MimeTreeParser::Interface::Objec
public:
EmptySource();
~EmptySource() override;
bool decryptMessage() const override;
Q_REQUIRED_RESULT bool decryptMessage() const override;
void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes) override;
MimeTreeParser::Util::HtmlMode preferredMode() const override;
Q_REQUIRED_RESULT MimeTreeParser::Util::HtmlMode preferredMode() const override;
void setAllowDecryption(bool allowDecryption);
const QTextCodec *overrideCodec() override;
virtual QString createMessageHeader(KMime::Message *message);
bool autoImportKeys() const override;
Q_REQUIRED_RESULT bool autoImportKeys() const override;
const MimeTreeParser::BodyPartFormatterFactory *bodyPartFormatterFactory() override;
void render(const MimeTreeParser::MessagePartPtr &msgPart, bool showOnlyOneMimePart);
......
......@@ -37,9 +37,9 @@ public:
~BodyPartURLHandlerManager() override;
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override;
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
void registerHandler(const Interface::BodyPartURLHandler *handler, const QString &mimeType);
void unregisterHandler(const Interface::BodyPartURLHandler *handler);
......@@ -62,13 +62,13 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleContextMenuRequest(const QUrl &url, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &url, const QPoint &, ViewerPrivate *) const override
{
return url.scheme() == QLatin1String("kmail");
}
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
};
class MESSAGEVIEWER_TESTS_EXPORT ExpandCollapseQuoteURLManager : public MimeTreeParser::URLHandler
......@@ -82,14 +82,14 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
{
return false;
}
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
};
class MESSAGEVIEWER_TESTS_EXPORT SMimeURLHandler : public MimeTreeParser::URLHandler
......@@ -103,13 +103,13 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
{
return false;
}
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
};
class MESSAGEVIEWER_TESTS_EXPORT MailToURLHandler : public MimeTreeParser::URLHandler
......@@ -123,17 +123,17 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override
{
return false;
}
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
{
return false;
}
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
};
class MESSAGEVIEWER_TESTS_EXPORT ContactUidURLHandler : public MimeTreeParser::URLHandler
......@@ -147,9 +147,9 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleContextMenuRequest(const QUrl &url, const QPoint &p, ViewerPrivate *) const override;
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &url, const QPoint &p, ViewerPrivate *) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
};
class MESSAGEVIEWER_TESTS_EXPORT HtmlAnchorHandler : public MimeTreeParser::URLHandler
......@@ -163,13 +163,13 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
{
return false;
}
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override
{
return QString();
}
......@@ -186,12 +186,12 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleShiftClick(const QUrl &, ViewerPrivate *window) const override;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override;
bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
bool willHandleDrag(const QUrl &url, ViewerPrivate *window) const override;
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleShiftClick(const QUrl &, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool willHandleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
private:
KMime::Content *nodeForUrl(const QUrl &url, ViewerPrivate *w) const;
bool attachmentIsInHeader(const QUrl &url) const;
......@@ -208,10 +208,10 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override;
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
};
// Handler that prevents dragging of internal images added by KMail, such as the envelope image
......@@ -227,19 +227,19 @@ public:
{
}
bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
bool willHandleDrag(const QUrl &url, ViewerPrivate *window) const override;
bool handleClick(const QUrl &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool willHandleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override
{
return false;
}
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
{
return false;
}
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override
{
return QString();
}
......@@ -256,19 +256,19 @@ public:
{
}
bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
bool willHandleDrag(const QUrl &url, ViewerPrivate *window) const override;
bool handleClick(const QUrl &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool willHandleDrag(const QUrl &url, ViewerPrivate *window) const override;
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override
{
return false;
}
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
{
return false;
}
QString statusBarMessage(const QUrl &url, ViewerPrivate *) const override
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &url, ViewerPrivate *) const override
{
Q_UNUSED(url);
return QString();
......@@ -286,13 +286,13 @@ public:
{
}
bool handleClick(const QUrl &, ViewerPrivate *) const override;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
Q_REQUIRED_RESULT bool handleClick(const QUrl &, ViewerPrivate *) const override;
Q_REQUIRED_RESULT bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const override
{
return false;
}
QString statusBarMessage(const QUrl &, ViewerPrivate *) const override
Q_REQUIRED_RESULT QString statusBarMessage(const QUrl &, ViewerPrivate *) const override
{
return QString();
}
......
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