Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added RECURRENCE-ID property for saving data from a CalendarJournalObject.
[xestiacalendar/.git] / source / objects / calendarjournal / CalendarJournal-Save.cpp
index a3b729e..2b357fa 100644 (file)
@@ -256,6 +256,53 @@ void CalendarJournalObject::SaveObjectData(string *SaveData){
                
        }
        
+       // Process the RECURRENCE-ID value.
+       
+       if (RecurranceIDData.size() > 0){
+               
+               DataLine += "RECURRENCE-ID";
+
+               if (RecurranceIDDataTimeZoneParam.size() > 0){
+               
+                       DataLine += ";TZID=";
+                       DataLine += RecurranceIDDataTimeZoneParam;                      
+                       
+               }
+               
+               if (RecurranceIDDataRangeParam.size() > 0){
+               
+                       DataLine += ";RANGE=";
+                       DataLine += RecurranceIDDataRangeParam;                 
+                       
+               }
+               
+               if (RecurranceIDDataValue.size() > 0){
+               
+                       DataLine += ";VALUE=";
+                       DataLine += RecurranceIDDataValue;                      
+                       
+               }
+               
+               if (RecurranceIDDataTokens.size() > 0){
+               
+                       DataLine += ";";
+                       DataLine += RecurranceIDDataTokens;
+                       
+               }
+               
+               DataLine += ":";
+               DataLine += RecurranceIDData;
+               DataLine += "\n";
+               
+               DataLineProcessed = OutputText(&DataLine);
+               
+               *SaveData += DataLineProcessed;
+
+               DataLine.clear();
+               DataLineProcessed.clear();
+               
+       }
+       
        *SaveData += "END:VJOURNAL\n";
        
 }
\ No newline at end of file
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