Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added UID to the SaveString function of ContactDataObject
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 28 Jun 2016 22:13:59 +0000 (23:13 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 28 Jun 2016 22:13:59 +0000 (23:13 +0100)
source/contacteditor/cdo/ContactDataObject-Save.cpp
source/tests/xestiaab_contactsave.h

index 2a436cb..0b059ea 100644 (file)
@@ -41,10 +41,22 @@ ContactSaveStatus ContactDataObject::SaveString(wxString *SaveData){
        SaveData->Append(wxT("//KW\n"));
        
 #endif
-       
-       // Process FN.
-       
+
        wxString ProcessData = "";
+
+       // Process UID.
+
+       if (UIDToken.size() > 0){
+               
+               ProcessData.Append("UID:");
+               ProcessData.Append(UIDToken);
+               ProcessData.Append("\n");
+               SaveData->Append(ProcessData);
+               ProcessData.clear();
+               
+       }
+
+       // Process FN.
        
        for (std::map<int, wxString>::iterator FNIter = FullNamesList.begin();
                FNIter != FullNamesList.end(); FNIter++){
index 6020548..f82fd22 100644 (file)
@@ -60,6 +60,7 @@ TEST(ContactSave, ContactSaveTests){
        SaveDataCompare = "BEGIN:VCARD\n"
        "VERSION:4.0\n"
        "PRODID:-//Xestia//Address Book Unit Testing//KW\n"
+       "UID:903588-9082374-989120310-AAFECDBCDF\n"
        "FN;TYPE=work;LANGUAGE=kw;ALTID=500;PID=40;PREF=45;EXAMPLE=Baaa:Test Contact\n"
        "TITLE;ALTID=20;LANGUAGE=text/plain;PID=21;PREF=22;EEP=LIGHT:Lord of Light\n"
        "TITLE;TYPE=home;ALTID=30;LANGUAGE=grass/dry;PID=31;PREF=32;EEP=DARK:Lord of D\n"
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