namespace WrtDeviceApis {
namespace Commons {
-
/**
* Base class for listeners.
* Object that is to act as listener should dervie from this class and implement
public:
EventListener(ThreadEnum::Enumeration threadType) :
EventReceiver<TemplateEvent>(threadType)
- {
- }
+ {}
virtual void onAnswerReceived(const DPL::SharedPtr<TemplateEvent>& event) =
0;
void postAnswer(const DPL::SharedPtr<TemplateEvent>& event)
{
- DPL::Event::ControllerEventHandler<DPL::SharedPtr<TemplateEvent> >::PostEvent(
+ DPL::Event::ControllerEventHandler<DPL::SharedPtr<TemplateEvent> >::
+ PostEvent(
event);
}
onAnswerReceived(event);
}
};
-
}
} // WrtDeviceApisCommon