]> granicus.if.org Git - icinga2/commitdiff
Cleaned up demo component.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 30 Apr 2012 11:59:54 +0000 (13:59 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 30 Apr 2012 11:59:54 +0000 (13:59 +0200)
components/demo/democomponent.cpp
components/demo/democomponent.h

index 2af4a1470ffb790f5ba0914c90aadbfb5b9d0f80..1ac38d9559384b95f7c68f6e61e11f429bfd4a4f 100644 (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";
index 51d88336a38d63f3f762467b49e7716821f78aa2..f4087382e27643cbf70ec12b5a2ed504c815bf69 100644 (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);