ISmmPluginManager Class Reference

#include <IPluginManager.h>

List of all members.

Public Member Functions

virtual PluginId Load (const char *file, PluginId source, bool &already, char *error, size_t maxlen)=0
 Loads a plugin and returns its id. If this is called before DLLInit(), then the plugin is considered to be "hot" - it might refuse its own load later! Also, a hot plugin might not have an error message.
virtual bool Unload (PluginId id, bool force, char *error, size_t maxlen)=0
 Unloads a plugin.
virtual bool Pause (PluginId id, char *error, size_t maxlen)=0
 Pauses a plugin.
virtual bool Unpause (PluginId id, char *error, size_t maxlen)=0
 Unpauses a plugin.
virtual bool UnloadAll ()=0
 Unloads all plugins forcefully.
virtual bool Query (PluginId id, const char *&file, Pl_Status &status, PluginId &source)=0
 Returns information about a plugin.
virtual bool QueryRunning (PluginId id, char *error, size_t maxlength)=0
 Checks another plugin's QueryRunning() status.
virtual bool QueryHandle (PluginId id, void *&handle)=0
 Returns the handle of a plugin (OS dependent meaning).


Detailed Description

Definition at line 49 of file IPluginManager.h.


Member Function Documentation

virtual PluginId ISmmPluginManager::Load ( const char *  file,
PluginId  source,
bool &  already,
char *  error,
size_t  maxlen 
) [pure virtual]

Parameters:
file String containing file name
source Specifies who loaded the plugin
status Status of the plugin
ismm Pointer to Smm API
error String buffer for error messages
maxlen Maximum length of buffer
Returns:
Id of plugin

virtual bool ISmmPluginManager::Unload ( PluginId  id,
bool  force,
char *  error,
size_t  maxlen 
) [pure virtual]

Parameters:
id Id of plugin
error String buffer for error messages
maxlen Maximum length of buffer
Returns:
True on success, false otherwise

virtual bool ISmmPluginManager::Pause ( PluginId  id,
char *  error,
size_t  maxlen 
) [pure virtual]

Parameters:
id Id of plugin
error String buffer for error messages
maxlen Maximum length of buffer
Returns:
True on success, false otherwise

virtual bool ISmmPluginManager::Unpause ( PluginId  id,
char *  error,
size_t  maxlen 
) [pure virtual]

Parameters:
id Id of plugin
force If true, forces the plugin to unload
error String buffer for error messages
maxlen Maximum length of buffer
Returns:
True on success, false otherwise

virtual bool ISmmPluginManager::UnloadAll (  )  [pure virtual]

Returns:
True on success, false otherwise

virtual bool ISmmPluginManager::Query ( PluginId  id,
const char *&  file,
Pl_Status status,
PluginId source 
) [pure virtual]

Parameters:
id Id of plugin
file Pointer to file string by reference
list Pointer to factories by reference
status By reference status of plugin
source By reference source of plugin
Returns:
True on success, false if not found

virtual bool ISmmPluginManager::QueryRunning ( PluginId  id,
char *  error,
size_t  maxlength 
) [pure virtual]

Parameters:
id Id of plugin
error Message buffer
maxlen Size of error buffer
Returns:
Status value

virtual bool ISmmPluginManager::QueryHandle ( PluginId  id,
void *&  handle 
) [pure virtual]

Parameters:
id Id of plugin
handle By reference handle of plugin, if any
Returns:
True if plugin id is valid, false otherwise


The documentation for this class was generated from the following file:

Generated on Mon Feb 18 18:27:28 2008 for Metamod:Source by  doxygen 1.5.5