- strAddressFinalValue.insert(0, wxT("tel:"));
-
- ProcessSaveData(wxT("TEL"), &strValue2, &boolValue2, &boolValue,
- &iter, &strAddressFinalValue, &ContactData,
- wxT("ALTID"), &BusinessTelephoneListAltID,
- wxT("PID"), &BusinessTelephoneListPID,
- wxT("TYPE"), &BusinessTelephoneListType,
- wxT("PREF"), &BusinessTelephoneListPref,
- wxT(""), &BusinessTelephoneListTokens );
+ if (MapDataExists(&DataID, &ContactEditorData.GeneralTelephoneListDataType)){
+
+ std::map<int,wxString>::iterator DataTypeIter = ContactEditorData.GeneralTelephoneListDataType.find(iter->first);
+
+ strAddressFinalValue.insert(0, ":");
+ strAddressFinalValue.insert(0, DataTypeIter->second);
+
+ } else {
+
+ strAddressFinalValue.insert(0, "tel:");
+
+ }
+
+ wxString strAddressTypeInfo;
+
+ if (MapDataExists(&DataID, &ContactEditorData.GeneralTelephoneListTypeInfo)){
+
+ strAddressTypeInfo = ContactEditorData.GeneralTelephoneListTypeInfo.find(iter->first)->second;
+
+ }
+
+ ProcessSaveData(wxT("TEL"), &strValue2, &boolValue2, &boolValue,
+ &iter, &strAddressFinalValue, &ContactData,
+ wxT("ALTID"), &ContactEditorData.GeneralTelephoneListAltID,
+ wxT("PID"), &ContactEditorData.GeneralTelephoneListPID,
+ wxT("TYPE"), &ContactEditorData.GeneralTelephoneListTypeInfo,
+ wxT("PREF"), &ContactEditorData.GeneralTelephoneListPref,
+ wxT(""), &ContactEditorData.GeneralTelephoneListTokens );
+
+ ResetSaveProcessData();
+
+ }
+
+ ResetSaveProcessData();
+
+ for (std::map<int,wxString>::iterator iter = ContactEditorData.HomeTelephoneList.begin();
+ iter != ContactEditorData.HomeTelephoneList.end(); ++iter){
+
+ wxString strAddressFinalValue = iter->second;
+
+ ProcessCaptureStrings(&strAddressFinalValue);
+
+ 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,
+ wxT("ALTID"), &ContactEditorData.HomeTelephoneListAltID,
+ wxT("PID"), &ContactEditorData.HomeTelephoneListPID,
+ wxT("TYPE"), &ContactEditorData.HomeTelephoneListTypeInfo,
+ wxT("PREF"), &ContactEditorData.HomeTelephoneListPref,
+ wxT(""), &ContactEditorData.HomeTelephoneListTokens );