summaryrefslogtreecommitdiff
path: root/FacilityEngine.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2019-02-03 00:10:52 +0000
committerThomas Preud'homme <robotux@celest.fr>2019-02-03 00:10:52 +0000
commit9b10c21f5cad0e2ec27d23c59e65af7141a226f3 (patch)
treebf81d75a9ed990bb76488c502767600fcf7550b7 /FacilityEngine.cpp
parent594fcba67600704bee9115c86e18927b2237b304 (diff)
New upstream version 1.6.1.3
Diffstat (limited to 'FacilityEngine.cpp')
-rw-r--r--FacilityEngine.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/FacilityEngine.cpp b/FacilityEngine.cpp
index 8356f05..185492a 100644
--- a/FacilityEngine.cpp
+++ b/FacilityEngine.cpp
@@ -5,6 +5,7 @@
\licence GPL3, see the file COPYING */
#include "FacilityEngine.h"
+#include "ProductKey.h"
#if defined (Q_OS_WIN32)
#ifndef NOMINMAX
@@ -229,15 +230,21 @@ std::string FacilityEngine::simplifiedRemainingTime(const uint32_t &seconds) con
/// \brief Return ultimate url, empty is not found or already ultimate
std::string FacilityEngine::ultimateUrl() const
{
- #ifdef ULTRACOPIER_VERSION_ULTIMATE
- return std::string();
- #else
+ if(ProductKey::productKey->isUltimate())
+ return std::string();
+ else
+ {
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
- return "http://ultracopier.first-world.info/shop.html";
+ return "https://shop.first-world.info/";
#else
return std::string();
#endif
- #endif
+ }
+}
+
+bool FacilityEngine::isUltimate() const
+{
+ return ProductKey::productKey->isUltimate();
}
/// \brief Return the software name