comparison server/file_sender.h @ 0:a4671277546c tip

created the repository for the thymian project
author ferencd
date Tue, 17 Aug 2021 11:19:54 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a4671277546c
1 #ifndef FILE_SENDER_H
2 #define FILE_SENDER_H
3
4 #include "web_component.h"
5
6 #include <string>
7
8 static const std::string theme_path = "/theme/current/";
9
10 /* just sends a file */
11 class file_sender final : public web_component
12 {
13 public:
14
15 file_sender(tnt::HttpRequest& request, tnt::HttpReply& reply, const std::string &file);
16 file_sender& templatize();
17 unsigned send() final;
18
19 private:
20 std::string mfile;
21 bool mneeds_templates = false;
22 };
23
24 #endif