semilimes mcu sdk 1.1.5
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 SmeJson json_data;
10 char* json = nullptr;
11 char* jsonArray = nullptr;
12
13// Function: DcAppointment.addLocation
14
15// define a specific location where to attend the appointment
16
17// Prototype:
18// void DcAppointment::addLocation(bool silent);
19
20// Parameters:
23
24// Returns:
26 void addLocation(float latitude, float longitude);
27
28public:
29// Function: ~DcAppointment
30
31// distructor of the class, frees up the memory occupied by the array/s
32
33// Prototype:
34// ~DcAppointment()
35
36// Parameters:
37
38// Returns:
41 {
42 delete[] json;
43 delete[] jsonArray;
44 json = nullptr;
45 jsonArray = nullptr;
46 }
47
48// Function: DcAppointment.set
49
50// An appointment message for defining a calendar event, complete with title, description, dates and location
51
52// Prototype:
53// void DcAppointment::set(const char* title, const char* description, int start, int end, bool allDay, float latitude, float longitude);
54
55// Parameters:
63// Returns:
65 void set(const char* title, const char* description, int start, int end, bool allDay, float latitude, float longitude);
66
67
68// Function: DcAppointment.get
69
70// return the json script
71
72// Prototype:
73// void DcAppointment::get();
74
75// Parameters:
76
77// Returns:
79 char* get();
80};
81
82#endif
Definition dc_appointment.h:7
~DcAppointment()
Definition dc_appointment.h:40
char * get()
Definition dc_appointment.cpp:75
void set(const char *title, const char *description, int start, int end, bool allDay, float latitude, float longitude)
Definition dc_appointment.cpp:21