You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
2.2 KiB
38 lines
2.2 KiB
6 years ago
|
## <i class="fa fa-code"></i> Constructor
|
||
|
|
||
|
### AutoConnectAux
|
||
|
|
||
|
```cpp
|
||
|
AutoConnectAux(const String& uri = String(""), const String& title = String(""), const bool menu = true, const AutoConnectElementVT addons = AutoConnectElementVT())
|
||
|
```
|
||
|
|
||
|
## <i class="fa fa-code"></i> Public member functions
|
||
|
|
||
|
### add
|
||
|
|
||
|
```cpp
|
||
|
void add(AutoConnectElement& addon)
|
||
|
```
|
||
|
```cpp
|
||
|
void add(AutoConnectElementVT addons)
|
||
|
```
|
||
|
Add an element to the auxiliary page. Add the element set to the auxiliary page.
|
||
|
|
||
|
|
||
|
template<typename T>
|
||
|
T& getElement(const String& name);
|
||
|
AutoConnectElement* getElement(const String& name); /**< Get registered AutoConnectElement as specified name */
|
||
|
void menu(const bool post) { _menu = post; } /**< Set or reset the display as menu item for this aux */
|
||
|
bool release(const String& name); /**< Release an AutoConnectElement */
|
||
|
bool setElementValue(const String& name, const String value); /**< Set value to specified element */
|
||
|
bool setElementValue(const String& name, std::vector<String> const& values); /**< Set values collection to specified element */
|
||
|
void setTitle(const String title) { _title = title; } /**< Set a title of the auxiliary page */
|
||
|
void on(const AuxHandlerFunctionT handler, const AutoConnectExitOrder_t order = AC_EXIT_AHEAD) { _handler = handler; _order = order; } /**< Set user handler */
|
||
|
bool load(const String& in); /**< Load whole elements to AutoConnectAux Page */
|
||
|
bool load(const __FlashStringHelper* in); /**< Load whole elements to AutoConnectAux Page */
|
||
|
bool load(Stream& in); /**< Load whole elements to AutoConnectAux Page */
|
||
|
bool loadElement(const String& in, const String& name = String("")); /**< Load specified element */
|
||
|
bool loadElement(const __FlashStringHelper* in, const String& name = String("")); /**< Load specified element */
|
||
|
bool loadElement(Stream& in, const String& name = String("")); /**< Load specified element */
|
||
|
size_t saveElement(Stream& out, std::vector<String> const& names = {}); /**< Write elements of AutoConnectAux to the stream */
|