semilimes mcu sdk 1.1.4 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
6 class DcAppointment
7{
8 private:
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
28 public:
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:
40 ~DcAppointment()
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
DcAppointment
Definition dc_appointment.h:7
DcAppointment::~DcAppointment
~DcAppointment()
Definition dc_appointment.h:40
DcAppointment::get
char * get()
Definition dc_appointment.cpp:75
DcAppointment::set
void set(const char *title, const char *description, int start, int end, bool allDay, float latitude, float longitude)
Definition dc_appointment.cpp:21