summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-20 08:04:48 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-20 08:04:48 (GMT)
commit6c8379d9377bee937afacbd2d99498f894da4fd0 (patch)
tree0a179190d3f00e99656d7d5047df3dbb3a094886
parent76afabac6c8ff1682d27ffad0b99d41436450cb7 (diff)
We will use mmap file as discussed with David
-rw-r--r--webengineviewer/src/CMakeLists.txt1
-rw-r--r--webengineviewer/src/checkphishingurl/localdatabasefile.cpp33
-rw-r--r--webengineviewer/src/checkphishingurl/localdatabasefile.h35
3 files changed, 69 insertions, 0 deletions
diff --git a/webengineviewer/src/CMakeLists.txt b/webengineviewer/src/CMakeLists.txt
index b566cba..012a5fa 100644
--- a/webengineviewer/src/CMakeLists.txt
+++ b/webengineviewer/src/CMakeLists.txt
@@ -38,6 +38,7 @@ set(libwebengineviewer_checkphishingurl_SRCS
checkphishingurl/localdatabasemanager.cpp
checkphishingurl/checkphishingurlutil.cpp
checkphishingurl/searchfullhashjob.cpp
+ checkphishingurl/localdatabasefile.cpp
)
set(libwebengineviewer_interceptor_SRCS
diff --git a/webengineviewer/src/checkphishingurl/localdatabasefile.cpp b/webengineviewer/src/checkphishingurl/localdatabasefile.cpp
new file mode 100644
index 0000000..b4a2e83
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/localdatabasefile.cpp
@@ -0,0 +1,33 @@
+/*
+ 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 "localdatabasefile.h"
+
+using namespace WebEngineViewer;
+
+LocalDataBaseFile::LocalDataBaseFile(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+LocalDataBaseFile::~LocalDataBaseFile()
+{
+
+}
diff --git a/webengineviewer/src/checkphishingurl/localdatabasefile.h b/webengineviewer/src/checkphishingurl/localdatabasefile.h
new file mode 100644
index 0000000..1479b45
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/localdatabasefile.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 LOCALDATABASEFILE_H
+#define LOCALDATABASEFILE_H
+#include <QObject>
+
+namespace WebEngineViewer
+{
+class LocalDataBaseFile : public QObject
+{
+ Q_OBJECT
+public:
+ explicit LocalDataBaseFile(QObject *parent = Q_NULLPTR);
+ ~LocalDataBaseFile();
+};
+}
+
+#endif // LOCALDATABASEFILE_H