bool SubscriptionManager::checkSubscription(int& edition) { edition = Unknown; CoreInterface coreInterface; QString output; try { output = coreInterface.checkSubscription(); } catch (std::exception& e) { showErrorDialog(e.what()); return false; } if (output.contains("subscription will expire soon")) { QMessageBox::warning( this, tr("Activate Subscription"), tr("Your subscription will be expired soon.")); } edition = getEditionType(output); return true; }
bool SubscriptionManager::checkSubscription() { m_Edition = Unknown; persistDirectory(); CoreInterface coreInterface; QString output; try { output = coreInterface.checkSubscription(); } catch (std::exception& e) { m_ErrorMessage = e.what(); checkError(m_ErrorMessage); return false; } checkOutput(output); return true; }