14#include "../ksComponent.h"
23 namespace EConfigParamType
43 std::string defaultValue;
45 EConfigParamType::Type type{};
66 std::list<ksConfigParameter> params;
77 void addNewParam(std::string
id, std::string label, std::string defaultValue,
int maxLength = 50, EConfigParamType::Type type = {});
A component that provides a set of parameters to the ksWifiConfigurator and is also responsible for h...
Definition ksConfigProvider.h:62
virtual void readParams()=0
Populates the parameter list by processing the configuration file.
virtual void saveParams()=0
Outputs the parameter list to the configuration file.
std::list< ksConfigParameter > & getParameters()
Provides const reference to the list of managed parameters.
Definition ksConfigProvider.cpp:39
void addNewParamWithConfigDefault(ksConfig &config, std::string id, std::string label={}, int maxLength=50, EConfigParamType::Type type={})
Defines new configuation parameter (with default value).
Definition ksConfigProvider.cpp:33
void addNewParam(std::string id, std::string label, std::string defaultValue, int maxLength=50, EConfigParamType::Type type={})
Defines new configutation parameter.
Definition ksConfigProvider.cpp:15
Base component class.
Definition ksComponent.h:51
Implements low-level configuration file handling.
Definition ksConfig.h:31
A structure that defines configuration parameter.
Definition ksConfigProvider.h:40