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