Various small changes
[dasher.git] / Src / DasherCore / DasherComponent.h
blobaa8df1b443477ef5fd7eb202081505dd7a22079c
1 #ifndef __dashercomponent_h__
2 #define __dashercomponent_h__
4 namespace Dasher {
5 class CDasherComponent;
6 class CEvent;
7 class CEventHandler;
10 class Dasher::CEvent;
11 class Dasher::CEventHandler;
12 #include "SettingsStore.h"
16 class Dasher::CDasherComponent {
17 public:
18 CDasherComponent(Dasher::CEventHandler * pEventHandler, CSettingsStore * pSettingsStore);
20 virtual ~CDasherComponent();
22 void InsertEvent(Dasher::CEvent * pEvent);
24 virtual void HandleEvent(Dasher::CEvent * pEvent) {};
26 bool GetBoolParameter(int iParameter) const;
27 long GetLongParameter(int iParameter) const;
28 std::string GetStringParameter(int iParameter) const;
29 void SetBoolParameter(int iParameter, bool bValue) const;
30 void SetLongParameter(int iParameter, long lValue) const;
31 void SetStringParameter(int iParameter, std::string & sValue) const;
33 ParameterType GetParameterType(int iParameter) const;
34 std::string GetParameterName(int iParameter) const;
36 protected:
37 Dasher::CEventHandler *m_pEventHandler;
38 CSettingsStore *m_pSettingsStore;
41 #endif