semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
dc_appointment.h
1#ifndef _dc_appointment_
2#define _dc_appointment_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 89
10 #define headerLocationSize 26
11 SmeJson json_data;
12 char* json = nullptr;
13 char* jsonArray = nullptr;
14
15// Function: DcAppointment.addLocation
16
17// define a specific location where to attend the appointment
18
19// Prototype:
20// void DcAppointment::addLocation(bool silent);
21
22// Parameters:
25
26// Returns:
28 void addLocation(float latitude, float longitude);
29
30public:
31// Function: ~DcAppointment
32
33// distructor of the class, frees up the memory occupied by the array/s
34
35// Prototype:
36// ~DcAppointment()
37
38// Parameters:
39
40// Returns:
43 {
44 delete[] json;
45 delete[] jsonArray;
46 json = nullptr;
47 jsonArray = nullptr;
48 }
49
50// Function: DcAppointment.set
51
52// An appointment message for defining a calendar event, complete with title, description, dates and location
53
54// Prototype:
55// void DcAppointment::set(char* title, char* description, int start, int end, bool allDay, float latitude, float longitude);
56
57// Parameters:
65// Returns:
67 void set(char* title, char* description, int start, int end, bool allDay, float latitude, float longitude);
68
69
70// Function: DcAppointment.get
71
72// return the json script
73
74// Prototype:
75// void DcAppointment::get();
76
77// Parameters:
78
79// Returns:
81 char* get();
82};
83
84#endif
Definition dc_appointment.h:7
~DcAppointment()
Definition dc_appointment.h:42
char * get()
Definition dc_appointment.cpp:75
void set(char *title, char *description, int start, int end, bool allDay, float latitude, float longitude)
Definition dc_appointment.cpp:21