#include <SecurePlayClass.h>
Public Member Functions | |
| SecurePlayClass () | |
| ~SecurePlayClass () | |
| bool | APIsetSOSLicenseInfo (string pocname, string company, string siteURL, string email) |
| bool | APIsetLicenseInfo (string pocname, string company, string siteURL, string email, string SPSerialNumber, string SPLicenseKey) |
| bool | APIcreateGame (string gameID, string master, bool signaturepolicy, bool encryptionpolicy) |
| bool | APIcreateGame (string gameID, string master, bool signaturepolicy, bool encryptionpolicy, SPLogInterface *log, SPSecurityManagerInterface *security) |
| bool | APIcreatePlayer (string playerID, bool internalflag) |
| bool | APIcreatePlayer (string playerID) |
| bool | APIcreateComms (string commsID, SPAbstractCommsInterface *commsObj) |
| bool | APIsetPlayerGameComms (string gid, string playerID, string commsID) |
| bool | APIsetPlayerGameComms (string gid, string playerID, string commsID, bool relayflag) |
| bool | APIaddGamePlayer (string gid, string pid) |
| bool | APIaddGameComms (string gid, string commsID) |
| SPGameInterface * | APIgetGame (string gameID) |
| SPPlayerInterface * | APIgetPlayer (string playerID) |
| SPAbstractCommsInterface * | APIgetCommsService (string commsID) |
| bool | APIremoveGame (string gameID) |
| bool | APIremovePlayer (string playerID) |
| bool | APIremoveCommsService (string commsID) |
| void | APIclearGames () |
| void | APIclearPlayers () |
| void | APIclearCommsServices () |
| bool | checkLicense () |
| SPGameAPIInterface * | APIgetGameAPI (string gameID) |
| vector< string > | APIgetOpenCommServiceIDs () |
| vector< string > | APIgetOpenGameIDs () |
| vector< string > | APIgetOpenPlayerIDs () |
| bool | isPlayerIncluded (string pid) |
| bool | isGameIncluded (string gid) |
| bool | isCommsIncluded (string cid) |
| bool | APIcreateGame (SPGameInterface *game, string gameID, string master, bool signaturepolicy, bool encryptionpolicy) |
| bool | APIcreateGame (SPGameInterface *game, string gameID, string master, bool signaturepolicy, bool encryptionpolicy, SPLogInterface *log, SPSecurityManagerInterface *security) |
| bool | APIcreatePlayer (SPPlayerInterface *player, string playerID) |
| string | getCompany () |
| string | getEmail () |
| bool | isInitialized () |
| string | getPocname () |
| map< string, SPAbstractCommsInterface * > | getPrcommsServicesList () |
| map< string, SPGameInterface * > | getPrgamesList () |
| map< string, SPPlayerInterface * > | getPrplayersList () |
| string | getSiteURL () |
| string | getSPLicenseKey () |
| string | getSPSerialNumber () |
| string | APIgetLicenseSummary () |
| SPRelayInterface * | APIgetRelayManager () |
| bool | APIsetRelay (SPRelayInterface *relay) |
| bool | isRelayActive () |
| SPLogInterface * | getDefaultLog () |
| SPSecurityManagerInterface * | getDefaultSecurityManager () |
| bool | setDefaultLog (SPLogInterface *log) |
| bool | setDefaultSecurityManager (SPSecurityManagerInterface *security) |
Public Attributes | |
| const string | extendedversion |
| const string | releaseversion |
Private Member Functions | |
| SecurePlayClass (const SecurePlayClass &p) | |
| operator= (const SecurePlayClass &p) | |
Private Attributes | |
| string | pocname |
| string | company |
| string | siteURL |
| string | |
| string | SPSerialNumber |
| string | SPLicenseKey |
| map< string, SPGameInterface * > | prgamesList |
| map< string, SPPlayerInterface * > | prplayersList |
| map< string, SPAbstractCommsInterface * > | prcommsServicesList |
| bool | initialized |
| SPLogInterface * | defaultLog |
| SPSecurityManagerInterface * | defaultSecurityManager |
| SPRelayInterface * | relay |
|
|
Private Copy Constructor that protects this class from being copied. |
|
|
Default Constructor, this method sets all the lisence related parameters to its default: "PLEASE REGISTER WITH SECUREPLAY.COM". |
|
|
Default destructor. |
|
||||||||||||
|
This method associates a communications service with a game instance.
|
|
||||||||||||
|
This method associates a Player instance with a Game Instance so the player can participate in the game.
|
|
|
This clears all of the comms services associated with the SecurePlay library. It should be used with great caution.
|
|
|
This removes all of the Game Instances associated with the SecurePlay library. Use with caution.
|
|
|
This method removes all of the Player Instances associated with the SecurePlay library.
|
|
||||||||||||
|
This method registers a comms service.
|
|
||||||||||||||||||||||||||||||||
|
Attach an existing Game Instance to the Library, with specified log and security manager.
|
|
||||||||||||||||||||||||
|
Attach an existing Game Instance to the Library with default log type.
|
|
||||||||||||||||||||||||||||
|
Creates a new game instance with specified log and security manager.
|
|
||||||||||||||||||||
|
Creates a new game instance with default log type.
|
|
||||||||||||
|
Attach an existing player Instance to the Library.
|
|
|
Adds a player instance
|
|
||||||||||||
|
Adds a player instance, NOTE: This method will not be supported in future versions.
|
|
|
This method uses a commsID and returns the appropriate Communications Service Instance.
|
|
|
This method takes a gameID and returns the associated Game Instance object.
|
|
|
Gets the API of the the game instance in the this.prgameList associative array.
|
|
|
This method returns the summary of the license.
|
|
|
Gets the keys of an associative array(SPHashtable) this.prcommsServicesList and returns them as a string array of open comms services id list.
|
|
|
Gets the keys of an associative array(SPHashtable) this.prgamesList and returns them as a string array of open games id list.
|
|
|
Gets the keys of an associative array(SPHashtable) this.prplayersList and returns them as a string array of open players id list.
|
|
|
This method takes a playerID and returns the corresponding Player instance.
|
|
|
Returns the Library's Relay manager
|
|
|
This method removes a Comms Service Instance specified by a commsID from the active SecurePlay library.
|
|
|
This method takes a gameID and removes the Game Instance from the active SecurePlay library.
|
|
|
This method removes an instance of a Player from the active SecurePlay library.
|
|
||||||||||||||||||||||||||||
|
Loads registered SecurePlay licensee information. Removal, modification, or disablement of this method or any other licensing code is a violation of the SecurePlay library license agreement. This method is used for Commercial Licenses. Simple Open Source licensees use the APIsetSOSLicenseInfo method.
|
|
||||||||||||||||||||
|
This method associates a specific comms service with a specific player within a specific game. It also determines whether this SecurePlay library comms service will relay messages to that player. This method will not be supported in the next version of the library
|
|
||||||||||||||||
|
This method associates a specific comms service with a specific player within a specific game. It also determines whether this SecurePlay library comms service will relay messages to that player.
|
|
|
Activate Relay.
|
|
||||||||||||||||||||
|
This method is the courtesy licensee information for Simple Open Source licensees. It provides basic information to a user or viewer of the application that the application follows the Simple Open Source License. See full license terms for further information.
|
|
|
This Public Method is used to verify that the SecurePlay license information is provided completely and properly.
|
|
|
Getter function that returns the property: company
|
|
|
Returns default Log.
|
|
|
Returns default Security Manager.
|
|
|
Getter function that returns the property: email
|
|
|
Getter function that returns the property: pocname
|
|
|
Getter function that returns the property: prcommsServicesList
|
|
|
Getter function that returns the property: prgamesList
|
|
|
Getter function that returns the property: prplayersList
|
|
|
Getter function that returns the property: siteURL
|
|
|
Getter function that returns the property: SPLicenseKey
|
|
|
Getter function that returns the property: SPSerialNumber
|
|
|
This method returns a bool TRUE if there is a comms service object specified by the indicated Comms ID is included in the Library instance.
|
|
|
This method returns a bool TRUE if there is a game object specified by the indicated Game ID is included in the Library instance.
|
|
|
Getter function that returns the property: initialized
|
|
|
This method returns a bool TRUE if there is a player object specified by the indicated Player ID is included in the Library instance.
|
|
|
Returns status of relay for this library instance
|
|
|
Private = operator that protects this class from being copied. |
|
|
This method sets the default log to the specified log.
|
|
|
This method sets the default security manager.
|
|
|
This is the company name of the authorized SecurePlay licensee. |
|
|
This Class holds the log for all games. Default log is set in the Default Constructor as Log One Class. |
|
|
This Class holds the security manager for this class. Default Security Manager is set in the Default Constructor. The default Security manager is seclite, which only supports MD5. |
|
|
This is the point of contact email for the SecurePlay product licensee. |
|
|
Developer extended version. |
|
|
Flag that determines if the class has been initialized. |
|
|
This is the individual who is the contact for the SecurePlay license for use of the library. |
|
|
The commsServicesList holds a list of pointers to the various comms services objects (such as Flash Remoting, http, socket connection, SMS, etc.). |
|
|
This class holds pointers to the various active game instances. |
|
|
This private list holds the active player instances |
|
|
This supports relay for comms services for this class. |
|
|
IT GlobalSecure release version. |
|
|
This is the URL of the Site that holds the SecurePlay license. |
|
|
This is the license key for the registered SecurePlay user. Removal of this key or any other license information is a violation of the SecurePlay license. |
|
|
This is the serial number of the SecurePlay licensee. Removal is a violation of the SecurePlay license. |