summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase/tabcontroller.cpp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-03-10 15:45:58 +0100
committerkh1 <qt-info@nokia.com>2011-03-10 15:45:58 +0100
commitc7927fd2f20ccad0b8c71237b9295203d6d61cb7 (patch)
tree8a769f5c556e4590a64e304208c10c4c2c21b72b /installerbuilder/installerbase/tabcontroller.cpp
parentffe27fc4a9b8a069a0ae26a01a392b6b5d7a32ce (diff)
Rename. Also parse the locals component file.
Diffstat (limited to 'installerbuilder/installerbase/tabcontroller.cpp')
-rw-r--r--installerbuilder/installerbase/tabcontroller.cpp33
1 files changed, 24 insertions, 9 deletions
diff --git a/installerbuilder/installerbase/tabcontroller.cpp b/installerbuilder/installerbase/tabcontroller.cpp
index 09b4ec8e3..d5424f10a 100644
--- a/installerbuilder/installerbase/tabcontroller.cpp
+++ b/installerbuilder/installerbase/tabcontroller.cpp
@@ -430,26 +430,41 @@ void TabController::canceled()
int TabController::initUpdater()
{
+ using namespace QInstaller;
+
if (d->m_updaterInitialized)
return INST_SUCCESS;
- if (d->m_repoUpdateNeeded) {
- int result = checkRepositories();
- if (result != INST_SUCCESS && d->m_repoReached)
- return result;
- }
d->m_updaterInitialized = true;
+ IntroductionPageImpl *introPage =
+ qobject_cast<IntroductionPageImpl*>(d->m_gui->page(Installer::Introduction));
+ introPage->showAll();
+ introPage->setComplete(false);
+
+ connect(d->m_installer, SIGNAL(updaterInfoMessage(KDJob*, QString)), introPage,
+ SLOT(message(KDJob*, QString)));
+
+ // TODO: find a way to be able to cancel the meta info job
+ //d->m_gui->connect(d->m_gui, SIGNAL(rejected()), &metaInfoJob, SLOT(doCancel()),
+ // Qt::QueuedConnection);
+
+ d->m_gui->setWindowModality(Qt::WindowModal);
+ d->m_gui->show();
+
+ d->m_installer->setLinearComponentList(true);
+ if (!d->m_installer->fetchUpdaterPackages())
+ return INST_FAILED;
+
// Initialize the gui. Needs to be done after check repositories as only then the ui can handle
// hide of pages depenging on the components.
d->m_gui->init();
-
- using namespace QInstaller;
- qobject_cast<IntroductionPage*>(d->m_gui->page(Installer::Introduction))->setComplete(true);
-
d->m_gui->callControlScriptMethod(QLatin1String("UpdaterSelectedCallback"));
d->m_gui->triggerControlScriptForCurrentPage();
+ introPage->setComplete(true);
+ introPage->showMaintenanceTools();
+
return INST_SUCCESS;
}