summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-15 12:14:03 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-15 12:14:03 (GMT)
commit7d158746a86db91aa436ad1b802f3df9cdb68b3a (patch)
tree7c5455dfa4fdbc4d108a48546ca0b435679a1622
parent42c5e7884cd82a6eb087c441d0aab431f0a51706 (diff)
Look at how to implement local database
-rw-r--r--webengineviewer/src/CMakeLists.txt2
-rw-r--r--webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp39
-rw-r--r--webengineviewer/src/checkphishingurl/createphishingurldatabasejob.h40
3 files changed, 81 insertions, 0 deletions
diff --git a/webengineviewer/src/CMakeLists.txt b/webengineviewer/src/CMakeLists.txt
index b596f1e..a2172aa 100644
--- a/webengineviewer/src/CMakeLists.txt
+++ b/webengineviewer/src/CMakeLists.txt
@@ -33,6 +33,7 @@ set(libwebengineviewer_webengine_SRCS
set(libwebengineviewer_checkphishingurl_SRCS
checkphishingurl/checkphishingurljob.cpp
checkphishingurl/checkphishingurlcache.cpp
+ checkphishingurl/createphishingurldatabasejob.cpp
)
set(libwebengineviewer_interceptor_SRCS
@@ -145,6 +146,7 @@ ecm_generate_headers(WebEngineViewer_Camelcasewebengine_checkurl_HEADERS
HEADER_NAMES
CheckPhishingUrlJob
CheckPhishingUrlCache
+ CreatePhishingUrlDataBaseJob
REQUIRED_HEADERS WebEngineViewer_webengine_checkurl_HEADERS
PREFIX WebEngineViewer
RELATIVE checkphishingurl
diff --git a/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp b/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp
new file mode 100644
index 0000000..c0792f6
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp
@@ -0,0 +1,39 @@
+/*
+ Copyright (C) 2016 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 "createphishingurldatabasejob.h"
+
+using namespace WebEngineViewer;
+
+CreatePhishingUrlDataBaseJob::CreatePhishingUrlDataBaseJob(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+CreatePhishingUrlDataBaseJob::~CreatePhishingUrlDataBaseJob()
+{
+
+}
+
+void CreatePhishingUrlDataBaseJob::start()
+{
+
+}
diff --git a/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.h b/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.h
new file mode 100644
index 0000000..e740922
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.h
@@ -0,0 +1,40 @@
+/*
+ Copyright (C) 2016 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 CREATEPHISHINGURLDATABASEJOB_H
+#define CREATEPHISHINGURLDATABASEJOB_H
+
+#include <QObject>
+
+#include "webengineviewer_export.h"
+
+namespace WebEngineViewer
+{
+class WEBENGINEVIEWER_EXPORT CreatePhishingUrlDataBaseJob : public QObject
+{
+ Q_OBJECT
+public:
+ explicit CreatePhishingUrlDataBaseJob(QObject *parent = Q_NULLPTR);
+ ~CreatePhishingUrlDataBaseJob();
+
+ void start();
+};
+}
+#endif // CREATEPHISHINGURLDATABASEJOB_H