X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2Fdetail%2FEventBinding.cti;h=09fc719314297ead27270fbdef8544accec049ca;hb=ee01b9007d97c64d0a34b91a3dc87ad5c5697df5;hp=f37637e4535ad099c0f0bc46b5b1df0346733ebe;hpb=7465ea4f6d3d54622bd783106cf8b60d5f133343;p=senf.git diff --git a/PPI/detail/EventBinding.cti b/PPI/detail/EventBinding.cti index f37637e..09fc719 100644 --- a/PPI/detail/EventBinding.cti +++ b/PPI/detail/EventBinding.cti @@ -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 // // This program is free software; you can redistribute it and/or modify @@ -26,6 +26,7 @@ //#include "EventBinding.ih" // Custom includes +#include "../EventManager.hh" #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// @@ -36,7 +37,7 @@ template prefix_ void senf::ppi::detail::EventBindingHelper::callback(EventArg event, - boost::posix_time::ptime time) + ClockService::clock_type time) { self().eventTime(time); self().callback_(event); @@ -45,7 +46,7 @@ senf::ppi::detail::EventBindingHelper::callback(EventArg event, template prefix_ void senf::ppi::detail::EventBindingHelper::callback(EventArg event) { - callback(event, boost::posix_time::microsec_clock::universal_time()); + callback(event, self().manager().now()); } //////////////////////////////////////// @@ -62,7 +63,7 @@ prefix_ Self & senf::ppi::detail::EventBindingHelper::self() template prefix_ void -senf::ppi::detail::EventBindingHelper::callback(boost::posix_time::ptime time) +senf::ppi::detail::EventBindingHelper::callback(ClockService::clock_type time) { self().eventTime(time); self().callback_(); @@ -71,7 +72,7 @@ senf::ppi::detail::EventBindingHelper::callback(boost::posix_time::pt template prefix_ void senf::ppi::detail::EventBindingHelper::callback() { - callback(boost::posix_time::microsec_clock::universal_time()); + callback(self().manager().now()); } ////////////////////////////////////////