NetBurner 3.5.7
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
11// Web UI Configuration class for storing user credentials and device settings
12class WebUIConfig : public config_obj
13{
14 public:
15 // Application-specific settings only (stored in AppData)
16 config_string m_username{"", "Username", "Web interface username"};
17 config_pass m_password{"", "Password", "Web interface password"};
18
19 ConfigEndMarker;
20
21 WebUIConfig(config_obj &owner, const char *name, const char *desc = nullptr) : config_obj(owner, name, desc) {}
22};
23
24// Global configuration instance - declare as extern here, define in main.cpp
25extern WebUIConfig gWebUIConfig;
26
27#endif // WEBUI_CONFIG_H
Base class used to create configuration objects.
Definition config_obj.h:321
Password string Configuration Variable.
Definition config_obj.h:1346
String Configuration Variable.
Definition config_obj.h:1128