Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
structs: Added header for structs used within Xestia Calendar
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 11 Jan 2017 19:26:24 +0000 (19:26 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 11 Jan 2017 19:26:24 +0000 (19:26 +0000)
source/common/structs.h [new file with mode: 0644]

diff --git a/source/common/structs.h b/source/common/structs.h
new file mode 100644 (file)
index 0000000..b90db07
--- /dev/null
@@ -0,0 +1,52 @@
+#ifndef __COMMON_STRUCTS_H__
+#define __COMMON_STRUCTS_H__
+
+#include <string>
+
+#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<int> hideAccountsList;
+       std::vector<int> 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
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