mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #350 Extra static function registerMetadata, so it can be called explicitly
This commit is contained in:
@@ -43,13 +43,8 @@ namespace BlackCore
|
||||
|
||||
QMap<QString, int> times;
|
||||
QTime time;
|
||||
time.start();
|
||||
registerMetadata();
|
||||
|
||||
BlackMisc::registerMetadata();
|
||||
BlackMisc::initResources();
|
||||
BlackSim::registerMetadata();
|
||||
BlackCore::registerMetadata();
|
||||
times.insert("Register metadata", time.restart());
|
||||
this->connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, this, &CRuntime::gracefulShutdown);
|
||||
|
||||
// upfront reading of settings, as DBus server already relies on settings
|
||||
@@ -133,6 +128,14 @@ namespace BlackCore
|
||||
return (token == this->m_contextApplication->ping(token));
|
||||
}
|
||||
|
||||
void CRuntime::registerMetadata()
|
||||
{
|
||||
BlackMisc::registerMetadata();
|
||||
BlackMisc::initResources();
|
||||
BlackSim::registerMetadata();
|
||||
BlackCore::registerMetadata();
|
||||
}
|
||||
|
||||
bool CRuntime::parseCommandLine(const QString commandLine)
|
||||
{
|
||||
bool handled = false;
|
||||
|
||||
@@ -147,6 +147,9 @@ namespace BlackCore
|
||||
//! Is application context available?
|
||||
bool canPingApplicationContext() const;
|
||||
|
||||
//! Register metadata
|
||||
static void registerMetadata();
|
||||
|
||||
public slots:
|
||||
//! Parse command line in all contexts
|
||||
bool parseCommandLine(const QString commandLine);
|
||||
|
||||
Reference in New Issue
Block a user