refs #635, init metadata in CApplication / CGuiApplication

This commit is contained in:
Klaus Basan
2016-04-02 16:09:36 +02:00
parent a4e7ccd25c
commit 63ddcc5d7c
4 changed files with 40 additions and 15 deletions

View File

@@ -67,7 +67,7 @@ namespace BlackCore
static const BlackMisc::CLogCategoryList &getLogCategories();
//! Constructor
CApplication(const QString &applicationName = executable());
CApplication(const QString &applicationName = executable(), bool init = true);
//! Destructor
virtual ~CApplication();
@@ -282,6 +282,9 @@ namespace BlackCore
virtual void ps_startupCompleted();
protected:
//! Init class, allows to init from BlackGui::CGuiApplication as well (pseudo virtual)
void init(bool withMetadata);
//! Display help message
virtual void cmdLineHelpMessage();
@@ -310,6 +313,9 @@ namespace BlackCore
//! executable name
static const QString &executable();
//! Register metadata
static void registerMetadata();
// cmd parsing
QCommandLineParser m_parser; //!< cmd parser
QCommandLineOption m_cmdHelp {"help"}; //!< help option
@@ -333,9 +339,6 @@ namespace BlackCore
//! Async. start when setup is loaded
bool asyncWebAndContextStart();
//! static init part
static void initEnvironment();
QScopedPointer<CCoreFacade> m_coreFacade; //!< core facade if any
QScopedPointer<CSetupReader> m_setupReader; //!< setup reader
QScopedPointer<CWebDataServices> m_webDataServices; //!< web data services