// structs.h - Structs and Enumerators header. // // (c) 2012-2017 Xestia Software Development. // // This file is part of Xestia Calendar. // // Xestia Calendar is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by the // Free Software Foundation, version 3 of the license. // // Xestia Calendar is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with Xestia Calendar. If not, see #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