NetBurner 3.5.7
PDF Version
webui_config.h
1#ifndef WEBUI_CONFIG_H
2#define WEBUI_CONFIG_H
3
4#include <config_obj.h>
5#include <config_netobj.h>
6
7// Web UI Configuration class for storing user credentials and device settings
8class WebUIConfig : public config_obj
9{
10 public:
11 // Application-specific settings only (stored in AppData)
12 config_string m_username{"", "Username", "Web interface username"};
13 config_pass m_password{"", "Password", "Web interface password"};
14
15 ConfigEndMarker;
16
17 WebUIConfig(config_obj &owner, const char *name, const char *desc = nullptr) : config_obj(owner, name, desc) {}
18};
19
20// Global configuration instance - declare as extern here, define in main.cpp
21extern WebUIConfig gWebUIConfig;
22
23#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