summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-16 07:23:37 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-16 07:23:37 (GMT)
commitcd400c20fc6d740d3d44f58032927e8cbbfc160b (patch)
treee48826beea8a7bc4b5f2aaaae19f3dc4d6692f62
parenta82c604ebcafd4941cfdd6e6f19332a0bce1c152 (diff)
Add localdatamanager class
-rw-r--r--webengineviewer/src/CMakeLists.txt2
-rw-r--r--webengineviewer/src/checkphishingurl/localdatabasemanager.cpp32
-rw-r--r--webengineviewer/src/checkphishingurl/localdatabasemanager.h35
3 files changed, 69 insertions, 0 deletions
diff --git a/webengineviewer/src/CMakeLists.txt b/webengineviewer/src/CMakeLists.txt
index 5970414..c9b8723 100644
--- a/webengineviewer/src/CMakeLists.txt
+++ b/webengineviewer/src/CMakeLists.txt
@@ -35,6 +35,7 @@ set(libwebengineviewer_checkphishingurl_SRCS
checkphishingurl/checkphishingurlcache.cpp
checkphishingurl/createphishingurldatabasejob.cpp
checkphishingurl/checkphishingurlfromlocaldatabasejob.cpp
+ checkphishingurl/localdatabasemanager.cpp
)
set(libwebengineviewer_interceptor_SRCS
@@ -149,6 +150,7 @@ ecm_generate_headers(WebEngineViewer_Camelcasewebengine_checkurl_HEADERS
CheckPhishingUrlCache
CreatePhishingUrlDataBaseJob
CheckPhishingUrlFromLocalDataBaseJob
+ LocalDataBaseManager
REQUIRED_HEADERS WebEngineViewer_webengine_checkurl_HEADERS
PREFIX WebEngineViewer
RELATIVE checkphishingurl
diff --git a/webengineviewer/src/checkphishingurl/localdatabasemanager.cpp b/webengineviewer/src/checkphishingurl/localdatabasemanager.cpp
new file mode 100644
index 0000000..660eaab
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/localdatabasemanager.cpp
@@ -0,0 +1,32 @@
+/*
+ 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 "localdatabasemanager.h"
+
+using namespace WebEngineViewer;
+
+LocalDataBaseManager::LocalDataBaseManager(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+LocalDataBaseManager::~LocalDataBaseManager()
+{
+
+}
diff --git a/webengineviewer/src/checkphishingurl/localdatabasemanager.h b/webengineviewer/src/checkphishingurl/localdatabasemanager.h
new file mode 100644
index 0000000..9324d7b
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/localdatabasemanager.h
@@ -0,0 +1,35 @@
+/*
+ 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 LOCALDATABASEMANAGER_H
+#define LOCALDATABASEMANAGER_H
+
+#include <QObject>
+namespace WebEngineViewer
+{
+class LocalDataBaseManager : public QObject
+{
+ Q_OBJECT
+public:
+ explicit LocalDataBaseManager(QObject *parent = Q_NULLPTR);
+ ~LocalDataBaseManager();
+};
+}
+
+#endif // LOCALDATABASEMANAGER_H