#include <CScriptEngine.h>
Base implementation for IScriptEngine. May be used as is for most clients with a single engine aggregated onto their IScriptManager boss. Clients with multiple engines will need a separate boss, and will need to override at least QueryScriptManager() and GetName().
- See Also
- IScriptEngine
Constructor. Clients with a custom IScriptRequestData boss will need to subclass this implementation and pass the ClassID of their IScriptRequestData boss to this base class.
- Parameters
| requestDataBoss | is the ClassID of the IScriptRequestData boss used to handle requests for this client |
| virtual CScriptEngine::~CScriptEngine | ( | | ) | |
| inlinevirtual |
| virtual void CScriptEngine::DecrementActiveScriptCount | ( | | ) | |
| virtual |
Decrement the number of active scripts in this engine
Implements IScriptEngine.
| virtual PMString CScriptEngine::GetName | ( | | ) | const |
| virtual |
- Returns
- this engine's name. Clients with multiple engines will want to override this method.
Implements IScriptEngine.
- Returns
- this engine's current request context for processing a script
Implements IScriptEngine.
| virtual bool16 CScriptEngine::GetShowAlerts | ( | | ) | const |
| virtual |
- Returns
- whether alerts should be displayed when this engine is processing requests
Implements IScriptEngine.
| virtual bool16 CScriptEngine::GetShowDialogs | ( | | ) | const |
| virtual |
- Returns
- whether dialogs should be displayed when this engine is processing requests
Implements IScriptEngine.
| virtual void CScriptEngine::IncrementActiveScriptCount | ( | | ) | |
| virtual |
Increment the number of active scripts in this engine
Implements IScriptEngine.
| virtual ErrorCode CScriptEngine::Install | ( | | ) | |
| virtual |
| virtual bool16 CScriptEngine::IsScriptActive | ( | | ) | const |
| virtual |
- Returns
- whether a script is running in this engine
Implements IScriptEngine.
- Returns
- the script manager for this engine. Clients with multiple engines must override this method.
Implements IScriptEngine.
| virtual void CScriptEngine::ResetScriptRequestData | ( | IScriptRequestData * | scriptRequestData | ) | const |
| protectedvirtual |
Called by CreateScriptRequestData() to initialize this script event data with default policies for this engine. Most clients will not need to override this method.
- Parameters
| scriptRequestData | is the script event data interface to initialize |
| virtual ErrorCode CScriptEngine::UnInstall | ( | | ) | |
| virtual |