Cleaned up demo component.

This commit is contained in:
Gunnar Beutner 2012-04-30 13:59:54 +02:00
parent f497c5e932
commit 0c59c675be
2 changed files with 1 additions and 8 deletions

View File

@ -2,11 +2,6 @@
using namespace icinga; using namespace icinga;
IcingaApplication::Ptr DemoComponent::GetIcingaApplication(void)
{
return static_pointer_cast<IcingaApplication>(GetApplication());
}
string DemoComponent::GetName(void) const string DemoComponent::GetName(void) const
{ {
return "democomponent"; return "democomponent";

View File

@ -4,14 +4,12 @@
namespace icinga namespace icinga
{ {
class DemoComponent : public Component class DemoComponent : public IcingaComponent
{ {
private: private:
Timer::Ptr m_DemoTimer; Timer::Ptr m_DemoTimer;
VirtualEndpoint::Ptr m_DemoEndpoint; VirtualEndpoint::Ptr m_DemoEndpoint;
IcingaApplication::Ptr GetIcingaApplication(void);
int DemoTimerHandler(const TimerEventArgs& tea); int DemoTimerHandler(const TimerEventArgs& tea);
int NewEndpointHandler(const NewEndpointEventArgs& neea); int NewEndpointHandler(const NewEndpointEventArgs& neea);
int HelloWorldRequestHandler(const NewRequestEventArgs& nrea); int HelloWorldRequestHandler(const NewRequestEventArgs& nrea);