NetBurner 3.5.8
PDF Version
webui_config.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5#ifndef WEBUI_CONFIG_H
6#define WEBUI_CONFIG_H
7
8#include <config_obj.h>
9#include <config_netobj.h>
10
11class WebUIConfig : public config_obj
12{
13 public:
14 config_bool m_httpsEnabled{true, "HTTPS Enabled", "Enable HTTPS on port 443"};
15 config_bool m_httpEnabled{true, "HTTP Enabled", "Enable HTTP on port 80"};
16 config_bool m_requireAuthForAll{false, "Require Auth For All Pages", "Require login for all web pages, not just configuration. A password must also be set."};
17 ConfigEndMarker;
18 WebUIConfig(config_obj &owner, const char *name, const char *desc = nullptr)
19 : config_obj(owner, name, desc) {}
20};
21
22// Global configuration instance - declare as extern here, define in main.cpp
23extern WebUIConfig gWebUIConfig;
24
25#endif // WEBUI_CONFIG_H
Base class used to create configuration objects.
Definition config_obj.h:323