Mercurial > hg > orthanc
diff OrthancServer/DicomProtocol/ReusableDicomUserConnection.h @ 1427:d710ea64f0fd
Custom setting of the local AET during C-Store SCU (both in Lua and in the REST API)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Jun 2015 12:42:54 +0200 |
parents | 6e7e5ed91c2d |
children | c0bdc47165ef |
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.h Fri Jun 26 16:30:51 2015 +0200 +++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.h Mon Jun 29 12:42:54 2015 +0200 @@ -49,12 +49,9 @@ boost::posix_time::time_duration timeBeforeClose_; boost::posix_time::ptime lastUse_; boost::thread closeThread_; - std::string localAet_; - void Open(const std::string& remoteAet, - const std::string& address, - int port, - ModalityManufacturer manufacturer); + void Open(const std::string& localAet, + const RemoteModalityParameters& remote); void Close(); @@ -73,14 +70,9 @@ public: Locker(ReusableDicomUserConnection& that, + const std::string& localAet, const RemoteModalityParameters& remote); - Locker(ReusableDicomUserConnection& that, - const std::string& aet, - const std::string& address, - int port, - ModalityManufacturer manufacturer); - DicomUserConnection& GetConnection(); }; @@ -88,16 +80,7 @@ virtual ~ReusableDicomUserConnection(); - uint64_t GetMillisecondsBeforeClose() const - { - return static_cast<uint64_t>(timeBeforeClose_.total_milliseconds()); - } - void SetMillisecondsBeforeClose(uint64_t ms); - - const std::string& GetLocalApplicationEntityTitle() const; - - void SetLocalApplicationEntityTitle(const std::string& aet); }; }