mirror of https://github.com/Icinga/icinga2.git
25 lines
438 B
C++
25 lines
438 B
C++
#ifndef DEMOCOMPONENT_H
|
|
#define DEMOCOMPONENT_H
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class DemoComponent : public IcingaComponent
|
|
{
|
|
private:
|
|
Timer::Ptr m_DemoTimer;
|
|
VirtualEndpoint::Ptr m_DemoEndpoint;
|
|
|
|
int DemoTimerHandler(const TimerEventArgs& tea);
|
|
int HelloWorldRequestHandler(const NewRequestEventArgs& nrea);
|
|
|
|
public:
|
|
virtual string GetName(void) const;
|
|
virtual void Start(void);
|
|
virtual void Stop(void);
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* DEMOCOMPONENT_H */
|