mirror of
https://github.com/Relintai/mourne_rcpp_fw.git
synced 2024-12-23 21:16:50 +01:00
Added alliance node.
This commit is contained in:
parent
c553d1c850
commit
2aeb1712b9
42
app/alliance/alliance_node.cpp
Normal file
42
app/alliance/alliance_node.cpp
Normal file
@ -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<AdminSectionLinkInfo> *links) {
|
||||||
|
links->push_back(AdminSectionLinkInfo("- Alliance Editor", ""));
|
||||||
|
}
|
||||||
|
bool AllianceNode::admin_full_render() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
AllianceNode::AllianceNode() :
|
||||||
|
AdminNode() {
|
||||||
|
}
|
||||||
|
|
||||||
|
AllianceNode::~AllianceNode() {
|
||||||
|
}
|
28
app/alliance/alliance_node.h
Normal file
28
app/alliance/alliance_node.h
Normal file
@ -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<AdminSectionLinkInfo> *links);
|
||||||
|
bool admin_full_render();
|
||||||
|
|
||||||
|
AllianceNode();
|
||||||
|
~AllianceNode();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user