Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added KIND to the SaveString function of ContactDataObject
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 29 Jun 2016 07:01:46 +0000 (08:01 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 29 Jun 2016 07:01:46 +0000 (08:01 +0100)
source/contacteditor/cdo/ContactDataObject-Save.cpp
source/tests/xestiaab_contactsave.h

index 0b059ea..73fb904 100644 (file)
@@ -55,6 +55,29 @@ ContactSaveStatus ContactDataObject::SaveString(wxString *SaveData){
                ProcessData.clear();
                
        }
+       
+       // Process KIND.
+       
+       switch(ContactKind){
+
+               case CONTACTKIND_NONE:
+                       break;
+               case CONTACTKIND_INDIVIDUAL:
+                       SaveData->Append("KIND:individual\n");
+                       break;
+               case CONTACTKIND_GROUP:
+                       SaveData->Append("KIND:group\n");
+                       break;
+               case CONTACTKIND_ORGANISATION:
+                       SaveData->Append("KIND:org\n");
+                       break;
+               case CONTACTKIND_LOCATION:
+                       SaveData->Append("KIND:location\n");
+                       break;
+               default:
+                       break;
+               
+       }
 
        // Process FN.
        
index f82fd22..cff2a98 100644 (file)
@@ -61,6 +61,7 @@ TEST(ContactSave, ContactSaveTests){
        "VERSION:4.0\n"
        "PRODID:-//Xestia//Address Book Unit Testing//KW\n"
        "UID:903588-9082374-989120310-AAFECDBCDF\n"
+       "KIND:individual\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