Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added BDAY to the SaveString function of ContactDataObject
[xestiaab/.git] / source / contacteditor / cdo / ContactDataObject-Save.cpp
index 9a45e46..72dad84 100644 (file)
@@ -408,9 +408,49 @@ ContactSaveStatus ContactDataObject::SaveString(wxString *SaveData){
                
        }
        
-       // TODO: Process BDAY.
+       // Process BDAY.
        
-       // TODO: Process ANNIVERSARY.
+       if (Birthday.size() > 0){
+               
+               ProcessData.Append("BDAY");
+
+               // Check if there is a value for ALTID.
+               
+               if (BirthdayAltID.size() > 0){
+                       
+                       ProcessData.Append(";ALTID=");
+                       ProcessData.Append(BirthdayAltID);
+                       
+               }
+
+               // Check if there is a value for CALSCALE.
+               
+               if (BirthdayAltID.size() > 0){
+                       
+                       ProcessData.Append(";CALSCALE=");
+                       ProcessData.Append(BirthdayCalScale);
+                       
+               }
+               
+               // Check if there is a value for tokens.
+               
+               if (BirthdayTokens.size() > 0){
+               
+                       ProcessData.Append(";");
+                       ProcessData.Append(BirthdayTokens);
+                       
+               }
+               
+               ProcessData.Append(":");
+               ProcessData.Append(Birthday);
+               ProcessData.Append("\n");
+               
+               ProcessData = OutputText(&ProcessData);
+               
+               SaveData->Append(ProcessData);
+               ProcessData.clear();
+               
+       }
        
        // Process TITLE.
 
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