mirror of
https://github.com/tnodir/fort
synced 2024-11-15 10:15:07 +00:00
UI: TaskManager uses model.
This commit is contained in:
parent
3a8e2c2762
commit
a8d1142907
@ -104,12 +104,13 @@ void FortManager::initialize()
|
||||
|
||||
setupLogManager();
|
||||
setupDriver();
|
||||
setupTaskManager();
|
||||
|
||||
setupAppInfoCache();
|
||||
setupHostInfoCache();
|
||||
setupModels();
|
||||
|
||||
setupTaskManager();
|
||||
|
||||
loadConf();
|
||||
}
|
||||
|
||||
@ -218,6 +219,17 @@ void FortManager::closeLogManager()
|
||||
logManager()->close();
|
||||
}
|
||||
|
||||
void FortManager::setupLogger()
|
||||
{
|
||||
Logger *logger = Logger::instance();
|
||||
|
||||
logger->setPath(settings()->logsPath());
|
||||
logger->setActive(true);
|
||||
|
||||
logger->setDebug(settings()->debug());
|
||||
logger->setConsole(settings()->console());
|
||||
}
|
||||
|
||||
void FortManager::setupEventFilter()
|
||||
{
|
||||
m_nativeEventFilter = new NativeEventFilter(this);
|
||||
@ -253,25 +265,6 @@ void FortManager::setupAppInfoManager()
|
||||
appInfoManager()->initialize();
|
||||
}
|
||||
|
||||
void FortManager::setupLogger()
|
||||
{
|
||||
Logger *logger = Logger::instance();
|
||||
|
||||
logger->setPath(settings()->logsPath());
|
||||
logger->setActive(true);
|
||||
|
||||
logger->setDebug(settings()->debug());
|
||||
logger->setConsole(settings()->console());
|
||||
}
|
||||
|
||||
void FortManager::setupTaskManager()
|
||||
{
|
||||
connect(taskManager()->taskInfoZoneDownloader(), &TaskInfoZoneDownloader::zonesUpdated,
|
||||
confManager(), &ConfManager::updateDriverZones);
|
||||
|
||||
taskManager()->initialize();
|
||||
}
|
||||
|
||||
void FortManager::setupAppInfoCache()
|
||||
{
|
||||
m_appInfoCache = new AppInfoCache(this);
|
||||
@ -301,6 +294,14 @@ void FortManager::setupModels()
|
||||
connListModel()->setHostInfoCache(hostInfoCache());
|
||||
}
|
||||
|
||||
void FortManager::setupTaskManager()
|
||||
{
|
||||
connect(taskManager()->taskInfoZoneDownloader(), &TaskInfoZoneDownloader::zonesUpdated,
|
||||
confManager(), &ConfManager::updateDriverZones);
|
||||
|
||||
taskManager()->initialize();
|
||||
}
|
||||
|
||||
void FortManager::setupMainWindow()
|
||||
{
|
||||
m_mainWindow = new MainWindow();
|
||||
|
@ -151,6 +151,7 @@ private:
|
||||
void setupLogManager();
|
||||
void closeLogManager();
|
||||
|
||||
void setupLogger();
|
||||
void setupEventFilter();
|
||||
void setupEnvManager();
|
||||
|
||||
@ -159,13 +160,12 @@ private:
|
||||
void setupConfManager();
|
||||
void setupAppInfoManager();
|
||||
|
||||
void setupLogger();
|
||||
void setupTaskManager();
|
||||
|
||||
void setupAppInfoCache();
|
||||
void setupHostInfoCache();
|
||||
void setupModels();
|
||||
|
||||
void setupTaskManager();
|
||||
|
||||
void setupMainWindow();
|
||||
void closeMainWindow();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user