refactor: Remove webservice state/config member from CApplication

Reduce complexity and state of the CApplication. These members are used
anyway just to initialize the web service.
This commit is contained in:
Lars Toenning
2024-02-17 21:30:05 +01:00
parent eaf0019474
commit 0d62facea7
2 changed files with 4 additions and 9 deletions

View File

@@ -553,7 +553,7 @@ namespace BlackCore
//! Start the web data services
//! \note does nothing when setup is not yet loaded
BlackMisc::CStatusMessageList startWebDataServices();
BlackMisc::CStatusMessageList startWebDataServices(CWebReaderFlags::WebReader webReader, const Db::CDatabaseReaderConfigList &dbReaderConfig);
//! executable name
static const QString &executable();
@@ -651,8 +651,6 @@ namespace BlackCore
const QString m_applicationName; //!< application name
QReadWriteLock m_accessManagerLock; //!< lock to make access manager access threadsafe
CCoreFacadeConfig m_coreFacadeConfig; //!< Core facade config if any
CWebReaderFlags::WebReader m_webReadersUsed; //!< Readers to be used
Db::CDatabaseReaderConfigList m_dbReaderConfig; //!< Load or used caching?
bool m_useContexts = false; //!< use contexts
bool m_devFlag = false; //!< dev. environment
bool m_saveSettingsOnShutdown = true; //!< saving all settings on shutdown