comparison Platforms/Generic/DelayedCallCommand.h @ 1222:21c2b0eee53c broker

deprecating MessageHandler
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 07 Dec 2019 18:18:07 +0100
parents e713f1a99861
children 68579a31eeb4
comparison
equal deleted inserted replaced
1218:6f3f1ef347a3 1222:21c2b0eee53c
33 namespace Deprecated 33 namespace Deprecated
34 { 34 {
35 class DelayedCallCommand : public IOracleCommand, OrthancStone::IObservable 35 class DelayedCallCommand : public IOracleCommand, OrthancStone::IObservable
36 { 36 {
37 protected: 37 protected:
38 std::auto_ptr<OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_; 38 std::auto_ptr<MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_;
39 std::auto_ptr<Orthanc::IDynamicObject> payload_; 39 std::auto_ptr<Orthanc::IDynamicObject> payload_;
40 OrthancStone::NativeStoneApplicationContext& context_; 40 OrthancStone::NativeStoneApplicationContext& context_;
41 boost::posix_time::ptime expirationTimePoint_; 41 boost::posix_time::ptime expirationTimePoint_;
42 unsigned int timeoutInMs_; 42 unsigned int timeoutInMs_;
43 43
44 public: 44 public:
45 DelayedCallCommand(OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership 45 DelayedCallCommand(MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership
46 unsigned int timeoutInMs, 46 unsigned int timeoutInMs,
47 Orthanc::IDynamicObject* payload /* takes ownership */, 47 Orthanc::IDynamicObject* payload /* takes ownership */,
48 OrthancStone::NativeStoneApplicationContext& context 48 OrthancStone::NativeStoneApplicationContext& context
49 ); 49 );
50 50