Refactor search queries: Introduced QSSQuery

Purpose is to seperate certain logic from SQLite and generalize it more.
Even though we only have Sqlite atm, in general the database layers
must be stupid as possible, while QSSQuery should do most of the hard work.

Fixes in Tokenizer logic.
Switched to C++17.
此提交包含在:
2019-08-17 11:06:35 +02:00
父節點 ef6485117b
當前提交 404f05b89f
共有 14 個檔案被更改,包括 504 行新增620 行删除

查看文件

@@ -11,6 +11,7 @@ QT -= gui
TARGET = shared
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++17
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
@@ -24,12 +25,15 @@ DEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += sqlitesearch.cpp \
qssgeneralexception.cpp
qssgeneralexception.cpp \
qssquery.cpp
HEADERS += sqlitesearch.h \
filedata.h \
searchresult.h \
qssgeneralexception.h
qssgeneralexception.h \
token.h \
qssquery.h
unix {
target.path = /usr/lib
INSTALLS += target