Packets: Fix VariantParser invalid parser access bug
[senf.git] / Scheduler / SignalEvent.hh
index e5f2add..cc4e989 100644 (file)
@@ -23,8 +23,8 @@
 /** \file
     \brief SignalDispatcher public header */
 
-#ifndef HH_SignalDispatcher_
-#define HH_SignalDispatcher_ 1
+#ifndef HH_SENF_Scheduler_SignalEvent_
+#define HH_SENF_Scheduler_SignalEvent_ 1
 
 // Custom includes
 #include <signal.h>
@@ -60,7 +60,7 @@ namespace scheduler {
         callback is a member function it should be defined as a class member).
      */
     class SignalEvent
-        : public FIFORunner::TaskInfo,
+        : public detail::FIFORunner::TaskInfo,
           public detail::SignalSetBase 
     {
     public:
@@ -91,11 +91,13 @@ namespace scheduler {
 
         void disable();                 ///< Enable signal event registration
         void enable();                  ///< Disable the signal event registration
-        bool enabled() const;           ///< \c true, if event enabled, \c false otherwise
+
         void action(Callback const & cb); ///< Change signal event callback
 
     private:
-        virtual void run();
+        virtual void v_run();
+        virtual char const * v_type() const;
+        virtual std::string v_info() const;
         
         int signal_;
         Callback cb_;
@@ -104,7 +106,6 @@ namespace scheduler {
         friend class detail::SignalSetCompare;
         friend class detail::FindNumericSignal;
         friend class detail::SignalDispatcher;
-        friend class senf::Scheduler;
     };