License related functions for "LM" builds.
More...
Functions related to the license: Activation, deactivation, trial-extension... Not active in "PURE" builds.
◆ WOFLIC_ACTIVATED
#define WOFLIC_ACTIVATED 10 |
WOFLIC_ACTIVATED means the software is activated
◆ WOFLIC_GRACE_EXPIRED
#define WOFLIC_GRACE_EXPIRED 12 |
WOFLIC_GRACE_EXPIRED means the software is activated but re-verification (no internet) has failed for a long time. Invalid.
◆ WOFLIC_GRACE_OK
#define WOFLIC_GRACE_OK 11 |
WOFLIC_GRACE_OK means the software is activated but re-verification has failed (no internet, valid for a sufficiently long grace period)
◆ WOFLIC_INVALID
#define WOFLIC_INVALID 14 |
WOFLIC_INVALID means there is no valid license (trial, product-key)
◆ WOFLIC_PURE
WOFLIC_PURE is the perpetual non-commercial license
◆ WOFLIC_TRIAL
WOFLIC_TRIAL means the trial period is still active
◆ activateWof()
bool GEOM_WOF::activateWof |
( |
const char * |
key, |
|
|
bool |
bSystemWide |
|
) |
| |
This function is used when you have a WOF license key. You can choose to activate system-wide or only for the current user.
- Parameters
-
key | is the purchased software key |
bSystemWide | When true then the activation data is stored system-wide. When false the activation is made for the current user. |
- Note
- Activation is only done once. You can use getLicenseState() to find out if the software is already activated.
-
When the system-wide activation is chosen (
bSystemWide=true
) then the application needs admin-priviledges.
◆ deactivateWof()
bool GEOM_WOF::deactivateWof |
( |
| ) |
|
Deactivates the WOF license on the present computer so that the key can be used on another machine. This function enables you to replace a computer. Do not use over-frequently, the number of deactivations is limited, it's not a floating license.
- Returns
- true in case of success, false otherwise
◆ extendTrial()
bool GEOM_WOF::extendTrial |
( |
const char * |
key | ) |
|
- Parameters
-
key | is a Trial-Extension-key. You ask for such a key to extend the trial period for your non-commercial research project (see the guidelines) or for an extended commercial test periord. |
- Returns
- true in case of success, false otherwise
◆ getLicenseState()
int GEOM_WOF::getLicenseState |
( |
| ) |
|