semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
fc_event_picker.h
1#ifndef _fc_event_picker_
2#define _fc_event_picker_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 121
10 #define headerArraySize 92
11 #define headerArray2Size 2
12 SmeJson json_data;
13 char* json = nullptr;
14 char* jsonArray = nullptr;
15 char* jsonArray2 = nullptr;
16
17public:
18// is a string that can hold list or buttons value. It will change how the events are displayed upon a date selection in the semilimes app
20char eventsDisplayMode[2][8] = {"list", "buttons"};
21
22// Function: ~FcEventPicker
23
24// distructor of the class, frees up the memory occupied by the array/s
25
26// Prototype:
27// ~FcEventPicker()
28
29// Parameters:
30
31// Returns:
34 {
35 delete[] json;
36 delete[] jsonArray;
37 delete[] jsonArray2;
38 json = nullptr;
39 jsonArray = nullptr;
40 jsonArray2 = nullptr;
41 }
42
43// Function: FcEventPicker.set
44
45// A calendar-shaped form component which allows the user to navigate through events and pick one or more for sending it out in a form submission
46
47// Prototype:
48// void FcEventPicker::set(char* refname, char* title, bool requiredSelection, bool multiSelection, char* eventsDisplayMode);
49
50// Parameters:
57
58// Returns:
60 void set(char* refname, char* title, bool reqSel, bool multiSelection, char* eventsDisplayMode);
61
62
63// Function: FcEventPicker.addValue
64
65// is an array that contains one or more selected events when the form is submitted
66
67// Prototype:
68// void FcEventPicker::addValue(char* value);
69
70// Parameters:
72
73// Returns:
75 void addValue(char* value);
76
77
78// Function: FcEventPicker.appendValues
79
80// Prototype:
81// void FcEventPicker::appendValues();
82
83// Append the selected Values
84
86
87// Returns:
89 void appendValues();
90
91
92// Function: FcEventPicker.addEvent
93
94// is an array of predetermined events that populate the calendar widget displayed in the semilimes app
95
96// Prototype:
97// void FcEventPicker::addEvent(char* id, int start, char* title, char* description, char* referenceBucketId, char* additionalInfo);
98
99// Parameters:
106
107// Returns:
109 void addEvent(char* id, int start, char* title, char* description, char* referenceBucketId, char* additionalInfo);
110
111
112// Function: FcEventPicker.appendValues
113
114// Append the selected options
115
116// Prototype:
118
119// Parameters:
120
121// Returns:
123 void appendEvents();
124
125
126// Function: FcEventPicker.get
127
128// return the json script
129
130// Prototype:
131// void FcEventPicker::get();
132
133// Parameters:
134
135// Returns:
137 char* get();
138};
139
140#endif
Definition fc_event_picker.h:7
char * get()
Definition fc_event_picker.cpp:163
void appendEvents()
Definition fc_event_picker.cpp:141
void addValue(char *value)
Definition fc_event_picker.cpp:48
~FcEventPicker()
Definition fc_event_picker.h:33
void appendValues()
Definition fc_event_picker.cpp:76
void addEvent(char *id, int start, char *title, char *description, char *referenceBucketId, char *additionalInfo)
Definition fc_event_picker.cpp:104
void set(char *refname, char *title, bool reqSel, bool multiSelection, char *eventsDisplayMode)
Definition fc_event_picker.cpp:21
char eventsDisplayMode[2][8]
Definition fc_event_picker.h:20