From c4f0bd9538ab86a98b6eb9732347cab26d44ee97 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 6 Feb 2022 12:50:28 +0100 Subject: [PATCH] Added the skeleton of 2 more static pages. --- web_modules/static_pages/static_page_file.cpp | 18 +++++++++++++++++ web_modules/static_pages/static_page_file.h | 20 +++++++++++++++++++ .../static_pages/static_page_folder_files.cpp | 18 +++++++++++++++++ .../static_pages/static_page_folder_files.h | 20 +++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 web_modules/static_pages/static_page_file.cpp create mode 100644 web_modules/static_pages/static_page_file.h create mode 100644 web_modules/static_pages/static_page_folder_files.cpp create mode 100644 web_modules/static_pages/static_page_folder_files.h diff --git a/web_modules/static_pages/static_page_file.cpp b/web_modules/static_pages/static_page_file.cpp new file mode 100644 index 0000000..7900092 --- /dev/null +++ b/web_modules/static_pages/static_page_file.cpp @@ -0,0 +1,18 @@ +#include "static_page_file.h" + +#include "web/http/request.h" +#include "web/file_cache.h" +#include "web/html/html_builder.h" + +void StaticPageFile::handle_request_main(Request *request) { +} + +void StaticPageFile::load() { +} + +StaticPageFile::StaticPageFile() : + WebNode() { +} + +StaticPageFile::~StaticPageFile() { +} diff --git a/web_modules/static_pages/static_page_file.h b/web_modules/static_pages/static_page_file.h new file mode 100644 index 0000000..8ded421 --- /dev/null +++ b/web_modules/static_pages/static_page_file.h @@ -0,0 +1,20 @@ +#ifndef STATIC_PAGE_FILE_H +#define STATIC_PAGE_FILE_H + +#include "core/string.h" + +#include "web/http/web_node.h" + +class StaticPageFile : public WebNode { + RCPP_OBJECT(StaticPageFile, WebNode); + +public: + void handle_request_main(Request *request); + + void load(); + + StaticPageFile(); + ~StaticPageFile(); +}; + +#endif \ No newline at end of file diff --git a/web_modules/static_pages/static_page_folder_files.cpp b/web_modules/static_pages/static_page_folder_files.cpp new file mode 100644 index 0000000..a21d085 --- /dev/null +++ b/web_modules/static_pages/static_page_folder_files.cpp @@ -0,0 +1,18 @@ +#include "static_page_folder_files.h" + +#include "web/http/request.h" +#include "web/file_cache.h" +#include "web/html/html_builder.h" + +void StaticPageFolderFiles::handle_request_main(Request *request) { +} + +void StaticPageFolderFiles::load() { +} + +StaticPageFolderFiles::StaticPageFolderFiles() : + WebNode() { +} + +StaticPageFolderFiles::~StaticPageFolderFiles() { +} diff --git a/web_modules/static_pages/static_page_folder_files.h b/web_modules/static_pages/static_page_folder_files.h new file mode 100644 index 0000000..213db13 --- /dev/null +++ b/web_modules/static_pages/static_page_folder_files.h @@ -0,0 +1,20 @@ +#ifndef STATIC_PAGE_FOLDER_FILES_H +#define STATIC_PAGE_FOLDER_FILES_H + +#include "core/string.h" + +#include "web/http/web_node.h" + +class StaticPageFolderFiles : public WebNode { + RCPP_OBJECT(StaticPageFolderFiles, WebNode); + +public: + void handle_request_main(Request *request); + + void load(); + + StaticPageFolderFiles(); + ~StaticPageFolderFiles(); +}; + +#endif \ No newline at end of file