Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added DURATION property for saving data from a CalendarTaskObject.
[xestiacalendar/.git] / source / objects / calendartask / CalendarTask-Save.cpp
index a619e99..f8ae474 100644 (file)
@@ -412,6 +412,32 @@ void CalendarTaskObject::SaveObjectData(string *SaveData){
                
        }
        
+       // Process the DURATION value.
+       
+       if (DurationData.size() > 0){
+               
+               DataLine += "DURATION";
+
+               if (DurationDataTokens.size() > 0){
+               
+                       DataLine += ";";
+                       DataLine += DurationDataTokens;
+                       
+               }
+               
+               DataLine += ":";
+               DataLine += DurationData;
+               DataLine += "\n";
+               
+               DataLineProcessed = OutputText(&DataLine);
+               
+               *SaveData += DataLineProcessed;
+
+               DataLine.clear();
+               DataLineProcessed.clear();
+               
+       }
+       
        // Process the PRIORITY value.
        
        if (PriorityData > -1 && PriorityData < 10){
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