AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DispatchingModuleInterface.h
Go to the documentation of this file.
1 #ifndef EM_DS_COREDS_PLUGININTERFACE_H
2 #define EM_DS_COREDS_PLUGININTERFACE_H
3 
4 #include "ds_typedefs.h"
5 
6 // when this file is modified incompatible way, all plugins has to be recompiled
8 
9 // forward declaration
10 class DS_Event;
11 
18 {
19 public:
25 
31 
36  virtual bool Init( DispatchingModuleManager *manager ) = 0;
37 
43  virtual ds_string GetName() = 0;
44 
50  virtual ds_string GetVersion() = 0;
51 
56  void Enable();
57 
62  void Disable();
63 
69  bool IsEnabled() const;
70 
75  virtual void RestartTimer( DS_Event &event );
76 
85  virtual bool SendString( DS_Event &event, ds_string &sendString, bool &forceImmediateSending ) = 0;
86 
95  virtual bool PostSendString( DS_Event &event, ds_string &sendString, ds_StringList &sendStringList, bool &forceImmediateSending ) = 0;
96 
97 private:
98  class DataClass;
99  DataClass *d;
100 };
101 
102 #endif
virtual ds_string GetVersion()=0
void Enable()
Definition: DispatchingModuleInterface.cpp:32
virtual bool PostSendString(DS_Event &event, ds_string &sendString, ds_StringList &sendStringList, bool &forceImmediateSending)=0
Interface class for all modules of dispatching system.
Definition: DispatchingModuleInterface.h:17
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
void Disable()
Definition: DispatchingModuleInterface.cpp:37
virtual ds_string GetName()=0
bool IsEnabled() const
Definition: DispatchingModuleInterface.cpp:42
Definition: ds_event.h:6
virtual bool Init(DispatchingModuleManager *manager)=0
virtual bool SendString(DS_Event &event, ds_string &sendString, bool &forceImmediateSending)=0
DispatchingModuleInterface()
Definition: DispatchingModuleInterface.cpp:22
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
std::string ds_string
Definition: ds_typedefs.h:9
Definition: DispatchingModuleManager.h:26
std::list< ds_string * > ds_StringList
Definition: ds_typedefs.h:10
virtual void RestartTimer(DS_Event &event)
Definition: DispatchingModuleInterface.cpp:47
virtual ~DispatchingModuleInterface()
Definition: DispatchingModuleInterface.cpp:27