Mercurial > hg > orthanc
diff Plugins/Engine/PluginsJob.h @ 2814:7d1d3136f6cf
more generic handling of content and serialization in plugin jobs
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Sep 2018 10:09:17 +0200 |
parents | ea7aea6f6a95 |
children | 925d8dc03a23 |
line wrap: on
line diff
--- a/Plugins/Engine/PluginsJob.h Thu Sep 06 18:24:44 2018 +0200 +++ b/Plugins/Engine/PluginsJob.h Fri Sep 07 10:09:17 2018 +0200 @@ -43,16 +43,8 @@ class PluginsJob : public IJob { private: - void *job_; - std::string type_; - Json::Value publicContent_; - bool hasSerialized_; - Json::Value serialized_; - OrthancPluginJobFree free_; - OrthancPluginJobGetProgress getProgress_; - OrthancPluginJobStep step_; - OrthancPluginJobStop stop_; - OrthancPluginJobReset reset_; + _OrthancPluginSubmitJob parameters_; + std::string type_; public: PluginsJob(const _OrthancPluginSubmitJob& parameters); @@ -76,10 +68,7 @@ target = type_; } - virtual void GetPublicContent(Json::Value& value) - { - value = publicContent_; - } + virtual void GetPublicContent(Json::Value& value); virtual bool Serialize(Json::Value& value); };