X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fobjects%2FCalDAV%2FCalDAV.h;h=cbe065a0a2a6e59164aa079e31ffd4ab67f60566;hb=d22dbc7054f255d8df75b273f8f2df625aab5aa2;hp=da3b58c2205130d294c6d96f4d50de1b590ddade;hpb=18117cb75689beaa9f5e96e44c3e0ea00fe1fa0a;p=xestiacalendar%2F.git diff --git a/source/objects/CalDAV/CalDAV.h b/source/objects/CalDAV/CalDAV.h index da3b58c..cbe065a 100644 --- a/source/objects/CalDAV/CalDAV.h +++ b/source/objects/CalDAV/CalDAV.h @@ -26,6 +26,10 @@ #include #include #include +#include +#include "../../common/colour.h" +#include "../../common/text.h" +#include "../../common/uuid.h" using namespace std; @@ -40,6 +44,13 @@ enum CalDAVQueryResult { }; struct CalDAVCalendarList { + + map Name; + map HREF; + map Order; + map Description; + map CalColour; + map 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); };