Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added initial version of CalendarObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 13 Jan 2016 21:44:52 +0000 (21:44 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 13 Jan 2016 21:44:52 +0000 (21:44 +0000)
source/objects/calendarobject/CalendarObject.cpp [new file with mode: 0644]
source/objects/calendarobject/CalendarObject.h [new file with mode: 0644]

diff --git a/source/objects/calendarobject/CalendarObject.cpp b/source/objects/calendarobject/CalendarObject.cpp
new file mode 100644 (file)
index 0000000..00f13c8
--- /dev/null
@@ -0,0 +1,9 @@
+#include "CalendarObject.h"
+
+CalendarObjectLoadResult CalendarObject::LoadFile(){
+}
+
+CalendarObjectLoadResult CalendarObject::LoadString(){
+  
+}
\ No newline at end of file
diff --git a/source/objects/calendarobject/CalendarObject.h b/source/objects/calendarobject/CalendarObject.h
new file mode 100644 (file)
index 0000000..1233fa1
--- /dev/null
@@ -0,0 +1,28 @@
+#include <string>
+#include <iostream>
+
+enum CalendarObjectLoadResult {
+    CALENDAROBJECTLOAD_UNITTESTFAIL = -1,
+    CALENDAROBJECTLOAD_OK,
+    CALENDAROBJECTLOAD_MISSING,
+    CALENDAROBJECTLOAD_INVALIDFORMAT,
+    CALENDAROBJECTLOAD_CANNOTOPEN
+};
+
+enum CalendarObjectValidResult{
+    CALENDAROBJECTVALID_UNITTESTFAIL = -1,
+    CALENDAROBJECTVALID_OK,
+    CALENDAROBJECTVALID_INVALIDFORMAT
+};
+
+class CalendarObject{
+
+    CalendarObjectLoadResult LoadFile();
+    CalendarObjectLoadResult LoadString();
+    
+    // Setup virtual subroutines for use by objects
+    // inheriting from CalendarObject later on.
+    
+    virtual CalendarObjectValidResult ValidObject() {};
+  
+};
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