16#ifndef __albaLicenceManager_H__
17#define __albaLicenceManager_H__
Implementation of the message object for the Subject/Observer design pattern.
albaGUIDialog is the base class for albaDialogs.
void SetRegistrationMail(wxString mail)
albaGUIDialog * m_RegistrationDialog
void ShowGenerateLicenceDialog()
bool IsRegistred()
set expire date to the argument, return false if there is no expire date
void AddBinaryLicence()
license the software to expireDate
virtual void OnEvent(albaEventBase *alba_event)
on event function
wxCalendarCtrl * m_CalendarCtrl
CreateNewLicenceStatuses CreateNewTimeLicence(wxString RegCode, wxDateTime expirationDate, wxString &newLicence)
creates a new licence string
void SetImagePath(wxString path)
wxTextCtrl * m_Result_textCtrl
bool GetExpireDate(wxDateTime &dateExpire)
set expire date to the argument, return false if there is no expire date
void HideRegistrationDialog()
void ShowRegistrationDialog()
albaGUIDialog * m_GenerateLicenceDialog
void SetListener(albaObserver *Listener)
sets the listener
unsigned long SecondsInThisMillennium()
returns the number of seconds from 1/1/2000 00:00 to now
albaLicenceManager(wxString appName)
wxString m_RegistryBaseKey
void AddTimeLicence(wxDateTime expireDate)
license the software to expireDate
albaLicenceManager::licenceModalities GetLicModality() const
Returns LicModality.
albaObserver * m_Listener
bool m_RegistrationDialogIsOpened
licenceStatuses GetCurrentMode()
returns current registration status
void SetLicScope(albaLicenceManager::licenceScope scope)
@ WRONG_SECS_IN_MILLENNIUM
addLicenceStatuses CheckCreateLicence(wxString registrationString)
check a new licence and add is to the current user
wxTextCtrl * m_FirstKey_textCtrl
void ToClipboard(HWND hwnd, const std::string &s)
CreateNewLicenceStatuses CreateNewBinaryLicence(wxString RegCode, wxString &newLicence)
creates a new licence string
wxString DecryptStr(wxString plainStr)
decrypts the input string, return empty string if the input is not correctly encrypted
void SetCryptKey(wxString cryptKey)
Sets CryptKey, if not set the alba default key will be used for enc/decryption.
void SetLicModality(albaLicenceManager::licenceModalities licModality)
Sets LicModality.
licenceModalities m_LicModality
wxString EncryptStr(wxString plainStr)
encrypts the input string
Interface implementing the Observer of the Subject/Observer design pattern.