Mercurial > hg > orthanc
comparison OrthancCppClient/HttpClient.h @ 474:a9693dc7089c
move tostring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jul 2013 17:25:53 +0200 |
parents | c9a5d72f8481 |
children | 72cca077abf8 |
comparison
equal
deleted
inserted
replaced
473:c9a5d72f8481 | 474:a9693dc7089c |
---|---|
26 | 26 |
27 | 27 |
28 #pragma once | 28 #pragma once |
29 | 29 |
30 #include "HttpException.h" | 30 #include "HttpException.h" |
31 | |
32 #include "../Core/Toolbox.h" | |
31 | 33 |
32 #include <string> | 34 #include <string> |
33 #include <boost/shared_ptr.hpp> | 35 #include <boost/shared_ptr.hpp> |
34 #include <json/json.h> | 36 #include <json/json.h> |
35 | 37 |
110 return lastStatus_; | 112 return lastStatus_; |
111 } | 113 } |
112 | 114 |
113 const char* GetLastStatusText() const | 115 const char* GetLastStatusText() const |
114 { | 116 { |
115 return HttpException::GetDescription(lastStatus_); | 117 return Toolbox::ToString(lastStatus_); |
116 } | 118 } |
117 | 119 |
118 void SetCredentials(const char* username, | 120 void SetCredentials(const char* username, |
119 const char* password); | 121 const char* password); |
120 | 122 |