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

Add cidschemehandler

parent 1665da2d
Pipeline #21587 canceled with stage
......@@ -120,6 +120,7 @@ set(libmessageviewer_mailviewer_SRCS
viewer/webengine/cidreferencesurlinterceptor/cidreferencesurlinterceptor.cpp
viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp
viewer/webengine/blockmailtrackingurlinterceptor/blockmailtrackingurlinterceptor.cpp
viewer/webengine/cidschemehandler/cidschemehandler.cpp
)
set(libmessageviewer_viewer_SRCS
......
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "cidschemehandler.h"
using namespace MessageViewer;
CidSchemeHandler::CidSchemeHandler(QObject *parent)
: QWebEngineUrlSchemeHandler(parent)
{
}
CidSchemeHandler::~CidSchemeHandler()
{
}
void CidSchemeHandler::requestStarted(QWebEngineUrlRequestJob *job)
{
Q_UNUSED(job);
}
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef CIDSCHEMEHANDLER_H
#define CIDSCHEMEHANDLER_H
#include <QWebEngineUrlSchemeHandler>
#include <QObject>
namespace MessageViewer {
class CidSchemeHandler : public QWebEngineUrlSchemeHandler
{
Q_OBJECT
public:
explicit CidSchemeHandler(QObject *parent = nullptr);
~CidSchemeHandler();
void requestStarted(QWebEngineUrlRequestJob *job) override;
};
}
#endif // CIDSCHEMEHANDLER_H
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