comparison OrthancFramework/Sources/HttpServer/HttpFileSender.h @ 4298:db3932f9660d

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 18:21:03 +0100
parents 2007ab69ac16
children d9473bd5ed43
comparison
equal deleted inserted replaced
4297:785a2713323e 4298:db3932f9660d
32 private: 32 private:
33 std::string contentType_; 33 std::string contentType_;
34 std::string filename_; 34 std::string filename_;
35 35
36 public: 36 public:
37 void SetContentType(MimeType contentType) 37 void SetContentType(MimeType contentType);
38 {
39 contentType_ = EnumerationToString(contentType);
40 }
41 38
42 void SetContentType(const std::string& contentType) 39 void SetContentType(const std::string& contentType);
43 {
44 contentType_ = contentType;
45 }
46 40
47 const std::string& GetContentType() const 41 const std::string& GetContentType() const;
48 {
49 return contentType_;
50 }
51 42
52 void SetContentFilename(const std::string& filename); 43 void SetContentFilename(const std::string& filename);
53 44
54 const std::string& GetContentFilename() const 45 const std::string& GetContentFilename() const;
55 {
56 return filename_;
57 }
58 46
59 47
60 /** 48 /**
61 * Implementation of the IHttpStreamAnswer interface. 49 * Implementation of the IHttpStreamAnswer interface.
62 **/ 50 **/
63 51
64 virtual HttpCompression SetupHttpCompression(bool /*gzipAllowed*/, 52 virtual HttpCompression SetupHttpCompression(bool /*gzipAllowed*/,
65 bool /*deflateAllowed*/) ORTHANC_OVERRIDE 53 bool /*deflateAllowed*/) ORTHANC_OVERRIDE;
66 {
67 return HttpCompression_None;
68 }
69 54
70 virtual bool HasContentFilename(std::string& filename) ORTHANC_OVERRIDE; 55 virtual bool HasContentFilename(std::string& filename) ORTHANC_OVERRIDE;
71 56
72 virtual std::string GetContentType() ORTHANC_OVERRIDE; 57 virtual std::string GetContentType() ORTHANC_OVERRIDE;
73 }; 58 };