AppCore
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
DispatchingModuleManager Class Reference

#include <DispatchingModuleManager.h>

Public Member Functions

 DispatchingModuleManager (Dispatching *core)
 
virtual ~DispatchingModuleManager ()
 
void Enable (ds_string pluginName)
 
void Disable (ds_string pluginName)
 
bool IsPluginEnabled (ds_string pluginName)
 
bool LoadDispatchingModules ()
 
void RestartTimers (DS_Event &event)
 
ds_string GetVersions () const
 
bool PluginRequest (DS_Event &event)
 
bool PrepareEvent (DS_Event &event, ds_string &sendString, bool &forceImmediateSending)
 true when at least one plugin added some text to be sent
 
bool PostPrepareEvent (DS_Event &event, ds_string &sendString, ds_StringList &sendStringList, bool &forceImmediateSending)
 true when at least one plugin added some text
 
void SetPluginsProperty (ds_string propertyName, ds_string propertyValue)
 
EM::Common::EDataCol * GetPluginsProperty ()
 
 DispatchingModuleManager (Dispatching *core)
 
virtual ~DispatchingModuleManager ()
 
void Enable (ds_string pluginName)
 
void Disable (ds_string pluginName)
 
bool IsPluginEnabled (ds_string pluginName)
 
bool LoadDispatchingModules ()
 
void RestartTimers (DS_Event &event)
 
ds_string GetVersions () const
 
bool PluginRequest (DS_Event &event)
 
bool PrepareEvent (DS_Event &event, ds_string &sendString, bool &forceImmediateSending)
 true when at least one plugin added some text to be sent
 
bool PostPrepareEvent (DS_Event &event, ds_string &sendString, ds_StringList &sendStringList, bool &forceImmediateSending)
 true when at least one plugin added some text
 
void SetPluginsProperty (ds_string propertyName, ds_string propertyValue)
 
EM::Common::EDataCol * GetPluginsProperty ()
 

Static Public Member Functions

static ds_string GetConfigPath ()
 
static void StringCompletion (ds_string &sendstring, const ds_string &stringToAdd)
 
static ds_string GetConfigPath ()
 
static void StringCompletion (ds_string &sendstring, const ds_string &stringToAdd)
 

Detailed Description

Class splits relations between plugins and DS_Core so Plugin doesn't depend on DS_Core (and therefore application).

Author
Stanislav Piecka
Note
It IS required to rebuild all plugins, when this class is modified incompatible way.

Constructor & Destructor Documentation

◆ DispatchingModuleManager() [1/2]

INTERNAL DispatchingModuleManager::DispatchingModuleManager ( Dispatching core)

Constructor

Parameters
corepointer to DS_Core, pointer to owner

◆ ~DispatchingModuleManager() [1/2]

DispatchingModuleManager::~DispatchingModuleManager ( )
virtual

Destructor

◆ DispatchingModuleManager() [2/2]

DispatchingModuleManager::DispatchingModuleManager ( Dispatching core)

Constructor

Parameters
corepointer to DS_Core, pointer to owner

◆ ~DispatchingModuleManager() [2/2]

virtual DispatchingModuleManager::~DispatchingModuleManager ( )
virtual

Destructor

Member Function Documentation

◆ Disable() [1/2]

void DispatchingModuleManager::Disable ( ds_string  pluginName)

Method disables plugin

Parameters
pluginNamespecifies which plugin is to be enabled
Here is the call graph for this function:

◆ Disable() [2/2]

void DispatchingModuleManager::Disable ( ds_string  pluginName)

Method disables plugin

Parameters
pluginNamespecifies which plugin is to be enabled

◆ Enable() [1/2]

void DispatchingModuleManager::Enable ( ds_string  pluginName)

Method enables plugin

Parameters
pluginNamespecifies which plugin is to be enabled
Here is the call graph for this function:

◆ Enable() [2/2]

void DispatchingModuleManager::Enable ( ds_string  pluginName)

Method enables plugin

Parameters
pluginNamespecifies which plugin is to be enabled

◆ GetConfigPath() [1/2]

ds_string DispatchingModuleManager::GetConfigPath ( )
static

Configuration getting method

Returns
path to configuration files

◆ GetConfigPath() [2/2]

static ds_string DispatchingModuleManager::GetConfigPath ( )
static

Configuration getting method

Returns
path to configuration files

◆ GetPluginsProperty() [1/2]

EM::Common::EDataCol * DispatchingModuleManager::GetPluginsProperty ( )

◆ GetPluginsProperty() [2/2]

EM::Common::EDataCol * DispatchingModuleManager::GetPluginsProperty ( )

◆ GetVersions() [1/2]

ds_string DispatchingModuleManager::GetVersions ( ) const

Method returns string containing all version of registered plugins.

Returns
structured string containing all versions of all plugins.

◆ GetVersions() [2/2]

ds_string DispatchingModuleManager::GetVersions ( ) const

Method returns string containing all version of registered plugins.

Returns
structured string containing all versions of all plugins.

◆ IsPluginEnabled() [1/2]

bool DispatchingModuleManager::IsPluginEnabled ( ds_string  pluginName)

Method returns whether named plugin is enabled or disabled

Parameters
pluginNamespecifies name of plugin to be checked
Returns
true when enabled, false otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsPluginEnabled() [2/2]

bool DispatchingModuleManager::IsPluginEnabled ( ds_string  pluginName)

Method returns whether named plugin is enabled or disabled

Parameters
pluginNamespecifies name of plugin to be checked
Returns
true when enabled, false otherwise

◆ LoadDispatchingModules() [1/2]

bool DispatchingModuleManager::LoadDispatchingModules ( )

Method reads configuration. Loads all plugins, calls initialization and call configuration read of each loaded plugin.

Returns
false when no one plugin is found or no ne is loaded correctly true is returned otherwise
Here is the call graph for this function:

◆ LoadDispatchingModules() [2/2]

bool DispatchingModuleManager::LoadDispatchingModules ( )

Method reads configuration. Loads all plugins, calls initialization and call configuration read of each loaded plugin.

Returns
false when no one plugin is found or no ne is loaded correctly true is returned otherwise

◆ PluginRequest() [1/2]

bool DispatchingModuleManager::PluginRequest ( DS_Event event)

Interface between plugin and core system. Plugin send event trought this to DS_Core.

Parameters
eventwhat event should be processed
Returns
always true
Here is the caller graph for this function:

◆ PluginRequest() [2/2]

bool DispatchingModuleManager::PluginRequest ( DS_Event event)

Interface between plugin and core system. Plugin send event trought this to DS_Core.

Parameters
eventwhat event should be processed
Returns
always true

◆ PostPrepareEvent() [1/2]

bool DispatchingModuleManager::PostPrepareEvent ( DS_Event event,
ds_string sendString,
ds_StringList sendStringList,
bool &  forceImmediateSending 
)

true when at least one plugin added some text

Here is the call graph for this function:

◆ PostPrepareEvent() [2/2]

bool DispatchingModuleManager::PostPrepareEvent ( DS_Event event,
ds_string sendString,
ds_StringList sendStringList,
bool &  forceImmediateSending 
)

true when at least one plugin added some text

◆ PrepareEvent() [1/2]

bool DispatchingModuleManager::PrepareEvent ( DS_Event event,
ds_string sendString,
bool &  forceImmediateSending 
)

true when at least one plugin added some text to be sent

Here is the call graph for this function:

◆ PrepareEvent() [2/2]

bool DispatchingModuleManager::PrepareEvent ( DS_Event event,
ds_string sendString,
bool &  forceImmediateSending 
)

true when at least one plugin added some text to be sent

◆ RestartTimers() [1/2]

void DispatchingModuleManager::RestartTimers ( DS_Event event)

Method ask all plugins to restart timers. Each plugin which care about restarting it's timer for such event will do that.

Parameters
eventevent which is asking to restart plugin
Here is the call graph for this function:

◆ RestartTimers() [2/2]

void DispatchingModuleManager::RestartTimers ( DS_Event event)

Method ask all plugins to restart timers. Each plugin which care about restarting it's timer for such event will do that.

Parameters
eventevent which is asking to restart plugin

◆ SetPluginsProperty() [1/2]

void DispatchingModuleManager::SetPluginsProperty ( ds_string  propertyName,
ds_string  propertyValue 
)

◆ SetPluginsProperty() [2/2]

void DispatchingModuleManager::SetPluginsProperty ( ds_string  propertyName,
ds_string  propertyValue 
)

◆ StringCompletion() [1/2]

void DispatchingModuleManager::StringCompletion ( ds_string sendstring,
const ds_string stringToAdd 
)
static
Here is the caller graph for this function:

◆ StringCompletion() [2/2]

static void DispatchingModuleManager::StringCompletion ( ds_string sendstring,
const ds_string stringToAdd 
)
static

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