2021-07-07 10:47:37 +02:00
|
|
|
#ifndef PAGED_LIST_H
|
|
|
|
#define PAGED_LIST_H
|
|
|
|
|
2021-11-01 19:53:35 +01:00
|
|
|
#include "core/string.h"
|
2021-07-07 10:47:37 +02:00
|
|
|
|
2022-01-08 12:54:36 +01:00
|
|
|
#include "core/http/web_node.h"
|
|
|
|
|
2021-07-07 10:47:37 +02:00
|
|
|
#include "modules/list_page/list_page.h"
|
|
|
|
#include "modules/paged_article/paged_article.h"
|
|
|
|
|
2022-01-08 12:54:36 +01:00
|
|
|
class PagedList : public WebNode {
|
|
|
|
RCPP_OBJECT(PagedList, WebNode);
|
2022-01-08 10:04:12 +01:00
|
|
|
|
2021-07-07 10:47:37 +02:00
|
|
|
public:
|
2022-01-08 12:54:36 +01:00
|
|
|
void handle_request_main(Request *request);
|
2021-07-07 10:47:37 +02:00
|
|
|
|
|
|
|
void load();
|
|
|
|
|
|
|
|
PagedList();
|
|
|
|
~PagedList();
|
|
|
|
|
|
|
|
ListPage *main_page;
|
|
|
|
PagedArticle *articles;
|
2021-11-01 19:53:35 +01:00
|
|
|
String folder;
|
|
|
|
String base_path;
|
2021-07-07 10:47:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|