comparison server/category_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 CATEGORY_SENDER_H
2 #define CATEGORY_SENDER_H
3
4 #include "web_component.h"
5 #include "templater.h"
6
7 #include <string>
8
9 /* just sends a file */
10 class category_sender final : public web_component
11 {
12 public:
13
14 category_sender(tnt::HttpRequest& request, tnt::HttpReply& reply, const std::string& what);
15 unsigned send() final;
16
17 private:
18
19 bool populate_short_description(const std::string& key) const;
20 std::string prepareLangTrs(const std::vector<std::string>&);
21 private:
22
23 std::string m_translated;
24 std::vector<template_struct> m_foodStructs;
25 unsigned m_status = HTTP_OK;
26 std::string m_lang = "gb";
27 std::string m_category = "";
28 };
29
30 #endif
31