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;
IcingaApplication::Ptr DemoComponent::GetIcingaApplication(void)
{
return static_pointer_cast<IcingaApplication>(GetApplication());
}
string DemoComponent::GetName(void) const
{
return "democomponent";

View File

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