Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added KIND to the SaveString function of ContactDataObject
[xestiaab/.git] / source / contacteditor / cdo / ContactDataObject-Save.cpp
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.
        
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