Utils/Console: Add short help to 'ls' output
[senf.git] / PPI / IdleEvent.cc
index b8a73c8..4c98ad5 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -28,6 +28,7 @@
 
 // Custom includes
 #include "../Scheduler/Scheduler.hh"
+#include "../Utils/Logger/SenfLog.hh"
 
 //#include "IdleEvent.mpp"
 #define prefix_
 
 prefix_ void senf::ppi::IdleEvent::v_enable()
 {
-    id_ = Scheduler::instance().timeout(manager().now(), boost::bind(&IdleEvent::cb,this));
+    timer_.timeout(manager().now());
 }
 
 prefix_ void senf::ppi::IdleEvent::v_disable()
 {
-    Scheduler::instance().cancelTimeout(id_);
-    id_ = 0;
+    timer_.disable();
 }
 
 prefix_ void senf::ppi::IdleEvent::cb()