cli: Move most classes to shared lib for reuse
This commit is contained in:
parent
d43c35819d
commit
478d57b342
32
cli/cli.pro
32
cli/cli.pro
@ -14,56 +14,28 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
# In order to do so, uncomment the following line.
|
# In order to do so, uncomment the following line.
|
||||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
LIBS += -luchardet -lpoppler-qt5 -lquazip5
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
main.cpp \
|
main.cpp \
|
||||||
encodingdetector.cpp \
|
|
||||||
pagedata.cpp \
|
|
||||||
processor.cpp \
|
|
||||||
pdfprocessor.cpp \
|
|
||||||
defaulttextprocessor.cpp \
|
|
||||||
commandadd.cpp \
|
commandadd.cpp \
|
||||||
sandboxedprocessor.cpp \
|
|
||||||
tagstripperprocessor.cpp \
|
|
||||||
nothingprocessor.cpp \
|
|
||||||
odtprocessor.cpp \
|
|
||||||
utils.cpp \
|
|
||||||
odsprocessor.cpp \
|
|
||||||
commanddelete.cpp \
|
commanddelete.cpp \
|
||||||
commandupdate.cpp \
|
commandupdate.cpp \
|
||||||
filesaver.cpp \
|
|
||||||
sqlitedbservice.cpp \
|
|
||||||
commandsearch.cpp \
|
commandsearch.cpp \
|
||||||
commandlist.cpp
|
commandlist.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
encodingdetector.h \
|
|
||||||
processor.h \
|
|
||||||
pagedata.h \
|
|
||||||
pdfprocessor.h \
|
|
||||||
defaulttextprocessor.h \
|
|
||||||
command.h \
|
command.h \
|
||||||
commandadd.h \
|
commandadd.h \
|
||||||
sandboxedprocessor.h \
|
|
||||||
tagstripperprocessor.h \
|
|
||||||
nothingprocessor.h \
|
|
||||||
odtprocessor.h \
|
|
||||||
utils.h \
|
|
||||||
odsprocessor.h \
|
|
||||||
commanddelete.h \
|
commanddelete.h \
|
||||||
commandupdate.h \
|
commandupdate.h \
|
||||||
filesaver.h \
|
|
||||||
sqlitedbservice.h \
|
|
||||||
commandsearch.h \
|
commandsearch.h \
|
||||||
commandlist.h
|
commandlist.h
|
||||||
INCLUDEPATH += /usr/include/poppler/qt5/ /usr/include/quazip5
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../shared/release/ -lshared
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../shared/release/ -lshared
|
||||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../shared/debug/ -lshared
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../shared/debug/ -lshared
|
||||||
else:unix: LIBS += -L$$OUT_PWD/../shared/ -lshared
|
else:unix: LIBS += -L$$OUT_PWD/../shared/ -lshared
|
||||||
|
|
||||||
|
LIBS += -luchardet -lpoppler-qt5 -lquazip5
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/../shared
|
INCLUDEPATH += $$PWD/../shared
|
||||||
DEPENDPATH += $$PWD/../shared
|
DEPENDPATH += $$PWD/../shared
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#ifndef COMMAND_H
|
#ifndef COMMAND_H
|
||||||
#define COMMAND_H
|
#define COMMAND_H
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QSqlDatabase>
|
|
||||||
#include <QSqlQuery>
|
|
||||||
#include <QThreadStorage>
|
#include <QThreadStorage>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QSqlQuery>
|
|
||||||
#include <QSqlError>
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QSqlError>
|
|
||||||
#include "commanddelete.h"
|
#include "commanddelete.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QThreadPool>
|
#include <QThreadPool>
|
||||||
#include <QtConcurrentRun>
|
|
||||||
#include "commandupdate.h"
|
#include "commandupdate.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
|
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
#include <QDataStream>
|
#include <QDataStream>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QProcessEnvironment>
|
#include <QProcessEnvironment>
|
||||||
#include <QSqlDatabase>
|
|
||||||
#include <QSqlQuery>
|
|
||||||
#include <QSqlError>
|
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
#include "filesaver.h"
|
#include "filesaver.h"
|
||||||
#include "processor.h"
|
#include "processor.h"
|
||||||
#include "pdfprocessor.h"
|
#include "pdfprocessor.h"
|
||||||
#include "commandadd.h"
|
|
||||||
#include "defaulttextprocessor.h"
|
#include "defaulttextprocessor.h"
|
||||||
#include "tagstripperprocessor.h"
|
#include "tagstripperprocessor.h"
|
||||||
#include "nothingprocessor.h"
|
#include "nothingprocessor.h"
|
@ -2,7 +2,6 @@
|
|||||||
#define FILESAVER_H
|
#define FILESAVER_H
|
||||||
#include <QSqlDatabase>
|
#include <QSqlDatabase>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include "command.h"
|
|
||||||
#include "pagedata.h"
|
#include "pagedata.h"
|
||||||
#include "filedata.h"
|
#include "filedata.h"
|
||||||
#include "sqlitedbservice.h"
|
#include "sqlitedbservice.h"
|
@ -4,9 +4,9 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
|
||||||
QT += sql
|
|
||||||
|
|
||||||
QT -= gui
|
QT -= gui
|
||||||
|
QT += sql concurrent
|
||||||
|
|
||||||
TARGET = shared
|
TARGET = shared
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
@ -14,6 +14,7 @@ CONFIG += staticlib
|
|||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/../sandbox/exile.h/
|
INCLUDEPATH += $$PWD/../sandbox/exile.h/
|
||||||
|
INCLUDEPATH += /usr/include/poppler/qt5/ /usr/include/quazip5
|
||||||
|
|
||||||
# The following define makes your compiler emit warnings if you use
|
# The following define makes your compiler emit warnings if you use
|
||||||
# any feature of Qt which has been marked as deprecated (the exact warnings
|
# any feature of Qt which has been marked as deprecated (the exact warnings
|
||||||
@ -29,21 +30,47 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
SOURCES += sqlitesearch.cpp \
|
SOURCES += sqlitesearch.cpp \
|
||||||
databasefactory.cpp \
|
databasefactory.cpp \
|
||||||
dbmigrator.cpp \
|
dbmigrator.cpp \
|
||||||
|
defaulttextprocessor.cpp \
|
||||||
|
encodingdetector.cpp \
|
||||||
|
filesaver.cpp \
|
||||||
logger.cpp \
|
logger.cpp \
|
||||||
looqsgeneralexception.cpp \
|
looqsgeneralexception.cpp \
|
||||||
common.cpp \
|
common.cpp \
|
||||||
looqsquery.cpp
|
looqsquery.cpp \
|
||||||
|
nothingprocessor.cpp \
|
||||||
|
odsprocessor.cpp \
|
||||||
|
odtprocessor.cpp \
|
||||||
|
pagedata.cpp \
|
||||||
|
pdfprocessor.cpp \
|
||||||
|
processor.cpp \
|
||||||
|
sandboxedprocessor.cpp \
|
||||||
|
sqlitedbservice.cpp \
|
||||||
|
tagstripperprocessor.cpp \
|
||||||
|
utils.cpp
|
||||||
|
|
||||||
HEADERS += sqlitesearch.h \
|
HEADERS += sqlitesearch.h \
|
||||||
databasefactory.h \
|
databasefactory.h \
|
||||||
dbmigrator.h \
|
dbmigrator.h \
|
||||||
|
defaulttextprocessor.h \
|
||||||
|
encodingdetector.h \
|
||||||
filedata.h \
|
filedata.h \
|
||||||
|
filesaver.h \
|
||||||
logger.h \
|
logger.h \
|
||||||
looqsgeneralexception.h \
|
looqsgeneralexception.h \
|
||||||
looqsquery.h \
|
looqsquery.h \
|
||||||
|
nothingprocessor.h \
|
||||||
|
odsprocessor.h \
|
||||||
|
odtprocessor.h \
|
||||||
|
pagedata.h \
|
||||||
|
pdfprocessor.h \
|
||||||
|
processor.h \
|
||||||
|
sandboxedprocessor.h \
|
||||||
searchresult.h \
|
searchresult.h \
|
||||||
|
sqlitedbservice.h \
|
||||||
|
tagstripperprocessor.h \
|
||||||
token.h \
|
token.h \
|
||||||
common.h
|
common.h \
|
||||||
|
utils.h
|
||||||
unix {
|
unix {
|
||||||
target.path = /usr/lib
|
target.path = /usr/lib
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
Loading…
Reference in New Issue
Block a user