2012-04-23 13:45:41 +02:00
|
|
|
#ifndef DEMOCOMPONENT_H
|
|
|
|
#define DEMOCOMPONENT_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-04-30 13:59:54 +02:00
|
|
|
class DemoComponent : public IcingaComponent
|
2012-04-23 13:45:41 +02:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
Timer::Ptr m_DemoTimer;
|
|
|
|
VirtualEndpoint::Ptr m_DemoEndpoint;
|
|
|
|
|
|
|
|
int DemoTimerHandler(const TimerEventArgs& tea);
|
2012-04-24 07:16:34 +02:00
|
|
|
int HelloWorldRequestHandler(const NewRequestEventArgs& nrea);
|
2012-04-23 13:45:41 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual string GetName(void) const;
|
|
|
|
virtual void Start(void);
|
|
|
|
virtual void Stop(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* DEMOCOMPONENT_H */
|