16#ifndef __albaLicenceManager_H__
17#define __albaLicenceManager_H__
77 ID_GENERATE_REGISTRATION
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()
wxTextCtrl * m_Name_textCtrl
bool IsRegistred()
set expire date to the argument, return false if there is no expire date
wxTextCtrl * m_Surname_textCtrl
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
wxTextCtrl * m_IntendedUse_textCtrl
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.
albaGUIButton * m_GenerateRegistration_Button
albaObserver * m_Listener
void SetReadUserData(bool val)
Sets Read User Data, if true a.
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 OnTextFieldChanged(wxEvent &event)
handle text field changes
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
wxTextCtrl * m_Affiliation_textCtrl
wxString EncryptStr(wxString plainStr)
encrypts the input string
Interface implementing the Observer of the Subject/Observer design pattern.