From 2aeb1712b9cdb3c492b9d95ba9eca7a051409ba5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 18 Feb 2022 00:01:19 +0100 Subject: [PATCH] Added alliance node. --- app/alliance/alliance_node.cpp | 42 ++++++++++++++++++++++++++++++++++ app/alliance/alliance_node.h | 28 +++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 app/alliance/alliance_node.cpp create mode 100644 app/alliance/alliance_node.h diff --git a/app/alliance/alliance_node.cpp b/app/alliance/alliance_node.cpp new file mode 100644 index 0000000..1a69424 --- /dev/null +++ b/app/alliance/alliance_node.cpp @@ -0,0 +1,42 @@ +#include "alliance_node.h" + +#include "web/html/form_validator.h" +#include "web/html/html_builder.h" +#include "web/http/cookie.h" +#include "web/http/http_enums.h" +#include "web/http/http_session.h" +#include "web/http/request.h" +#include "web/http/session_manager.h" + +#include "../html_macros.h" + +#include "database/database.h" +#include "database/database_manager.h" +#include "database/query_builder.h" +#include "database/query_result.h" +#include "database/table_builder.h" + +#include "crypto/hash/sha256.h" + +void AllianceNode::handle_request_default(Request *request) { +} + +void AllianceNode::admin_handle_request_main(Request *request) { + request->send_error(404); +} +String AllianceNode::admin_get_section_name() { + return "Alliances"; +} +void AllianceNode::admin_add_section_links(Vector *links) { + links->push_back(AdminSectionLinkInfo("- Alliance Editor", "")); +} +bool AllianceNode::admin_full_render() { + return false; +} + +AllianceNode::AllianceNode() : + AdminNode() { +} + +AllianceNode::~AllianceNode() { +} diff --git a/app/alliance/alliance_node.h b/app/alliance/alliance_node.h new file mode 100644 index 0000000..4106a99 --- /dev/null +++ b/app/alliance/alliance_node.h @@ -0,0 +1,28 @@ +#ifndef ALLIANCE_NODE_H +#define ALLIANCE_NODE_H + +#include "core/containers/vector.h" +#include "core/string.h" + +#include "web_modules/admin_panel/admin_node.h" + +class Request; +class FormValidator; +class QueryResult; + +class AllianceNode : public AdminNode { + RCPP_OBJECT(AllianceNode, AdminNode); + +public: + void handle_request_default(Request *request); + + void admin_handle_request_main(Request *request); + String admin_get_section_name(); + void admin_add_section_links(Vector *links); + bool admin_full_render(); + + AllianceNode(); + ~AllianceNode(); +}; + +#endif \ No newline at end of file