X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2Fcdo%2FContactDataObject-Save.cpp;h=72dad84b826fa7e9edf5967a084c15dbbc6fe424;hb=daf696986aea17544f892f22a7e27a6cff989b75;hp=9a45e463ee6f0589b2d21300fc1c300c1bc64cbe;hpb=9e0d23153e8cd09f0b96e7b111812000b19614db;p=xestiaab%2F.git diff --git a/source/contacteditor/cdo/ContactDataObject-Save.cpp b/source/contacteditor/cdo/ContactDataObject-Save.cpp index 9a45e46..72dad84 100644 --- a/source/contacteditor/cdo/ContactDataObject-Save.cpp +++ b/source/contacteditor/cdo/ContactDataObject-Save.cpp @@ -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.