| 228 | } |
| 229 | |
| 230 | bool |
| 231 | TLESourceTab::pushDownloadTask(void) |
| 232 | { |
| 233 | #ifdef HAVE_CURL |
| 234 | TLEDownloaderTask *task = new TLEDownloaderTask( |
| 235 | QString::fromStdString(this->currSrc->url)); |
| 236 | this->taskController->process( |
| 237 | "Download TLEs (" + QString::fromStdString(this->currSrc->name) + ")", |
| 238 | task); |
| 239 | return true; |
| 240 | #else // HAVE_CURL |
| 241 | QMessageBox::critical( |
| 242 | this, |
| 243 | "Download TLEs", |
| 244 | "Download support was disabled at compile time."); |
| 245 | return false; |
| 246 | #endif // HAVE_CURL |
| 247 | } |
| 248 | |
| 249 | void |
| 250 | TLESourceTab::refreshDownloadStatus(void) |
no test coverage detected