Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added Unit tests for the Colour struct.
[xestiacalendar/.git] / source / objects / CalDAV / CalDAV.h
index da3b58c..cbe065a 100644 (file)
 #include <iostream>
 #include <vector>
 #include <stdexcept>
+#include <map>
+#include "../../common/colour.h"
+#include "../../common/text.h"
+#include "../../common/uuid.h"
 
 using namespace std;
 
@@ -40,6 +44,13 @@ enum CalDAVQueryResult {
 };
 
 struct CalDAVCalendarList {
+
+       map<int,string> Name;
+       map<int,string> HREF;
+       map<int,int> Order;
+       map<int,string> Description;
+       map<int,Colour> CalColour;
+       map<int,string> Tag;
        
 };
 
@@ -110,7 +121,10 @@ class CalDAV{
 
        private:
                string ProcessXMLUserPrincipal();
-               bool MatchXMLName(xmlNodePtr *NodePtr, string NodeName);
+               string ProcessXMLCalendarHome();
+               CalDAVCalendarList ProcessXMLCalendarList();
+               bool MatchXMLNameTransverse(xmlNodePtr *NodePtr, string NodeName);
+               bool MatchXMLName(xmlNodePtr *NodePtrOriginal, string NodeName);
                string FetchXMLData(xmlNodePtr *NodePtr);
        
                CalDAVConnectionData ConnectionData;
@@ -128,8 +142,10 @@ class CalDAV{
                CalDAVServerResult GetServerResult();
                CalDAVServerSupport GetServerSupport();
                CalDAVCalendarList GetCalendars();
+               CalDAVServerResult AddCalendar(string CalendarName);
        
                string GetUserPrincipal();
+               string GetCalendarHome(string UserPrincipalURI);
        
 };
 
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