Mercurial > hg > orthanc-stone
comparison Platforms/Generic/OracleDelayedCallExecutor.h @ 1066:b537002f83a9 broker
removing broker from deprecated classes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Oct 2019 15:39:39 +0200 |
parents | c35e98d22764 |
children | 21c2b0eee53c |
comparison
equal
deleted
inserted
replaced
1065:9d42f89b8c3c | 1066:b537002f83a9 |
---|---|
34 private: | 34 private: |
35 Oracle& oracle_; | 35 Oracle& oracle_; |
36 OrthancStone::NativeStoneApplicationContext& context_; | 36 OrthancStone::NativeStoneApplicationContext& context_; |
37 | 37 |
38 public: | 38 public: |
39 OracleDelayedCallExecutor(OrthancStone::MessageBroker& broker, | 39 OracleDelayedCallExecutor(Oracle& oracle, |
40 Oracle& oracle, | |
41 OrthancStone::NativeStoneApplicationContext& context) : | 40 OrthancStone::NativeStoneApplicationContext& context) : |
42 IDelayedCallExecutor(broker), | |
43 oracle_(oracle), | 41 oracle_(oracle), |
44 context_(context) | 42 context_(context) |
45 { | 43 { |
46 } | 44 } |
47 | 45 |
48 virtual void Schedule(OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, | 46 virtual void Schedule(OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, |
49 unsigned int timeoutInMs = 1000) | 47 unsigned int timeoutInMs = 1000) |
50 { | 48 { |
51 oracle_.Submit(new DelayedCallCommand(broker_, callback, timeoutInMs, NULL, context_)); | 49 oracle_.Submit(new DelayedCallCommand(callback, timeoutInMs, NULL, context_)); |
52 } | 50 } |
53 }; | 51 }; |
54 } | 52 } |