5 #include <Radiant/Singleton.hpp>
6 #include <Sealed/RuntimeLicenseCache.hpp>
10 class SHOWCASE_API ShowcaseLicense
12 DECLARE_SINGLETON(ShowcaseLicense);
20 bool check(
bool allowWizard);
24 bool hasExpired()
const;
27 bool isWarnOnly()
const;
31 QDate lastWorkingDate()
const;
34 QDate expiryDate()
const {
return m_expiryDate;}
37 int maxScreenWidth()
const {
return m_maxWidth;}
40 int maxScreenHeight()
const {
return m_maxHeight;}
43 int maxScreenDiagonal()
const {
return m_maxDiagonal;}
46 bool isCodiceEnabled()
const {
return m_enableCodice;}
50 static bool isValidValue(
float value,
float limit);
51 static bool isValidValue(
int value,
int limit);
54 void getLicensedValues(Sealed::License::CheckedFeatures & checkedFeatures);
58 static void showInvalidLicenceDialog(
const Sealed::RuntimeLicenseCache::LicenseErrorTexts & licenseErrorTexts);
61 bool hasExpiredWithWarning(Sealed::License::CheckedFeatures & featureResults);
66 Sealed::IntFeatures m_features;
74 typedef std::shared_ptr<ShowcaseLicense> ShowcaseLicensePtr;