Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsJob.h @ 2812:ea7aea6f6a95
improved naming of methods in IJob
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Sep 2018 16:23:40 +0200 |
parents | 7cfc8d266f41 |
children | 7d1d3136f6cf |
comparison
equal
deleted
inserted
replaced
2811:7cfc8d266f41 | 2812:ea7aea6f6a95 |
---|---|
41 namespace Orthanc | 41 namespace Orthanc |
42 { | 42 { |
43 class PluginsJob : public IJob | 43 class PluginsJob : public IJob |
44 { | 44 { |
45 private: | 45 private: |
46 void *job_; | 46 void *job_; |
47 std::string type_; | 47 std::string type_; |
48 Json::Value publicContent_; | 48 Json::Value publicContent_; |
49 bool hasSerialized_; | 49 bool hasSerialized_; |
50 Json::Value serialized_; | 50 Json::Value serialized_; |
51 OrthancPluginJobFree free_; | 51 OrthancPluginJobFree free_; |
52 OrthancPluginJobGetProgress getProgress_; | 52 OrthancPluginJobGetProgress getProgress_; |
53 OrthancPluginJobStep step_; | 53 OrthancPluginJobStep step_; |
54 OrthancPluginJobReleaseResources releaseResources_; | 54 OrthancPluginJobStop stop_; |
55 OrthancPluginJobReset reset_; | 55 OrthancPluginJobReset reset_; |
56 | 56 |
57 public: | 57 public: |
58 PluginsJob(const _OrthancPluginSubmitJob& parameters); | 58 PluginsJob(const _OrthancPluginSubmitJob& parameters); |
59 | 59 |
60 virtual ~PluginsJob(); | 60 virtual ~PluginsJob(); |
61 | 61 |
62 virtual void Start() | 62 virtual void Start() |
63 { | 63 { |
64 } | 64 } |
65 | 65 |
66 virtual JobStepResult ExecuteStep(); | 66 virtual JobStepResult Step(); |
67 | 67 |
68 virtual void SignalResubmit(); | 68 virtual void Reset(); |
69 | 69 |
70 virtual void ReleaseResources(JobReleaseReason reason); | 70 virtual void Stop(JobStopReason reason); |
71 | 71 |
72 virtual float GetProgress(); | 72 virtual float GetProgress(); |
73 | 73 |
74 virtual void GetJobType(std::string& target) | 74 virtual void GetJobType(std::string& target) |
75 { | 75 { |