Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Correct comment saying LANGUAGE to MEDIATYPE for SaveSource
[xestiaab/.git] / source / contacteditor / cdo / ContactDataObject-Save.cpp
index 3b12441..aee2638 100644 (file)
@@ -79,6 +79,33 @@ ContactSaveStatus ContactDataObject::SaveString(wxString *SaveData){
                
        }
        
+       // TODO: Sortout REV.
+       
+       // Process XML.
+
+       for (std::map<int, wxString>::iterator XMLIter = XMLList.begin();
+               XMLIter != XMLList.end(); XMLIter++){
+       
+               ProcessData.Append("XML");
+                       
+               if (XMLListAltID[XMLIter->first].size() > 0){
+               
+                       ProcessData.Append(";ALTID=");
+                       ProcessData.Append(XMLListAltID[XMLIter->first]);
+                       
+               }
+                       
+               ProcessData.Append(":");
+               ProcessData.Append(XMLIter->second);
+               ProcessData.Append("\n");
+               
+               ProcessData = OutputText(&ProcessData);
+               
+               SaveData->Append(ProcessData);
+               ProcessData.clear();
+                       
+       }
+       
        // Process SOURCE.
        
        SaveSource(&SourceList, &SourceListAltID, 
@@ -317,7 +344,7 @@ void ContactDataObject::SaveSource(map<int, wxString> *SourceList, map<int, wxSt
                        
                }
 
-               // Check if there is a value for LANGUAGE.
+               // Check if there is a value for MEDIATYPE.
                
                if ((*SourceListMediatype)[SourceIter->first].size() > 0){
                
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