#include <albaLicenceManager.h>
|  | 
| enum | licenceStatuses { TRIAL_MODE
, LICENSED_MODE
, EXPIRED_MODE
 } | 
|  | 
| enum | licenceModalities { TIME_LICENCE
, BINARY_LICENCE
 } | 
|  | 
| enum | licenceScope { USER_LICENCE
, MACHINE_LICENCE
 } | 
|  | 
| enum | addLicenceStatuses { LICENCE_ADDED
, WRONG_LICENCE
, BAD_DATE
, ALREADY_REGISTERED
 } | 
|  | 
| enum | CreateNewLicenceStatuses { WRONG_BASE_STRING
, WRONG_FULL_STRING
, WRONG_SECS_IN_MILLENNIUM
, LICENCE_CREATED
 } | 
|  | 
| enum | LicenceManagerEventId { ID_COPY_KEY = MINID
, ID_VERIFY_KEY
, ID_GENERATE_KEY
 } | 
|  | 
Definition at line 27 of file albaLicenceManager.h.
 
◆ licenceStatuses
◆ licenceModalities
◆ licenceScope
◆ addLicenceStatuses
| Enumerator | 
|---|
| LICENCE_ADDED |  | 
| WRONG_LICENCE |  | 
| BAD_DATE |  | 
| ALREADY_REGISTERED |  | 
Definition at line 51 of file albaLicenceManager.h.
 
 
◆ CreateNewLicenceStatuses
| Enumerator | 
|---|
| WRONG_BASE_STRING |  | 
| WRONG_FULL_STRING |  | 
| WRONG_SECS_IN_MILLENNIUM |  | 
| LICENCE_CREATED |  | 
Definition at line 58 of file albaLicenceManager.h.
 
 
◆ LicenceManagerEventId
◆ albaLicenceManager()
      
        
          | albaLicenceManager::albaLicenceManager | ( | wxString | appName | ) |  | 
      
 
 
◆ ~albaLicenceManager()
      
        
          | albaLicenceManager::~albaLicenceManager | ( |  | ) |  | 
      
 
 
◆ GetCurrentMode()
returns current registration status 
 
 
◆ ShowRegistrationDialog()
      
        
          | void albaLicenceManager::ShowRegistrationDialog | ( |  | ) |  | 
      
 
 
◆ HideRegistrationDialog()
      
        
          | void albaLicenceManager::HideRegistrationDialog | ( |  | ) |  | 
      
 
 
◆ ShowGenerateLicenceDialog()
      
        
          | void albaLicenceManager::ShowGenerateLicenceDialog | ( |  | ) |  | 
      
 
 
◆ OnEvent()
  
  | 
        
          | virtual void albaLicenceManager::OnEvent | ( | albaEventBase * | alba_event | ) |  |  | virtual | 
 
 
◆ GetExpireDate()
      
        
          | bool albaLicenceManager::GetExpireDate | ( | wxDateTime & | dateExpire | ) |  | 
      
 
set expire date to the argument, return false if there is no expire date 
 
 
◆ IsRegistred()
      
        
          | bool albaLicenceManager::IsRegistred | ( |  | ) |  | 
      
 
set expire date to the argument, return false if there is no expire date 
 
 
◆ SetListener()
  
  | 
        
          | void albaLicenceManager::SetListener | ( | albaObserver * | Listener | ) |  |  | inline | 
 
 
◆ SetCryptKey()
  
  | 
        
          | void albaLicenceManager::SetCryptKey | ( | wxString | cryptKey | ) |  |  | inline | 
 
Sets CryptKey, if not set the alba default key will be used for enc/decryption. 
Definition at line 100 of file albaLicenceManager.h.
 
 
◆ SetRegistrationMail()
  
  | 
        
          | void albaLicenceManager::SetRegistrationMail | ( | wxString | mail | ) |  |  | inline | 
 
 
