mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
33 lines
691 B
C++
33 lines
691 B
C++
#ifndef PAGED_ARTICLE_H
|
|
#define PAGED_ARTICLE_H
|
|
|
|
#include <map>
|
|
#include "core/containers/vector.h"
|
|
#include "core/string.h"
|
|
|
|
#include "core/file_cache.h"
|
|
#include "core/http/web_node.h"
|
|
|
|
#include "core/http/request.h"
|
|
#include "paged_article_entry.h"
|
|
|
|
class PagedArticle : public WebNode {
|
|
RCPP_OBJECT(PagedArticle, WebNode);
|
|
|
|
public:
|
|
void handle_request_main(Request *request);
|
|
|
|
void load();
|
|
Ref<PagedArticleEntry> load_folder(const String &folder, const String &path);
|
|
void generate_summaries();
|
|
void generate_summary(Ref<PagedArticleEntry> article);
|
|
|
|
PagedArticle();
|
|
~PagedArticle();
|
|
|
|
std::map<String, Ref<PagedArticleEntry>> pages;
|
|
String folder;
|
|
String base_path;
|
|
};
|
|
|
|
#endif |