mourne_rcpp_fw/app/weather/weather_controller.h
2022-02-05 23:02:06 +01:00

41 lines
899 B
C++

#ifndef WEATHER_CONTROLLER_H
#define WEATHER_CONTROLLER_H
#include "core/string.h"
#include "core/containers/vector.h"
#include "web_modules/admin_panel/admin_node.h"
#include "weather.h"
class Request;
class FormValidator;
class WeatherController : public AdminNode {
RCPP_OBJECT(WeatherController, 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();
void admin_render_weather_list(Request *request);
void admin_render_weather(Request *request, Ref<Weather> weather);
void create_table();
void drop_table();
void create_default_entries();
static WeatherController *get_singleton();
WeatherController();
~WeatherController();
protected:
static WeatherController *_self;
};
#endif