semilimes mcu sdk 0.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 SmeJson json_data;
10 char** pjson;
11 char** pjsonArray;
12
13public:
14// Function: FcBucketPicker
15
16// A picker allowing to select and reference buckets
17
18// Prototype:
19// void FcBucketPicker(char* json);
20
21// Parameters:
24
25// Returns:
27 FcBucketPicker(char* json, char* jsonArray)
28 {
29 pjson = &json;
30 pjsonArray = &jsonArray;
31 json_data.initJson(*pjson);
32 json_data.initJsonArray(*pjsonArray);
33 json_data.addPair2JsonStr(*pjson,"formComponentType","bucketpicker");
34 }
35 char featureTypes[4][10] = {"post", "profile", "groupchat", "channel"};
36
37// Function: FcBucketPicker.setObj
38
39// A picker allowing to select and reference buckets
40
41// Prototype:
42// void FcBucketPicker::setObj(char* refname,char* title,bool reqSel, char* filter,char* actBtnTitle,bool multiSel);
43
44// Parameters:
51
52// Returns:
54 void setObj(char* refname,char* title,bool reqSel, char* filter,char* actBtnTitle,bool multiSel);
55
56// Function: FcBucketPicker.addValue
57
58// add a selected bucket id upon form submission. It can be of the following types: char featureTypes[4][10] = {"post", "profile", "groupchat", "channel"};
59
60// Prototype:
61// void FcBucketPicker::addValue(char* value);
62
63// Parameters:
65
66// Returns:
68 void addValue(char* value);
69
70// Function: FcBucketPicker.appendValue
71
72// Append the selected buckets
73
74// Prototype:
75// void FcBucketPicker::appendValue();
76
77// Parameters:
78
79// Returns:
81 void appendValue();
82};
83
84#endif
Definition fc_bucket_picker.h:7
void addValue(char *value)
Definition fc_bucket_picker.cpp:46
void appendValue()
Definition fc_bucket_picker.cpp:63
void setObj(char *refname, char *title, bool reqSel, char *filter, char *actBtnTitle, bool multiSel)
Definition fc_bucket_picker.cpp:21
FcBucketPicker(char *json, char *jsonArray)
Definition fc_bucket_picker.h:27