diff options
author | kh1 <qt-info@nokia.com> | 2011-07-04 22:58:47 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-07-04 22:58:47 +0200 |
commit | 7baa87b423fa96f1ce8dafef927b110a43dc58d1 (patch) | |
tree | 9c91ff673a47c0a77e9300cac0e77aa2b30a5c9a /examples/testapp | |
parent | 5ca0ad0a230950612efb83ddb3e2f050e553439a (diff) |
Have only two function to fetch local and remote packages.
Move everything else into private and guess what to do on
the run mode. This helps a lot on restart, as no packages
need to be fetched again and no updates need to be rebuild.
Diffstat (limited to 'examples/testapp')
-rw-r--r-- | examples/testapp/mainwindow.cpp | 2 | ||||
-rw-r--r-- | examples/testapp/updateagent.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/testapp/mainwindow.cpp b/examples/testapp/mainwindow.cpp index 9a8f7e96e..91a13780a 100644 --- a/examples/testapp/mainwindow.cpp +++ b/examples/testapp/mainwindow.cpp @@ -92,7 +92,7 @@ void MainWindow::checkForUpdates() m_core.setTemporaryRepositories(settings.repositories()); settings.setLastCheck(QDateTime::currentDateTime()); - if (!m_core.fetchUpdaterPackages()) { + if (!m_core.fetchRemotePackagesTree()) { settings.setLastResult(tr("Software Update failed.")); QMessageBox::information(this, tr("Check for Updates"), tr("Failed to retrieve updates!")); return; diff --git a/examples/testapp/updateagent.cpp b/examples/testapp/updateagent.cpp index 73db16e98..994440a48 100644 --- a/examples/testapp/updateagent.cpp +++ b/examples/testapp/updateagent.cpp @@ -78,7 +78,7 @@ public: PackageManagerCore core(QInstaller::MagicUpdaterMarker); core.setTemporaryRepositories(settings.repositories()); - if (!core.fetchUpdaterPackages()) + if (!core.fetchRemotePackagesTree()) throw Error(tr("Software Update failed.")); settings.setLastResult(tr("Software Update run successfully.")); |