semilimes mcu sdk 1.1.3 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
6 class FcBucketPicker
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11 char* jsonArray = nullptr;
12
13 public:
14// variable: FcBucketPicker.featureTypes
15
16// describes the type of the feature
18 char featureTypes[4][10] = {"post", "profile", "groupchat", "channel"};
19// Function: ~FcBucketPicker
20
21// distructor of the class, frees up the memory occupied by the array/s
22
23// Prototype:
24// ~FcBucketPicker()
25
26// Parameters:
27
28// Returns:
30 ~FcBucketPicker()
31 {
32 delete[] json;
33 delete[] jsonArray;
34 json = nullptr;
35 jsonArray = nullptr;
36 }
37
38// Function: FcBucketPicker.set
39
40// A picker allowing to select and reference buckets
41
42// Prototype:
43// void FcBucketPicker::set(const char* refname,const char* title,bool reqSel, const char* filter,const char* actBtnTitle,bool multiSel);
44
45// Parameters:
52
53// Returns:
55 void set(const char* refname,const char* title,bool reqSel, const char* filter,const char* actBtnTitle,bool multiSel);
56
57// Function: FcBucketPicker.addValue
58
59// add a selected bucket id upon form submission. It can be of the following types: char featureTypes[4][10] = {"post", "profile", "groupchat", "channel"};
60
61// Prototype:
62// void FcBucketPicker::addValue(const char* value, const char* featuretype);
63
64// Parameters:
67
68// Returns:
70 void addValue(const char* id, const char* featuretype);
71
72// Function: FcBucketPicker.appendValue
73
74// Append the selected buckets
75
76// Prototype:
77// void FcBucketPicker::appendValue();
78
79// Parameters:
80
81// Returns:
83 void appendValue();
84
85
86// Function: FcBucketPicker.get
87
88// return the json script
89
90// Prototype:
91// void FcBucketPicker::get();
92
93// Parameters:
94
95// Returns:
97 char* get();
98};
99
100#endif
FcBucketPicker
Definition fc_bucket_picker.h:7
FcBucketPicker::addValue
void addValue(const char *id, const char *featuretype)
Definition fc_bucket_picker.cpp:49
FcBucketPicker::appendValue
void appendValue()
Definition fc_bucket_picker.cpp:82
FcBucketPicker::get
char * get()
Definition fc_bucket_picker.cpp:104
FcBucketPicker::~FcBucketPicker
~FcBucketPicker()
Definition fc_bucket_picker.h:30
FcBucketPicker::featureTypes
char featureTypes[4][10]
Definition fc_bucket_picker.h:18
FcBucketPicker::set
void set(const char *refname, const char *title, bool reqSel, const char *filter, const char *actBtnTitle, bool multiSel)
Definition fc_bucket_picker.cpp:21