From: Steve Brokenshire Date: Wed, 11 Jan 2017 19:26:24 +0000 (+0000) Subject: structs: Added header for structs used within Xestia Calendar X-Git-Tag: release-0.02~33 X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=commitdiff_plain;h=b1ba745b5db48eaf31a7df8b36362e2d9eecb1d6 structs: Added header for structs used within Xestia Calendar --- 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