Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestApi.h @ 1730:bc34c69b594a
New URI "/tools/shutdown" to stop Orthanc from the REST API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 21 Oct 2015 10:34:29 +0200 |
parents | 1b7def486e62 |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1726:9d8bb6bc2890 | 1730:bc34c69b594a |
---|---|
47 public: | 47 public: |
48 typedef std::set<std::string> SetOfStrings; | 48 typedef std::set<std::string> SetOfStrings; |
49 | 49 |
50 private: | 50 private: |
51 ServerContext& context_; | 51 ServerContext& context_; |
52 bool leaveBarrier_; | |
52 bool resetRequestReceived_; | 53 bool resetRequestReceived_; |
53 | 54 |
54 void RegisterSystem(); | 55 void RegisterSystem(); |
55 | 56 |
56 void RegisterChanges(); | 57 void RegisterChanges(); |
63 | 64 |
64 void RegisterArchive(); | 65 void RegisterArchive(); |
65 | 66 |
66 static void ResetOrthanc(RestApiPostCall& call); | 67 static void ResetOrthanc(RestApiPostCall& call); |
67 | 68 |
69 static void ShutdownOrthanc(RestApiPostCall& call); | |
70 | |
68 public: | 71 public: |
69 OrthancRestApi(ServerContext& context); | 72 OrthancRestApi(ServerContext& context); |
70 | 73 |
71 const bool& ResetRequestReceivedFlag() const | 74 const bool& LeaveBarrierFlag() const |
75 { | |
76 return leaveBarrier_; | |
77 } | |
78 | |
79 bool IsResetRequestReceived() const | |
72 { | 80 { |
73 return resetRequestReceived_; | 81 return resetRequestReceived_; |
74 } | 82 } |
75 | 83 |
76 static OrthancRestApi& GetApi(RestApiCall& call) | 84 static OrthancRestApi& GetApi(RestApiCall& call) |