Handles licensing.
More...
#include <LicenseManager.h>
◆ activateOffline()
Tries to activate the product using an offline activation response
- Parameters
-
inKey | the activation in key in the form xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx |
inFilePath | the path to the file containing the activation response data |
◆ activateOnline()
Tries to activate the product online
- Parameters
-
inKey | the activation in key in the form xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx |
inUserData | (optional) optional user data to associate with the activation. |
◆ clearFloatingLicenseServer()
LicenseResult FlowEngine::LicenseManager::clearFloatingLicenseServer |
( |
| ) |
|
|
static |
Clear the information relative to the Floating License server.
◆ createOfflineActivationRequest()
Creates an offline activation license file for when an internet connection is not available or not desirable
- Parameters
-
inKey | the activation in key in the form xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx |
inFilePath | path to the file that will receive the offline activation request data |
inUserData | (optional) optional user data to associate with the activation. |
◆ createOfflineDeactivationRequest()
Creates an offline deactivation request file for when an internet connection is not available or not desirable
- Parameters
-
inFilePath | to the file that will receive the offline deactivation data |
◆ deactivateOnline()
Tries to deactivate the product online.
◆ getFloatingLicenseServer()
Returns the stored TurboFloat server location
- Parameters
-
[out] | outHostAddress | a string buffer that will receive the stored TurboFloat server location. must be at least getFloatingLicenseServerSize() long. |
[out] | outPort | a variable that will receive the host port. |
- Returns
- One of the following result codes:
◆ getFloatingLicenseServerSize()
Size FlowEngine::LicenseManager::getFloatingLicenseServerSize |
( |
| ) |
|
|
static |
Returns the stored TurboFloat server location address size (in dotted string notation).
◆ getLastDetailedErrorMessage()
Get last complete error message description for the last called LicenseManager function. If no error occurs, the string is empty.
- Parameters
-
◆ getLastDetailedErrorMessageSize()
Size FlowEngine::LicenseManager::getLastDetailedErrorMessageSize |
( |
| ) |
|
|
static |
Returns the camera image file path length
- Returns
- the number of characters required the last error message (excluding the termination character)
◆ getLicenseInformation()
Returns information about the currently active license.
- Parameters
-
[in,out] | inOutInfo | a LicenseInfo object that will receive the license information. |
◆ getProductKey()
Retrieves the currently registered private key.
- Parameters
-
[in,out] | outKey | A valid string buffer that will receive the key. It must be at least getPrivateKeyLength() long. |
- Precondition
- A valid key must be successfully registered first.
- Note
- This method is valid only for static licensing.
- Returns
- One of the following result codes:
◆ getProductKeyLength()
Size FlowEngine::LicenseManager::getProductKeyLength |
( |
| ) |
|
|
static |
- Returns
- the currently registered private key length, or 0 if no license is activated.
- Note
- This method is valid only for static licensing.
◆ isActivated()
bool FlowEngine::LicenseManager::isActivated |
( |
| ) |
|
|
static |
- Returns
- true if the license is activated, false otherwise
◆ saveFloatingLicenseServer()
Set the location of the Floating License server. When set, the floating license server will be the preferred method to validate the license.
- Parameters
-
inHostAddress | the server address in dotted notation |
inPort | the server port |