semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
fc_bucket_picker.h
1#ifndef _fc_bucket_picker_
2#define _fc_bucket_picker_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 134
10 #define headerArraySize 28
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15public:
16// variable: FcBucketPicker.featureTypes
17
18// describes the type of the feature
20 char featureTypes[4][10] = {"post", "profile", "groupchat", "channel"};
21// Function: ~FcBucketPicker
22
23// distructor of the class, frees up the memory occupied by the array/s
24
25// Prototype:
26// ~FcBucketPicker()
27
28// Parameters:
29
30// Returns:
33 {
34 delete[] json;
35 delete[] jsonArray;
36 json = nullptr;
37 jsonArray = nullptr;
38 }
39
40// Function: FcBucketPicker.set
41
42// A picker allowing to select and reference buckets
43
44// Prototype:
45// void FcBucketPicker::set(char* refname,char* title,bool reqSel, char* filter,char* actBtnTitle,bool multiSel);
46
47// Parameters:
54
55// Returns:
57 void set(char* refname,char* title,bool reqSel, char* filter,char* actBtnTitle,bool multiSel);
58
59// Function: FcBucketPicker.addValue
60
61// add a selected bucket id upon form submission. It can be of the following types: char featureTypes[4][10] = {"post", "profile", "groupchat", "channel"};
62
63// Prototype:
64// void FcBucketPicker::addValue(char* value);
65
66// Parameters:
69
70// Returns:
72 void addValue(char* id, char* featuretype);
73
74// Function: FcBucketPicker.appendValue
75
76// Append the selected buckets
77
78// Prototype:
79// void FcBucketPicker::appendValue();
80
81// Parameters:
82
83// Returns:
85 void appendValue();
86
87
88// Function: FcBucketPicker.get
89
90// return the json script
91
92// Prototype:
93// void FcBucketPicker::get();
94
95// Parameters:
96
97// Returns:
99 char* get();
100};
101
102#endif
Definition fc_bucket_picker.h:7
void addValue(char *id, char *featuretype)
Definition fc_bucket_picker.cpp:49
void appendValue()
Definition fc_bucket_picker.cpp:82
char * get()
Definition fc_bucket_picker.cpp:104
~FcBucketPicker()
Definition fc_bucket_picker.h:32
char featureTypes[4][10]
Definition fc_bucket_picker.h:20
void set(char *refname, char *title, bool reqSel, char *filter, char *actBtnTitle, bool multiSel)
Definition fc_bucket_picker.cpp:21