std::map<int, wxString> *IMListAltID = NULL;
std::map<int, wxString> *IMListPID = NULL;
std::map<int, wxString> *IMListTokens = NULL;
- std::map<int, wxString> *IMListMediatype = NULL;
+ std::map<int, wxString> *IMListMediatype = NULL;
+ std::map<int, wxString> *IMListTypeInfo = NULL;
std::map<int, int> *IMListPref = NULL;
switch(PropType){
IMListPID = &GeneralIMListPID;
IMListTokens = &GeneralIMListTokens;
IMListMediatype = &GeneralIMListMediatype;
+ IMListTypeInfo = &GeneralIMListTypeInfo;
IMListPref = &GeneralIMListPref;
break;
case PROPERTY_HOME:
IMListAltID = &HomeIMListAltID;
IMListPID = &HomeIMListPID;
IMListTokens = &HomeIMListTokens;
- IMListMediatype = &HomeIMListMediatype;
+ IMListMediatype = &HomeIMListMediatype;
+ IMListTypeInfo = &HomeIMListTypeInfo;
IMListPref = &HomeIMListPref;
break;
case PROPERTY_WORK:
IMListAltID = &BusinessIMListAltID;
IMListPID = &BusinessIMListPID;
IMListTokens = &BusinessIMListTokens;
- IMListMediatype = &BusinessIMListMediatype;
+ IMListMediatype = &BusinessIMListMediatype;
+ IMListTypeInfo = &BusinessIMListTypeInfo;
IMListPref = &BusinessIMListPref;
break;
}
}
- IMList->insert(std::make_pair(*IMCount, PropertySeg2));
+ wxStringTokenizer IMPPSplitData(PropertySeg2, wxT(":"));
+
+ if (IMPPSplitData.CountTokens() > 1){
+
+ IMListTypeInfo->insert(std::make_pair(*IMCount, IMPPSplitData.GetNextToken()));
+ IMList->insert(std::make_pair(*IMCount, IMPPSplitData.GetString()));
+
+ } else {
+
+ IMList->insert(std::make_pair(*IMCount, PropertySeg2));
+ IMListTypeInfo->insert(std::make_pair(*IMCount, "none"));
+
+ }
// Add the name token data.
for (std::map<int, int>::iterator typeiter = TypeSplitPoints.begin();
typeiter != TypeSplitPoints.end(); ++typeiter){
-
+
wxString TypePropertyName;
TSLiter = TypeSplitLength.find(typeiter->first);
TelTypeUI.Append(wxT(","));
}
-
+
if (TypePropertyName == wxT("home")){
PropType = PROPERTY_HOME;
} else if (TypePropertyName == wxT("cell")){
- TelTypeUI.Append(_("mobile"));
+ TelTypeUI.Append(_("cell"));
intTypeSeek++;
} else if (TypePropertyName == wxT("video")){
std::map<int, wxString> *TelephoneListAltID = NULL;
std::map<int, wxString> *TelephoneListPID = NULL;
std::map<int, wxString> *TelephoneListTokens = NULL;
- std::map<int, wxString> *TelephoneListTypeInfo = NULL;
+ std::map<int, wxString> *TelephoneListTypeInfo = NULL;
+ std::map<int, wxString> *TelephoneListDataType = NULL;
std::map<int, int> *TelephoneListPref = NULL;
switch(PropType){
TelephoneListPID = &GeneralTelephoneListPID;
TelephoneListTokens = &GeneralTelephoneListTokens;
TelephoneListTypeInfo = &GeneralTelephoneListTypeInfo;
+ TelephoneListDataType = &GeneralTelephoneListDataType;
TelephoneListPref = &GeneralTelephoneListPref;
break;
case PROPERTY_HOME:
TelephoneListAltID = &HomeTelephoneListAltID;
TelephoneListPID = &HomeTelephoneListPID;
TelephoneListTokens = &HomeTelephoneListTokens;
- TelephoneListTypeInfo = &HomeTelephoneListTypeInfo;
+ TelephoneListTypeInfo = &HomeTelephoneListTypeInfo;
+ TelephoneListDataType = &HomeTelephoneListDataType;
TelephoneListPref = &HomeTelephoneListPref;
break;
case PROPERTY_WORK:
TelephoneListAltID = &BusinessTelephoneListAltID;
TelephoneListPID = &BusinessTelephoneListPID;
TelephoneListTokens = &BusinessTelephoneListTokens;
- TelephoneListTypeInfo = &BusinessTelephoneListTypeInfo;
+ TelephoneListTypeInfo = &BusinessTelephoneListTypeInfo;
+ TelephoneListDataType = &BusinessTelephoneListDataType;
TelephoneListPref = &BusinessTelephoneListPref;
break;
}
}
- TelephoneList->insert(std::make_pair(*TelephoneCount, PropertySeg2));
- TelephoneListTypeInfo->insert(std::make_pair(*TelephoneCount, TelTypeUI));
+ // Check for the type information and split it down.
+
+ wxStringTokenizer TelSplitData(PropertySeg2, wxT(":"));
+
+ if (TelSplitData.CountTokens() > 1){
+
+ TelephoneListDataType->insert(std::make_pair(*TelephoneCount, TelSplitData.GetNextToken()));
+ TelephoneList->insert(std::make_pair(*TelephoneCount, TelSplitData.GetString()));
+
+ } else {
+ TelephoneList->insert(std::make_pair(*TelephoneCount, PropertySeg2));
+ TelephoneListDataType->insert(std::make_pair(*TelephoneCount, "tel"));
+
+ }
+
+ TelephoneListTypeInfo->insert(std::make_pair(*TelephoneCount, TelTypeUI));
+
// Add the name token data.
if (!PropertyTokens.IsEmpty()){
std::map<int, wxString> GeneralTelephoneListType;
std::map<int, wxString> GeneralTelephoneListTokens;
std::map<int, wxString> GeneralTelephoneListTypeInfo;
+ std::map<int, wxString> GeneralTelephoneListDataType;
std::map<int, int> GeneralTelephoneListPref;
std::map<int, wxString> GeneralLanguageList;
std::map<int, wxString> HomeTelephoneListType;
std::map<int, wxString> HomeTelephoneListTokens;
std::map<int, wxString> HomeTelephoneListTypeInfo;
+ std::map<int, wxString> HomeTelephoneListDataType;
std::map<int, int> HomeTelephoneListPref;
std::map<int, wxString> HomeLanguageList;
std::map<int, wxString> BusinessTelephoneListType;
std::map<int, wxString> BusinessTelephoneListTypeInfo;
std::map<int, wxString> BusinessTelephoneListTokens;
+ std::map<int, wxString> BusinessTelephoneListDataType;
std::map<int, int> BusinessTelephoneListPref;
std::map<int, wxString> BusinessLanguageList;