comparison Platforms/Generic/DelayedCallCommand.h @ 588:2a8ac2d426db

renamed ColorTextureSceneLayer, dropped dependency on boost::chrono
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Apr 2019 13:54:42 +0200
parents 26b90b110719
children 4f2416d519b4
comparison
equal deleted inserted replaced
586:5b4890d289cf 588:2a8ac2d426db
25 25
26 #include "../../Framework/Toolbox/IDelayedCallExecutor.h" 26 #include "../../Framework/Toolbox/IDelayedCallExecutor.h"
27 #include "../../Framework/Messages/IObservable.h" 27 #include "../../Framework/Messages/IObservable.h"
28 #include "../../Framework/Messages/ICallable.h" 28 #include "../../Framework/Messages/ICallable.h"
29 #include "../../Applications/Generic/NativeStoneApplicationContext.h" 29 #include "../../Applications/Generic/NativeStoneApplicationContext.h"
30 #include <boost/chrono.hpp> 30
31 #include <boost/date_time/posix_time/posix_time.hpp>
31 32
32 namespace OrthancStone 33 namespace OrthancStone
33 { 34 {
34 class DelayedCallCommand : public IOracleCommand, IObservable 35 class DelayedCallCommand : public IOracleCommand, IObservable
35 { 36 {
36 protected: 37 protected:
37 std::auto_ptr<MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_; 38 std::auto_ptr<MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_;
38 std::auto_ptr<Orthanc::IDynamicObject> payload_; 39 std::auto_ptr<Orthanc::IDynamicObject> payload_;
39 NativeStoneApplicationContext& context_; 40 NativeStoneApplicationContext& context_;
40 boost::chrono::system_clock::time_point expirationTimePoint_; 41 boost::posix_time::ptime expirationTimePoint_;
41 unsigned int timeoutInMs_; 42 unsigned int timeoutInMs_;
42 43
43 public: 44 public:
44 DelayedCallCommand(MessageBroker& broker, 45 DelayedCallCommand(MessageBroker& broker,
45 MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership 46 MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership