void GeneralSetupWizard::OnSubmitPromptReturn(bool submit) { if (submit) { CreateBusyDialog(tr("Submitting your hardware profile...")); if (m_hardwareProfile->SubmitProfile()) { if (m_busyPopup) { m_busyPopup->Close(); m_busyPopup = NULL; } ShowOkPopup(tr("Hardware profile submitted. Thank you for supporting " "MythTV!")); if (m_profileLocation) m_profileLocation->SetText(m_hardwareProfile->GetProfileURL()); if (m_adminPassword) m_adminPassword->SetText(m_hardwareProfile->GetAdminPasswordFromFile()); } else { if (m_busyPopup) { m_busyPopup->Close(); m_busyPopup = NULL; } ShowOkPopup(tr("Encountered a problem while submitting your profile.")); } } }
void GeneralSetupWizard::OnDeletePromptReturn(bool submit) { if (submit) { CreateBusyDialog(tr("Deleting your hardware profile...")); if (m_hardwareProfile->DeleteProfile()) { if (m_busyPopup) { m_busyPopup->Close(); m_busyPopup = NULL; } ShowOkPopup(tr("Hardware profile deleted.")); if (m_profileLocation) m_profileLocation->SetText(""); if (m_adminPassword) m_adminPassword->SetText(""); } else { if (m_busyPopup) { m_busyPopup->Close(); m_busyPopup = NULL; } ShowOkPopup(tr("Encountered a problem while deleting your profile.")); } } }
void NetEditorBase::LoadData() { QString msg = tr("Querying Backend for Internet Content Sources..."); CreateBusyDialog(msg); m_manager = new QNetworkAccessManager(); connect(m_manager, SIGNAL(finished(QNetworkReply*)), SLOT(SlotLoadedData(void))); QUrl url(GetMythXMLURL() + "GetInternetSources"); m_reply = m_manager->get(QNetworkRequest(url)); }