Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
When processing calendars, attempt to get the sync-token.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 2 May 2016 08:20:31 +0000 (09:20 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 2 May 2016 08:20:31 +0000 (09:20 +0100)
source/objects/CalDAV/CalDAV-XMLProcessing.cpp
source/objects/CalDAV/CalDAV.h

index f84daed..239afe7 100644 (file)
@@ -333,6 +333,20 @@ CalDAVCalendarList CalDAV::ProcessXMLCalendarList(){
                                
                        }
                        
+                       // Get the calendar tag URL.
+                       
+                       NodeData = xmlCopyNode(NodeMatch, 1);
+                       
+                       string CalendarTagURL = "";
+                       
+                       if (!MatchXMLNameTransverse(&NodeData, "propstat")){ continue; }
+                       if (!MatchXMLNameTransverse(&NodeData, "prop")){ continue; }
+                       if (MatchXMLNameTransverse(&NodeData, "sync-token")){ 
+                               
+                               CalendarTagURL = FetchXMLData(&NodeData);
+                               
+                       }
+                       
                        // Insert the calendar information into the
                        // list if all the information is there.
                        
@@ -342,6 +356,7 @@ CalDAVCalendarList CalDAV::ProcessXMLCalendarList(){
                        CalendarList.CalColour.insert(make_pair(ResponseCount, CalendarColour));
                        CalendarList.Order.insert(make_pair(ResponseCount, CalendarOrder));
                        CalendarList.Tag.insert(make_pair(ResponseCount, CalendarTag));
+                       CalendarList.TagURL.insert(make_pair(ResponseCount, CalendarTagURL));
                        
                        ResponseCount++;
                        
index f237669..332c91e 100644 (file)
@@ -51,6 +51,9 @@ struct CalDAVCalendarList {
        map<int,string> Description;
        map<int,Colour> CalColour;
        map<int,string> Tag;
+       map<int,string> TagURL;
+       
+};
        
 };
 
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