Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added TZURL property for saving data from a CalendarTimezoneObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 9 Jun 2016 22:32:48 +0000 (23:32 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 9 Jun 2016 22:32:48 +0000 (23:32 +0100)
Added the code and unit tests for the TZURL property.

source/objects/calendartimezone/CalendarTimezone-Save.cpp
source/tests/xestiacalendar_icaltimezonesave.h

index 8858e15..c52c70e 100644 (file)
@@ -65,6 +65,34 @@ void CalendarTimezoneObject::SaveObjectData(string *SaveData){
                
        }
        
+       // Process the TZURL value.
+       
+       if (TimeZoneURLData.size() > 0){
+               
+               if (TimeZoneURLTokens.size() > 0){
+               
+                       DataLine += "TZURL;";
+                       DataLine += TimeZoneURLTokens;
+                       
+               } else {
+
+                       DataLine += "TZURL";
+                       
+               }
+
+               DataLine += ":";
+               DataLine += TimeZoneURLData;
+               DataLine += "\n";
+               
+               DataLineProcessed = OutputText(&DataLine);
+               
+               *SaveData += DataLineProcessed;
+               
+               DataLine.clear();
+               DataLineProcessed.clear();
+               
+       }
+       
        *SaveData += "END:VTIMEZONE\n";
        
 }
\ No newline at end of file
index eff6583..ff6c101 100644 (file)
@@ -63,6 +63,7 @@ TEST(iCalendarSaveTimezone, SaveTimezoneTests){
        "BEGIN:VTIMEZONE\n"
        "TZID;OTHER=PARAM:Example/Starrgazy\n"
        "LAST-MODIFIED;FUTURE=ODD:20160203T200700Z\n"
+       "TZURL;URL=YES:http://www.example.com/\n"
        "END:VTIMEZONE\n"
        "END:VCALENDAR";
 
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