Mercurial > hg > orthanc-transfers
comparison Framework/StatefulOrthancJob.h @ 12:34b1875c8e3a
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Mar 2019 16:12:52 +0100 |
parents | 7e207ade2f1a |
children | b06103a50c95 |
comparison
equal
deleted
inserted
replaced
11:4b9c2e0a92c8 | 12:34b1875c8e3a |
---|---|
38 StatefulOrthancJob& job_; | 38 StatefulOrthancJob& job_; |
39 bool updated_; | 39 bool updated_; |
40 Json::Value content_; | 40 Json::Value content_; |
41 | 41 |
42 public: | 42 public: |
43 JobInfo(StatefulOrthancJob& job); | 43 explicit JobInfo(StatefulOrthancJob& job); |
44 | 44 |
45 void SetProgress(float progress) | 45 void SetProgress(float progress) |
46 { | 46 { |
47 job_.UpdateProgress(progress); | 47 job_.UpdateProgress(progress); |
48 } | 48 } |
59 { | 59 { |
60 private: | 60 private: |
61 OrthancPluginJobStepStatus status_; | 61 OrthancPluginJobStepStatus status_; |
62 std::auto_ptr<IState> state_; | 62 std::auto_ptr<IState> state_; |
63 | 63 |
64 StateUpdate(OrthancPluginJobStepStatus status) : | 64 explicit StateUpdate(OrthancPluginJobStepStatus status) : |
65 status_(status) | 65 status_(status) |
66 { | 66 { |
67 } | 67 } |
68 | 68 |
69 StateUpdate(IState* state); | 69 explicit StateUpdate(IState* state); |
70 | 70 |
71 public: | 71 public: |
72 static StateUpdate* Next(IState* state) // Takes ownsership | 72 static StateUpdate* Next(IState* state) // Takes ownsership |
73 { | 73 { |
74 return new StateUpdate(state); | 74 return new StateUpdate(state); |