Commit 1fd4fd86 authored by Laurent Montel's avatar Laurent Montel 😁

Prepare scamdetection for webengine

parent d637958c
......@@ -212,6 +212,12 @@ set(libmessageviewer_scamdetection_SRCS
scamdetection/scamcheckshorturlmanager.cpp
)
if (QTWEBENGINE_EXPERIMENTAL_OPTION)
set(libmessageviewer_scamdetection_webengine_SRCS
scamdetection/scamdetectionwebengine.cpp
)
endif()
set(libmessageviewer_findbar_SRCS
findbar/findbarbase.cpp
findbar/findbarwebview.cpp
......@@ -262,6 +268,7 @@ set(libmessageviewer_viewerplugins_SRCS
)
set(libmessageviewer_SRCS
${libmessageviewer_scamdetection_webengine_SRCS}
${libmessageviewer_widgets_webengine_SRCS}
${libmessageviewer_webengine_SRCS}
${libmessageviewer_viewer_SRCS}
......
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "scamdetectionwebengine.h"
using namespace MessageViewer;
class MessageViewer::ScamDetectionWebEnginePrivate
{
public:
ScamDetectionWebEnginePrivate()
{
}
};
ScamDetectionWebEngine::ScamDetectionWebEngine(QObject *parent)
: QObject(parent),
d(new MessageViewer::ScamDetectionWebEnginePrivate)
{
}
ScamDetectionWebEngine::~ScamDetectionWebEngine()
{
delete d;
}
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef SCAMDETECTIONWEBENGINE_H
#define SCAMDETECTIONWEBENGINE_H
#include <QObject>
namespace MessageViewer
{
class ScamDetectionWebEnginePrivate;
class ScamDetectionWebEngine : public QObject
{
Q_OBJECT
public:
explicit ScamDetectionWebEngine(QObject *parent = Q_NULLPTR);
~ScamDetectionWebEngine();
private:
ScamDetectionWebEnginePrivate *const d;
};
}
#endif // SCAMDETECTIONWEBENGINE_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