ProcessCaptureStrings(&strAddressFinalValue);
- strAddressFinalValue.insert(0, wxT("tel:"));
-
+ if (ContactEditorData.GeneralTelephoneListDataType.find(iter->first) !=
+ ContactEditorData.GeneralTelephoneListDataType.end()){
+
+ std::map<int,wxString>::iterator DataTypeIter = ContactEditorData.GeneralTelephoneListDataType.find(iter->first);
+
+ strAddressFinalValue.insert(0, ":");
+ strAddressFinalValue.insert(0, DataTypeIter->second);
+
+ } else {
+
+ strAddressFinalValue.insert(0, "tel:");
+
+ }
+
ProcessSaveData(wxT("TEL"), &strValue2, &boolValue2, &boolValue,
&iter, &strAddressFinalValue, &ContactData,
wxT("ALTID"), &ContactEditorData.GeneralTelephoneListAltID,
ProcessCaptureStrings(&strAddressFinalValue);
- strAddressFinalValue.insert(0, wxT("tel:"));
+ if (ContactEditorData.HomeTelephoneListDataType.find(iter->first) !=
+ ContactEditorData.HomeTelephoneListDataType.end()){
+
+ std::map<int,wxString>::iterator DataTypeIter = ContactEditorData.HomeTelephoneListDataType.find(iter->first);
+
+ strAddressFinalValue.insert(0, ":");
+ strAddressFinalValue.insert(0, DataTypeIter->second);
+
+ } else {
+
+ strAddressFinalValue.insert(0, "tel:");
+
+ }
ProcessSaveData(wxT("TEL"), &strValue2, &boolValue2, &boolValue,
&iter, &strAddressFinalValue, &ContactData,
ProcessCaptureStrings(&strAddressFinalValue);
- strAddressFinalValue.insert(0, wxT("tel:"));
+ if (ContactEditorData.BusinessTelephoneListDataType.find(iter->first) !=
+ ContactEditorData.BusinessTelephoneListDataType.end()){
+
+ std::map<int,wxString>::iterator DataTypeIter = ContactEditorData.BusinessTelephoneListDataType.find(iter->first);
+
+ strAddressFinalValue.insert(0, ":");
+ strAddressFinalValue.insert(0, DataTypeIter->second);
+
+ } else {
+
+ strAddressFinalValue.insert(0, "tel:");
+
+ }
ProcessSaveData(wxT("TEL"), &strValue2, &boolValue2, &boolValue,
&iter, &strAddressFinalValue, &ContactData,