Mercurial > hg > orthanc-stone
comparison Platforms/Generic/DelayedCallCommand.h @ 726:4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 May 2019 11:43:25 +0200 |
parents | 2a8ac2d426db |
children | c35e98d22764 |
comparison
equal
deleted
inserted
replaced
714:d2c0e347ddc2 | 726:4f2416d519b4 |
---|---|
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 | 30 |
31 #include <boost/date_time/posix_time/posix_time.hpp> | 31 #include <boost/date_time/posix_time/posix_time.hpp> |
32 | 32 |
33 namespace OrthancStone | 33 namespace Deprecated |
34 { | 34 { |
35 class DelayedCallCommand : public IOracleCommand, IObservable | 35 class DelayedCallCommand : public IOracleCommand, OrthancStone::IObservable |
36 { | 36 { |
37 protected: | 37 protected: |
38 std::auto_ptr<MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_; | 38 std::auto_ptr<OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage> > callback_; |
39 std::auto_ptr<Orthanc::IDynamicObject> payload_; | 39 std::auto_ptr<Orthanc::IDynamicObject> payload_; |
40 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(MessageBroker& broker, | 45 DelayedCallCommand(OrthancStone::MessageBroker& broker, |
46 MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership | 46 OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership |
47 unsigned int timeoutInMs, | 47 unsigned int timeoutInMs, |
48 Orthanc::IDynamicObject* payload /* takes ownership */, | 48 Orthanc::IDynamicObject* payload /* takes ownership */, |
49 NativeStoneApplicationContext& context | 49 OrthancStone::NativeStoneApplicationContext& context |
50 ); | 50 ); |
51 | 51 |
52 virtual void Execute(); | 52 virtual void Execute(); |
53 | 53 |
54 virtual void Commit(); | 54 virtual void Commit(); |