From b1ba745b5db48eaf31a7df8b36362e2d9eecb1d6 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 11 Jan 2017 19:26:24 +0000 Subject: [PATCH] structs: Added header for structs used within Xestia Calendar --- source/common/structs.h | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 source/common/structs.h diff --git a/source/common/structs.h b/source/common/structs.h new file mode 100644 index 0000000..b90db07 --- /dev/null +++ b/source/common/structs.h @@ -0,0 +1,52 @@ +#ifndef __COMMON_STRUCTS_H__ +#define __COMMON_STRUCTS_H__ + +#include + +#include "colour.h" + +struct CalendarProperties { + bool editMode = false; + int accountPreferencesID = -1; + int accountID = 0; + int calendarID = 0; + std::string accountName = ""; + std::string calendarName = ""; + std::string calendarDescription = ""; + Colour calendarColour; +}; + +struct EventProperties { + bool editMode = false; + int accountPreferencesID = -1; + int accountID = 0; + int calendarID = 0; + int eventID = 0; + std::string eventName = ""; + std::string eventDescipriton = ""; + int eventYear = 0; + int eventMonth = 0; + int eventDay = 0; + int eventHour = 0; + int eventMinute = 0; + int eventSecond = 0; + std::vector hideAccountsList; + std::vector hideCalendarsList; +}; + +struct ColourUpdateProperties{ + int calendarID = 0; + Colour newColour; +}; + +enum XCCalendarMenuID { + ID_CALENDARMENU_EDIT = 1, + ID_CALENDARMENU_DELETE, +}; + +enum XCEventMenuID { + ID_EVENTMENU_EDIT = 1, + ID_EVENTMENU_DELETE, +}; + +#endif \ No newline at end of file -- 2.39.2