Mercurial > trustbridge
comparison ui/mainwindow.cpp @ 1162:2a1206932f53
(issue107) Comment all TODO's and FIXME's with issues as documented in issue107
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 18 Sep 2014 18:53:11 +0200 |
parents | 5f5880cca5cf |
children | 9bdce8d6fd43 |
comparison
equal
deleted
inserted
replaced
1161:b67681a61e3e | 1162:2a1206932f53 |
---|---|
269 mSettings.setValue("List/availableDate", modDate); | 269 mSettings.setValue("List/availableDate", modDate); |
270 | 270 |
271 verifyListData(); | 271 verifyListData(); |
272 if (!mListToInstall.isValid()) { | 272 if (!mListToInstall.isValid()) { |
273 /* Downloader provided invalid files */ | 273 /* Downloader provided invalid files */ |
274 /* TODO: Error count. Error handling. Otherwise | 274 /* TODO (issue38): Error count. Error handling. Otherwise |
275 * we can go into an endless loop here */ | 275 * we can go into an endless loop here */ |
276 | 276 |
277 /* Retry the download again in 10 - 20 minutes */ | 277 /* Retry the download again in 10 - 20 minutes */ |
278 QTimer::singleShot(600000 + (qrand() % 60000), this, SLOT(checkUpdates())); | 278 QTimer::singleShot(600000 + (qrand() % 60000), this, SLOT(checkUpdates())); |
279 qDebug() << "Failed to verify list."; | 279 qDebug() << "Failed to verify list."; |
569 checkUpdates(); | 569 checkUpdates(); |
570 } | 570 } |
571 | 571 |
572 void MainWindow::downloaderError(const QString &message, SSLConnection::ErrorCode error) | 572 void MainWindow::downloaderError(const QString &message, SSLConnection::ErrorCode error) |
573 { | 573 { |
574 /* TODO logging and handle error according to a plan */ | 574 /* TODO (issue38) handle error according to a plan */ |
575 syslog_error_printf ("Failed to check for updates: %s", message.toUtf8().constData()); | 575 syslog_error_printf ("Failed to check for updates: %s", message.toUtf8().constData()); |
576 #ifdef IS_TAG_BUILD | 576 #ifdef IS_TAG_BUILD |
577 /* During tag build it should never happen that an url checked is not available | 577 /* During tag build it should never happen that an url checked is not available |
578 * during development this is normal as each revision produces a new url. */ | 578 * during development this is normal as each revision produces a new url. */ |
579 setState(TransferError); | 579 setState(TransferError); |
1207 } | 1207 } |
1208 } | 1208 } |
1209 | 1209 |
1210 void MainWindow::loadCertificateList() | 1210 void MainWindow::loadCertificateList() |
1211 { | 1211 { |
1212 /* TODO: if nothing is available (neither old nor new) add some progress | 1212 /* TODO (issue134): if nothing is available (neither old nor new) add some progress |
1213 * indication */ | 1213 * indication */ |
1214 mInstallList->clear(); | 1214 mInstallList->clear(); |
1215 mRemoveList->clear(); | 1215 mRemoveList->clear(); |
1216 mUpdatesNew->clear(); | 1216 mUpdatesNew->clear(); |
1217 mUpdatesRemove->clear(); | 1217 mUpdatesRemove->clear(); |