2#include <NDEVR/INIInterface.h>
5#include <NDEVR/TimeSpan.h>
6#include <NDEVR/TranslatedString.h>
13 class NDEVRActivation :
public INIInterface
19 , e_software_user_name
30 NDEVRActivation(
const TranslatedString& activation_name,
const String&
id);
31 NDEVRActivation(
const File& file);
32 virtual void getINI(INIFactory& factory)
final override;
33 TranslatedString name()
const;
36 String localCheckID();
37 TimeSpan activationTimeSpan()
const;
39 NDEVR_BASE_API void setActive(LicenseType type,
bool active,
bool force_active);
40 NDEVR_BASE_API void temporaryActivate(
const TimeSpan& span, String password);
42 NDEVR_BASE_API void activate(String request_string, File admin_file, File location);
44 void setActiveRange(TimeSpan span);
46 TranslatedString m_name;
47 ActivationInfo* m_activation_info;
56 static void ReadSoftwareLicenses();
57 static bool IsSoftwareActivated();
58 static TimeSpan SoftwareActivationTimePeriod();
59 static bool IsFeatureActivated(
const String&
id);
60 static String LocalCheckID(
const String& feature_id);
61 static void GenerateTrialPeriod(
const String& feature_id, TimeSpan span,
const String& password);
62 static bool AcceptSoftwareLicense(File file);
63 static bool AddActivation(NDEVRActivation* activation);
64 static Time InternetTime();
65 static void SetInternetTime(
const Time& time,
const String& password);
66 static void SetInternetTimeOffset(
const TimeSpan& time,
const String& password);
68 static void Activate(String
id, String request_string, File admin_file, File location);
70 static NDEVRActivation* ApplicationActivation();
71 static NDEVRActivation* FeatureActivation(
const String&
id);
72 static NDEVRActivation* FeatureActivation(
const TranslatedString name,
const String&
id);
74 static Dictionary<String, NDEVRActivation*> s_activated_features;
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:78