#include <CHMlicense.h>
This class allows you to programmatically register Chameleon on a user's machine without any user input.
Beginning in version 4.5, this class allows you to register Chameleon without the machine being registered having a direct connection to the Internet. This is useful for companies that want to automate the registration code setup for Chameleon. To make it easy for companies to incorporate Chameleon into their existing licensing process, this class allows you to:
(1) Generate a unique Machine ID for the host machine.
(2) Request a non-expiring license for the Machine ID using the user name and password for the host member's account. The automated registration process involves communication with an iNTERFACEWARE server via HTTP. This can be accomplished either from a centrally located computer, or from the actual host machine.
(3) Apply the registration code to the host machine.
This process makes it easy for companies to get the machine IDs centrally using their own licensing, meaning they can add the extra Chameleon information to their own license file.
Please see http://www.interfaceware.com/manual/api_registration.html for details.
Public Member Functions | |
CHMlicense () | |
Constructor. | |
virtual | ~CHMlicense () |
Destructor. | |
CHMlicense & | operator= (const CHMlicense &Orig) |
Assignment operator. | |
CHMlicenseHandle | GetHandle () const |
This method is part of the internal implementation of this class and should not be called. | |
CHMboolean | IsLicensed () const |
Returns true if the machine has a valid Chameleon license. | |
const char * | Proxy () const |
When a Web proxy is required, this property specifies the IP address or hostname for the Web proxy to use. | |
void | SetProxy (const char *Value) |
Set method for proxy. | |
const char * | MachineId () const |
This method returns the unique machine ID of the machine to register. | |
const char * | FetchRegistrationCode (const char *MachineId, const char *EmailAddress, const char *Password, const char *Description) |
Returns the non-expiring runtime registration code for the unique machine ID from iNTERFACEWARE's server. | |
void | RegisterHost (const char *RegistrationCode) |
This method registers the machine using the given registration code. | |
const char * | FetchTrialRegistrationCode (time_t &ExpiryDate, const char *MachineId, const char *EmailAddress, const char *Password, const char *Description) |
Returns the expiring trial registration code for the unique machine ID from iNTERFACEWARE's server. | |
const char * | GetRegistrationCode (time_t &ExpiryDate, const char *LicenseType, const char *MachineId, const char *EmailAddress, const char *Password, const char *Description) |
Returns the expiring trial registration code for the unique machine ID from iNTERFACEWARE's server. | |
void | RegisterTrialHost (const char *RegistrationCode, time_t ExpiryDate) |
Registers the machine using the given expiring trial registration code and expiry date. |
|
Constructor.
|
|
Destructor.
|
|
Returns the non-expiring runtime registration code for the unique machine ID from iNTERFACEWARE's server. This method is deprecated. Please use CHMlicense::GetRegistrationCode instead as this method will be removed in the future. This method uses your Internet connection to send an HTTP request on port 80 to the iNTERFACEWARE server. The HTTP request consists of your email address and password (which you use to log into your member's account) and a machine ID uniquely identifying the machine to register. If the request is successful, the iNTERFACEWARE server returns the non-expiring runtime registration code for this unique machine ID. The Description of the registration code will be used to identify it and determine the nature of the license.
|
|
Returns the expiring trial registration code for the unique machine ID from iNTERFACEWARE's server. This method is deprecated. Please use CHMlicense::GetRegistrationCode instead as this method will be removed in the future. This method uses your Internet connection to send an HTTP request on port 80 to the iNTERFACEWARE server. The HTTP request consists of your email address and password (which you use to log into your member's account) and a machine ID uniquely identifying the machine to register. If the request is successful, the iNTERFACEWARE server returns the expiring trial registration code for this unique machine ID. The Description of the registration code will be used to identify it and determine the nature of the license.
|
|
This method is part of the internal implementation of this class and should not be called.
|
|
Returns the expiring trial registration code for the unique machine ID from iNTERFACEWARE's server. This method uses your Internet connection to send an HTTP request on port 80 to the iNTERFACEWARE server. The HTTP request consists of your email address and password (which you use to log into your member's account) and a machine ID uniquely identifying the machine to register. The request also needs to specify the license type - i.e. 'Chameleon Runtime' etc. If the request is successful, the iNTERFACEWARE server returns the expiring trial registration code for this unique machine ID. The Description of the registration code will be used to identify it and determine the nature of the license.
|
|
Returns true if the machine has a valid Chameleon license. This method checks the license status of the target machine but does not send a request to the iNTERFACEWARE server. It returns true if the machine has a valid Chameleon license and false otherwise. |
|
This method returns the unique machine ID of the machine to register.
|
|
Assignment operator.
|
|
When a Web proxy is required, this property specifies the IP address or hostname for the Web proxy to use. A Web proxy is required when the local machine does not have direct access to the Internet and needs to forward the registration requests through another server. When it is required, use this property to specify the proxy's IP address or hostname. A Web proxy server is a server that handles the HTTP requests of its clients by forwarding its requests to other servers (for example, the iNTERFACEWARE server). A client will connect to the Web proxy server to request a file. The proxy server then connects to the specified server and requests the file on behalf of the client. If your network requires your Internet connection to be set up via a Web proxy, you must specify the proxy your network uses to forward HTTP requests to other servers. By default, no proxy will be used. To unset a Web proxy, simply set this property to an empty string. See also the CHMlicense::SetProxy method. |
|
This method registers the machine using the given registration code. This method is deprecated. Please use CHMlicense::GetRegistrationCode instead as this method will be removed in the future. This method checks if the registration code is valid. If the registration code is invalid, the method throws an exception and does not send a request to the iNTERFACEWARE server. If the registration code is valid, this method registers your machine. This method only supports non-expiring keys.
|
|
Registers the machine using the given expiring trial registration code and expiry date. This method is deprecated. Please use CHMlicense::GetRegistrationCode instead as this method will be removed in the future. This method checks if the registration code is valid. If the registration code is invalid, the method throws an exception and does not send a request to the iNTERFACEWARE server. If the registration code is valid, this method registers your machine.
|
|
Set method for proxy. See CHMlicense::Proxy.
|