Gorilla.Licensing
Unit Gorilla.Licensing.pasClasses
- TGorillaLicenseThread = class ( TThread )
- TGorillaLicenseManager = class ( TObject )
TGorillaLicenseThread
Background thread for checking the license of this machine.
Remarks
This thread will run in background and only on windows platforms to do not disturb the development. In case there is no internet, the licensing fails but do not blocks usage of the framework.Ancestors
Members
Methods
- public constructor Create ( ) ;
- public destructor Destroy ( ) ;
- protected procedure Execute ( ) ; override;
- protected function GetLicenseFileName
(
)
: string
;
Returns an absolute license.lic filename
- protected function GetMACAdress
(
)
: TStringList
;
Tries to read all available MAC addresses and returning them as a string list.
- protected function ReadLicenseKey
(
)
: string
;
Tries to read the license key from "%%appdata%%\gorilla3d\" folder. If there is no file available it returns an empty string.
- protected procedure UpdateLastLicensing
(
)
;
This method updates the timestamp for the last licensing. We want to prevent the licensing to be executed over and over again.
- protected function ReadLastLicensing
(
)
: TDateTime
;
Tries to read the last licensing timestamp from license file.
- protected function GetURL
(
const
AURL :
string
)
: string
;
Performs a GET request and returns the response as string.
- protected function StartLicensing
(
AMAC :
string; AKey :
string
)
: Boolean
;
Processes a licensing for a specific MAC address. If there are multiple MAC addresses this method will be called multiple times.