MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / triggerDownloadTLEs

Method triggerDownloadTLEs

Settings/TLESourceTab.cpp:164–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void
165TLESourceTab::triggerDownloadTLEs(void)
166{
167 auto sus = Suscan::Singleton::get_instance();
168
169 this->currSrc = sus->getFirstTLESource();
170 this->endSrc = sus->getLastTLESource();
171
172 if (this->currSrc != this->endSrc) {
173 this->srcNum = 1;
174 this->srcFailed = 0;
175 this->srcCount = static_cast<unsigned>(sus->getTLESourceMap().count());
176 this->pushDownloadTask();
177 this->refreshDownloadStatus();
178 this->ui->downloadProgress->setFormat("Starting update...");
179 this->ui->downloadProgress->setValue(0);
180 this->ui->downloadProgress->setEnabled(true);
181 this->downloading = true;
182 } else {
183 this->ui->downloadStatusLabel->setText("Ready");
184 this->ui->downloadProgress->setFormat("%p%");
185 this->ui->downloadProgress->setValue(0);
186 this->ui->downloadProgress->setEnabled(false);
187 this->downloading = false;
188 }
189
190 this->refreshUi();
191}
192
193void
194TLESourceTab::downloadNext(void)

Callers 2

setTleSourceConfigMethod · 0.95
onDownloadStartMethod · 0.95

Calls 8

pushDownloadTaskMethod · 0.95
refreshDownloadStatusMethod · 0.95
refreshUiMethod · 0.95
getFirstTLESourceMethod · 0.80
getLastTLESourceMethod · 0.80
setFormatMethod · 0.80
setValueMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected