diff --git a/cli/cli.pro b/cli/cli.pro index 2430ed3..98a096d 100644 --- a/cli/cli.pro +++ b/cli/cli.pro @@ -32,9 +32,7 @@ SOURCES += \ commanddelete.cpp \ commandupdate.cpp \ filesaver.cpp \ - databasefactory.cpp \ sqlitedbservice.cpp \ - logger.cpp \ commandsearch.cpp \ commandlist.cpp @@ -55,9 +53,7 @@ HEADERS += \ commanddelete.h \ commandupdate.h \ filesaver.h \ - databasefactory.h \ sqlitedbservice.h \ - logger.h \ commandsearch.h \ commandlist.h INCLUDEPATH += /usr/include/poppler/qt5/ /usr/include/quazip5 diff --git a/cli/databasefactory.cpp b/shared/databasefactory.cpp similarity index 97% rename from cli/databasefactory.cpp rename to shared/databasefactory.cpp index 567e1ae..2fe4ff4 100644 --- a/cli/databasefactory.cpp +++ b/shared/databasefactory.cpp @@ -1,6 +1,7 @@ #include #include "databasefactory.h" #include "logger.h" +#include "looqsgeneralexception.h" DatabaseFactory::DatabaseFactory(QString connectionString) { this->connectionString = connectionString; diff --git a/cli/databasefactory.h b/shared/databasefactory.h similarity index 94% rename from cli/databasefactory.h rename to shared/databasefactory.h index 6b618ef..d38c09f 100644 --- a/cli/databasefactory.h +++ b/shared/databasefactory.h @@ -2,7 +2,6 @@ #define DATABASEFACTORY_H #include #include -#include "utils.h" class DatabaseFactory { private: