Mercurial > hg > orthanc-transfers
comparison Framework/HttpQueries/DetectTransferPlugin.h @ 5:5e6de82bb10f
use of user properties instead of BidirectionalPeers option
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 18 Sep 2018 15:39:02 +0200 |
parents | 1ed03945c057 |
children | 4c3437217518 |
comparison
equal
deleted
inserted
replaced
4:1ed03945c057 | 5:5e6de82bb10f |
---|---|
29 namespace OrthancPlugins | 29 namespace OrthancPlugins |
30 { | 30 { |
31 class DetectTransferPlugin : public IHttpQuery | 31 class DetectTransferPlugin : public IHttpQuery |
32 { | 32 { |
33 public: | 33 public: |
34 typedef std::map<std::string, PeerCapabilities> Peers; | 34 typedef std::map<std::string, bool> Result; |
35 | 35 |
36 private: | 36 private: |
37 Peers& target_; | 37 Result& result_; |
38 std::string peer_; | 38 std::string peer_; |
39 std::string uri_; | 39 std::string uri_; |
40 | 40 |
41 public: | 41 public: |
42 DetectTransferPlugin(Peers& target, | 42 DetectTransferPlugin(Result& result, |
43 const std::string& peer); | 43 const std::string& peer); |
44 | 44 |
45 virtual Orthanc::HttpMethod GetMethod() const | 45 virtual Orthanc::HttpMethod GetMethod() const |
46 { | 46 { |
47 return Orthanc::HttpMethod_Get; | 47 return Orthanc::HttpMethod_Get; |
60 virtual void ReadBody(std::string& body) const; | 60 virtual void ReadBody(std::string& body) const; |
61 | 61 |
62 virtual void HandleAnswer(const void* answer, | 62 virtual void HandleAnswer(const void* answer, |
63 size_t size); | 63 size_t size); |
64 | 64 |
65 static void Apply(Peers& peers, | 65 static void Apply(Result& result, |
66 OrthancPluginContext* context, | 66 OrthancPluginContext* context, |
67 size_t threadsCount, | 67 size_t threadsCount, |
68 unsigned int timeout); | 68 unsigned int timeout); |
69 }; | 69 }; |
70 } | 70 } |