16#include "../ksComponent.h"
25 namespace EConfigParamType
47 EConfigParamType::Type
type{};
79 void addNewParam(std::string
id, std::string label, std::string defaultValue,
int maxLength = 50, EConfigParamType::Type type = {});
A component responsible for providing a set of parameters to ksWifiConfigurator and managing its stor...
Definition ksConfigProvider.h:64
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:30
void addNewParam(std::string id, std::string label, std::string defaultValue, int maxLength=50, EConfigParamType::Type type={})
Defines new configutation parameter.
Definition ksConfigProvider.cpp:16
void addNewParamWithConfigDefault(misc::ksConfig &config, std::string id, std::string label={}, int maxLength=50, EConfigParamType::Type type={})
Defines new configuation parameter (with default value).
Definition ksConfigProvider.cpp:24
std::list< ksConfigParameter > params
List of configuration parameters.
Definition ksConfigProvider.h:68
Base component class.
Definition ksComponent.h:36
Implements low-level configuration file handling.
Definition ksConfig.h:31
A structure that defines configuration parameter.
Definition ksConfigProvider.h:43
std::string label
Value label.
Definition ksConfigProvider.h:45
EConfigParamType::Type type
Parameter type.
Definition ksConfigProvider.h:47
int maxLength
Maximum length of the parameter value.
Definition ksConfigProvider.h:48
std::string value
Default parameter value.
Definition ksConfigProvider.h:46
std::string id
Unique parameter identifier.
Definition ksConfigProvider.h:44