semilimes mcu sdk 1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
fc_button_list.h
1#ifndef _fc_button_list_
2#define _fc_button_list_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 106
10 #define headerArraySize 24
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15public:
16// Function: ~FcButtonList
17
18// distructor of the class, frees up the memory occupied by the array/s
19
20// Prototype:
21// ~FcButtonList()
22
23// Parameters:
24
25// Returns:
28 {
29 delete[] json;
30 delete[] jsonArray;
31 json = nullptr;
32 jsonArray = nullptr;
33 }
34
35// Function: FcButtonList.set
36
37// Initialize a group of user-clickable buttons with a label
38
39// Prototype:
40// void FcButtonList::set(char* refname,char* title,bool reqSel,char* value,bool vertList);
41
42// Parameters:
48
49// Returns:
51 void set(char* refname,char* title,bool reqSel,char* value,bool vertList);
52
53// Function: FcButtonList.addOptions
54
55// add an array of options where name is the option identifier and value is the text displayed to the user
56
57// Prototype:
58// void FcButtonList::addOptions(char* data);
59
60// Parameters:
63
64// Returns:
66 void addOptions(char* name,char* value);
67
68// Function: FcButtonList.appendOptions
69
70// Append the selected options
71
72// Prototype:
73// void FcButtonList::appendOptions();
74
75// Parameters:
76
77// Returns:
79 void appendOptions();
80
81// Function: FcButtonList.get
82
83// return the json script
84
85// Prototype:
86// void FcButtonList::get();
87
88// Parameters:
89
90// Returns:
92 char* get();
93};
94
95#endif
Definition fc_button_list.h:7
void appendOptions()
Definition fc_button_list.cpp:81
void set(char *refname, char *title, bool reqSel, char *value, bool vertList)
Definition fc_button_list.cpp:20
void addOptions(char *name, char *value)
Definition fc_button_list.cpp:48
~FcButtonList()
Definition fc_button_list.h:27
char * get()
Definition fc_button_list.cpp:100