Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated/Added copyright header and licensing to all source files
[xestiacalendar/.git] / source / common / structs.h
1 // structs.h - Structs and Enumerators header.
2 //
3 // (c) 2012-2017 Xestia Software Development.
4 //
5 // This file is part of Xestia Calendar.
6 //
7 // Xestia Calendar is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
10 //
11 // Xestia Calendar is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Calendar. If not, see <http://www.gnu.org/licenses/> 
19 #ifndef __COMMON_STRUCTS_H__
20 #define __COMMON_STRUCTS_H__
22 #include <string>
24 #include "colour.h"
26 struct CalendarProperties {
27         bool editMode = false;
28         int accountPreferencesID = -1;
29         int accountID = 0;
30         int calendarID = 0;
31         std::string accountName = "";
32         std::string calendarName = "";
33         std::string calendarDescription = "";
34         Colour calendarColour;
35 };
37 struct EventProperties {
38         bool editMode = false;
39         int accountPreferencesID = -1;
40         int accountID = 0;
41         int calendarID = 0;
42         int eventID = 0;
43         std::string eventName = "";
44         std::string eventDescipriton = "";
45         int eventYear = 0;
46         int eventMonth = 0;
47         int eventDay = 0;
48         int eventHour = 0;
49         int eventMinute = 0;
50         int eventSecond = 0;
51         std::vector<int> hideAccountsList;
52         std::vector<int> hideCalendarsList;     
53 };
55 struct ColourUpdateProperties{
56         int calendarID = 0;
57         Colour newColour;
58 };
60 enum XCCalendarMenuID {
61         ID_CALENDARMENU_EDIT = 1,
62         ID_CALENDARMENU_DELETE,
63 };
65 enum XCEventMenuID {
66         ID_EVENTMENU_EDIT = 1,
67         ID_EVENTMENU_DELETE,
68 };
70 #endif
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy