From 294455b8615d37f89489f1274b1525a9f7c1fb9c Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 27 Feb 2022 23:13:02 +0100 Subject: [PATCH] DatabaseFactory: Move to /shared --- cli/cli.pro | 4 ---- {cli => shared}/databasefactory.cpp | 1 + {cli => shared}/databasefactory.h | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) rename {cli => shared}/databasefactory.cpp (97%) rename {cli => shared}/databasefactory.h (94%) 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: