SPLicenseClient.h File Reference
Detailed Description
SignWare Dynamic Development toolkit, license registration client.
- Author:
- uko
License Client
- Note:
- SignWare now uses license keys, usage of license files is deprecated. The following description only applies if you still use license files.
You must properly initialize the license management to use this feature, see Using the SOFTPRO License Manager and Typical startup code.
The license service can neither transfer ticket licenses nor recharge a transfer license. The license service only supports local license model.
The SOFTPRO license service will be located using the registry, all values are read from HKCR\Software\SOFTPRO\SPRegLic
- Url [string] defines the service Url (e.g. https://Register.SOFTPRO.de/RegLicService.php )
- User [string] sets the authenticated user, leave empty if not applicable
- Password [string] sets the authenticated password, leave empty if not applicable
- Timeout [int] sets the timeout in seconds, currently not supported
- Proxy [string] sets the host name of a proxy, leave empty if not applicable
- ProxyUser [string] sets the authenticated proxy user, leave empty if not applicable
- ProxyPassword [string] sets the authenticated proxy password, leave empty if not applicable
- ProxyPort [int] sets the Proxy port
REGEDIT4 [HKEY_CLASSES_ROOT\\Software\\SOFTPRO\\SPRegLic] "Url" = "http://Register.SOFTPRO.de/RegLicService.php"
You may use the APIs SPLicenseClientSetPropertyInt, SPLicenseClientSetPropertyString to overrule the defaults that were read from the registry.
The license client can be used either with builtin GUI or with a custom GUI.
The builtin GUI pops up a multipage dialog to enter the registration key, optional proxy data and finally connects with the license service to load the license file, see SPLicenseClientGuiRequest. Internationalisation is supported through xml translation files, which must be located in the path.
The application may built a custom GUI to enter the registration code and optionally more fields to specify proxy connection parameters and finally call SPLicenseClientRequest to upload the license file.
- Note:
- The SOFTPRO license service is currently in a test phase. Please contact SOFTPRO service for details on availability of this service.
Properties
The license client connects with a SOFTPRO license service. The properties define the connection parameters.
- 'ServiceUrl' the URL to the license service, e. g. http://Register.SOFTPRO.de/SPRegLicService.php , utf-8 string
- 'ServiceName' optional user name to access the license service, utf-8 string
- 'ServicePassword' optional user name to access the license service, utf-8 string
- 'ProxyUrl' optional URL to the proxy service, utf-8 string
- 'ProxyName' optional user name to access the proxy service, utf-8 string
- 'ProxyPassword' optional user name to access the proxy service, utf-8 string
- 'ProxyPort' optional port number to access the proxy service, int
Functions | |
| SPINT32 __cdecl | SPLicenseClientClone (pSPLICENSECLIENT_T pLicenseClient, pSPLICENSECLIENT_T *ppClone) |
| Clone a SPLicenseClient object. | |
| SPINT32 __cdecl | SPLicenseClientCreate (pSPLICENSECLIENT_T *ppLicenseClient) |
| Create a new SPLicenseClient object. | |
| SPINT32 __cdecl | SPLicenseClientFree (pSPLICENSECLIENT_T *ppLicenseClient) |
| Deallocate an SPLicenseClient object. | |
| SPINT32 __cdecl | SPLicenseClientGetDetailError (pSPLICENSECLIENT_T pLicenseClient, const SPCHAR *pszLanguage, SPINT32 iResult, SPCHAR **ppszErrorString) |
| Get a description of the error returned by SPLicenseClientRequest or SPLicenseClientGuiRequest. | |
| SPINT32 __cdecl | SPLicenseClientGetPropertyInt (pSPLICENSECLIENT_T pLicenseClient, const SPCHAR *pszName, SPINT32 *piValue) |
| Query an integer property. | |
| SPINT32 __cdecl | SPLicenseClientGetPropertyString (pSPLICENSECLIENT_T pLicenseClient, const SPCHAR *pszName, char **ppszValue) |
| Set a string property. | |
| SPINT32 __cdecl | SPLicenseClientGuiRequest (pSPLICENSECLIENT_T pLicenseClient, SPHWND hwndParent, const SPCHAR *pszLanguage, SPINT32 *piResult) |
| Get a license file from the SOFTPRO license service. | |
| SPINT32 __cdecl | SPLicenseClientRequest (pSPLICENSECLIENT_T pLicenseClient, const char *pszRegistrationCode, SPINT32 *piResult) |
| Get a license file from the SOFTPRO license service without GUI. | |
| SPINT32 __cdecl | SPLicenseClientSetPropertyInt (pSPLICENSECLIENT_T pLicenseClient, const SPCHAR *pszName, SPINT32 iValue) |
| Set an integer property. | |
| SPINT32 __cdecl | SPLicenseClientSetPropertyString (pSPLICENSECLIENT_T pLicenseClient, const SPCHAR *pszName, const char *pszValue) |
| Set a string property. | |
Function Documentation
|
||||||||||||
|
Clone a SPLicenseClient object.
|
|
|
Create a new SPLicenseClient object.
|
|
|
Deallocate an SPLicenseClient object. The SPLicenseClient object must have been created by SPLicenseClientCreate or SPLicenseClientClone.
|
|
||||||||||||||||||||
|
Get a description of the error returned by SPLicenseClientRequest or SPLicenseClientGuiRequest. Extract the returned detailed error information to a readable error string in UTF-8 notation
|
|
||||||||||||||||
|
Query an integer property. Please read Properties for details on the evaluated properties
|
|
||||||||||||||||
|
Set a string property. Please read Properties for details on the evaluated properties
|
|
||||||||||||||||||||
|
Get a license file from the SOFTPRO license service.
Popup a multipage dialog to enter registration key and optional proxy settings
|
|
||||||||||||||||
|
Get a license file from the SOFTPRO license service without GUI.
|
|
||||||||||||||||
|
Set an integer property. Please read Properties for details on the evaluated properties
|
|
||||||||||||||||
|
Set a string property. Please read Properties for details on the evaluated properties
|