mirror of https://github.com/Icinga/icinga2.git
Cleaned up demo component.
This commit is contained in:
parent
f497c5e932
commit
0c59c675be
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue