Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsJob.h @ 3786:3801435e34a1 SylvainRouquette/fix-issue169-95b752c
integration Orthanc-1.6.0->SylvainRouquette
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Mar 2020 11:48:30 +0100 |
parents | 5ff5d5a0fd28 |
children |
comparison
equal
deleted
inserted
replaced
3785:763533d6dd67 | 3786:3801435e34a1 |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
6 * | 6 * |
7 * This program is free software: you can redistribute it and/or | 7 * This program is free software: you can redistribute it and/or |
8 * modify it under the terms of the GNU General Public License as | 8 * modify it under the terms of the GNU General Public License as |
9 * published by the Free Software Foundation, either version 3 of the | 9 * published by the Free Software Foundation, either version 3 of the |
10 * License, or (at your option) any later version. | 10 * License, or (at your option) any later version. |
49 public: | 49 public: |
50 PluginsJob(const _OrthancPluginCreateJob& parameters); | 50 PluginsJob(const _OrthancPluginCreateJob& parameters); |
51 | 51 |
52 virtual ~PluginsJob(); | 52 virtual ~PluginsJob(); |
53 | 53 |
54 virtual void Start() | 54 virtual void Start() ORTHANC_OVERRIDE |
55 { | 55 { |
56 } | 56 } |
57 | 57 |
58 virtual JobStepResult Step(); | 58 virtual JobStepResult Step(const std::string& jobId) ORTHANC_OVERRIDE; |
59 | 59 |
60 virtual void Reset(); | 60 virtual void Reset() ORTHANC_OVERRIDE; |
61 | 61 |
62 virtual void Stop(JobStopReason reason); | 62 virtual void Stop(JobStopReason reason) ORTHANC_OVERRIDE; |
63 | 63 |
64 virtual float GetProgress(); | 64 virtual float GetProgress() ORTHANC_OVERRIDE; |
65 | 65 |
66 virtual void GetJobType(std::string& target) | 66 virtual void GetJobType(std::string& target) ORTHANC_OVERRIDE |
67 { | 67 { |
68 target = type_; | 68 target = type_; |
69 } | 69 } |
70 | 70 |
71 virtual void GetPublicContent(Json::Value& value); | 71 virtual void GetPublicContent(Json::Value& value) ORTHANC_OVERRIDE; |
72 | 72 |
73 virtual bool Serialize(Json::Value& value); | 73 virtual bool Serialize(Json::Value& value) ORTHANC_OVERRIDE; |
74 | 74 |
75 virtual bool GetOutput(std::string& output, | 75 virtual bool GetOutput(std::string& output, |
76 MimeType& mime, | 76 MimeType& mime, |
77 const std::string& key) | 77 const std::string& key) ORTHANC_OVERRIDE |
78 { | 78 { |
79 // TODO | 79 // TODO |
80 return false; | 80 return false; |
81 } | 81 } |
82 }; | 82 }; |