Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
void CometsComponent::updateDataFile(bool isAutoUpdate) { delete (downloadJob); downloadJob = new FileDownloader(); if (isAutoUpdate == false) downloadJob->setProgressDialogEnabled(true, i18n("Comets Update"), i18n("Downloading comets updates...")); downloadJob->registerDataVerification([&](const QByteArray & data) { return data.startsWith("full_name"); }); connect(downloadJob, SIGNAL(downloaded()), this, SLOT(downloadReady())); // For auto-update, we ignore errors if (isAutoUpdate == false) connect(downloadJob, SIGNAL(error(QString)), this, SLOT(downloadError(QString))); QUrl url = QUrl("https://ssd.jpl.nasa.gov/sbdb_query.cgi"); QByteArray post_data = KSUtils::getJPLQueryString("com", "AcBdBiBgBjBlBkBqBbAgAkAlApAqArAsBsBtChAmAn", QVector<KSUtils::JPLFilter> { { "Af", "!=", "D" } }); downloadJob->post(url, post_data); }