◆ SetImagePath()
  
  | 
        
          | void albaLicenceManager::SetImagePath | ( | wxString | path | ) |  |  | inline | 
 
 
◆ GetLicModality()
◆ SetLicModality()
◆ SetLicScope()
◆ EncryptStr()
  
  | 
        
          | wxString albaLicenceManager::EncryptStr | ( | wxString | plainStr | ) |  |  | protected | 
 
encrypts the input string 
 
 
◆ DecryptStr()
  
  | 
        
          | wxString albaLicenceManager::DecryptStr | ( | wxString | plainStr | ) |  |  | protected | 
 
decrypts the input string, return empty string if the input is not correctly encrypted 
 
 
◆ CreateNewTimeLicence()
  
  | 
        
          | CreateNewLicenceStatuses albaLicenceManager::CreateNewTimeLicence | ( | wxString | RegCode, |  
          |  |  | wxDateTime | expirationDate, |  
          |  |  | wxString & | newLicence |  
          |  | ) |  |  |  | protected | 
 
creates a new licence string 
 
 
◆ CreateNewBinaryLicence()
creates a new licence string 
 
 
◆ CheckCreateLicence()
check a new licence and add is to the current user 
 
 
◆ SecondsInThisMillennium()
  
  | 
        
          | unsigned long albaLicenceManager::SecondsInThisMillennium | ( |  | ) |  |  | protected | 
 
returns the number of seconds from 1/1/2000 00:00 to now 
 
 
◆ AddTimeLicence()
  
  | 
        
          | void albaLicenceManager::AddTimeLicence | ( | wxDateTime | expireDate | ) |  |  | protected | 
 
license the software to expireDate 
 
 
◆ AddBinaryLicence()
  
  | 
        
          | void albaLicenceManager::AddBinaryLicence | ( |  | ) |  |  | protected | 
 
license the software to expireDate 
 
 
◆ ToClipboard()
  
  | 
        
          | void albaLicenceManager::ToClipboard | ( | HWND | hwnd, |  
          |  |  | const std::string & | s |  
          |  | ) |  |  |  | protected | 
 
 
◆ m_AppName
  
  | 
        
          | wxString albaLicenceManager::m_AppName |  | protected | 
 
 
◆ m_CryptKey
  
  | 
        
          | wxString albaLicenceManager::m_CryptKey |  | protected | 
 
 
◆ m_RegistryBaseKey
  
  | 
        
          | wxString albaLicenceManager::m_RegistryBaseKey |  | protected | 
 
 
◆ m_RegMail
  
  | 
        
          | wxString albaLicenceManager::m_RegMail |  | protected | 
 
 
◆ m_RegImagePath
  
  | 
        
          | wxString albaLicenceManager::m_RegImagePath |  | protected | 
 
 
◆ m_Listener
◆ m_RegistrationDialogIsOpened
  
  | 
        
          | bool albaLicenceManager::m_RegistrationDialogIsOpened |  | protected | 
 
 
◆ m_FirstKey
  
  | 
        
          | wxString albaLicenceManager::m_FirstKey |  | protected | 
 
 
◆ m_SecondKey
  
  | 
        
          | wxString albaLicenceManager::m_SecondKey |  | protected | 
 
 
◆ m_RegistrationDialog
◆ m_GenerateLicenceDialog
◆ m_PreviewImage
  
  | 
        
          | wxImage* albaLicenceManager::m_PreviewImage |  | protected | 
 
 
◆ m_FirstKey_textCtrl
  
  | 
        
          | wxTextCtrl* albaLicenceManager::m_FirstKey_textCtrl |  | protected | 
 
 
◆ m_Result_textCtrl
  
  | 
        
          | wxTextCtrl* albaLicenceManager::m_Result_textCtrl |  | protected | 
 
 
◆ m_CalendarCtrl
  
  | 
        
          | wxCalendarCtrl* albaLicenceManager::m_CalendarCtrl |  | protected | 
 
 
◆ m_LicModality
The documentation for this class was generated from the following file: