AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Slots | Public Member Functions | List of all members
Dispatching Class Reference

Class creates interface between application and plugins of dispatching system There are comming events from application (like, "login", "accident" etc.) which are handled in this class in appropriate slots. Events are transferred into DS_Event classes in those methods. DS_Events are sent to all plugins, so plugins which are interested in those events cand handle them and create appropriate message (which will go to server). When message is created (all enabled plugins can alter it) this is sent to server using communication library. More...

#include <Dispatching.h>

Inheritance diagram for Dispatching:
Inheritance graph
[legend]
Collaboration diagram for Dispatching:
Collaboration graph
[legend]

Public Slots

void ProcessSignal (EM::Common::EDataCol *data)
 
void ProcessSignal (EM::Common::EDataCol *data)
 

Public Member Functions

 Dispatching ()
 
virtual ~Dispatching ()
 
long Init ()
 
long Start ()
 
void OnPluginRequest (DS_Event &event)
 
EM::Common::EDataCol * GetPluginsProperty ()
 
 Dispatching ()
 
virtual ~Dispatching ()
 
long Init ()
 
long Start ()
 
void OnPluginRequest (DS_Event &event)
 
EM::Common::EDataCol * GetPluginsProperty ()
 

Detailed Description

Class creates interface between application and plugins of dispatching system There are comming events from application (like, "login", "accident" etc.) which are handled in this class in appropriate slots. Events are transferred into DS_Event classes in those methods. DS_Events are sent to all plugins, so plugins which are interested in those events cand handle them and create appropriate message (which will go to server). When message is created (all enabled plugins can alter it) this is sent to server using communication library.

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

Constructor & Destructor Documentation

Dispatching::Dispatching ( )

Standard constructor

Dispatching::~Dispatching ( )
virtual

Standard destructor

Dispatching::Dispatching ( )

Standard constructor

virtual Dispatching::~Dispatching ( )
virtual

Standard destructor

Member Function Documentation

EM::Common::EDataCol * Dispatching::GetPluginsProperty ( )
EM::Common::EDataCol* Dispatching::GetPluginsProperty ( )
long Dispatching::Init ( void  )

Plugin Interface overwriting

Parameters
appECorepointer to ecore of main application
Returns
return 0 when all is OK, error otherwise
long Dispatching::Init ( )

Plugin Interface overwriting

Parameters
appECorepointer to ecore of main application
Returns
return 0 when all is OK, error otherwise
void Dispatching::OnPluginRequest ( DS_Event event)

This method is called from DS_PluginManager receiver event request from one of plugins (e.g. periodical GPS positions)

Parameters
eventgenerated event
void Dispatching::OnPluginRequest ( DS_Event event)

This method is called from DS_PluginManager receiver event request from one of plugins (e.g. periodical GPS positions)

Parameters
eventgenerated event

Here is the call graph for this function:

void Dispatching::ProcessSignal ( EM::Common::EDataCol *  data)
slot

Here is the call graph for this function:

void Dispatching::ProcessSignal ( EM::Common::EDataCol *  data)
slot
long Dispatching::Start ( )

Here is the call graph for this function:

long Dispatching::Start ( )

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