}
+ } else if (PropertyName == wxT("MEDIATYPE")){
+
+ GroupsListMediaType.erase(*GroupCount);
+ GroupsListMediaType.insert(std::make_pair(*GroupCount, PropertyValue));
+
} else if (!PropertyName.IsEmpty() && !PropertyValue.IsEmpty()){
if (FirstToken == TRUE){
GroupsList.insert(std::make_pair(*GroupCount, PropertySeg2));
+ if (!PropertyTokens.IsEmpty()){
+
+ GroupsListTokens.insert(std::make_pair(*GroupCount, PropertyTokens));
+
+ }
+
}
std::map<int, wxString> GroupsListAltID;
std::map<int, wxString> GroupsListPID;
std::map<int, wxString> GroupsListType;
+ std::map<int, wxString> GroupsListMediaType;
std::map<int, wxString> GroupsListTokens;
std::map<int, int> GroupsListPref;
BEGIN:VCARD
VERSION:4.0
KIND:individual
-MEMBER;ALTID=35;PID=40;PREF=45:7a2af44d-6431-4797-a55f-d86d56304fda
+MEMBER;ALTID=35;PID=40;PREF=45;MEDIATYPE=text/plain;EXAMPLE=Meep:7a2af44d-64
+ 31-4797-a55f-d86d56304fda
FN:Test
END:VCARD
TestFileIntIter = TestFile.GroupsListPref.find(0);
ASSERT_NE(TestFile.GroupsListPref.end(), TestFileIntIter);
ASSERT_EQ(45, TestFileIntIter->second);
+
+ // Check that MEDIATYPE parameter.
+
+ TestFileIter = TestFile.GroupsListMediaType.find(0);
+ ASSERT_NE(TestFile.GroupsListMediaType.end(), TestFileIter);
+ ASSERT_EQ("text/plain", TestFileIter->second);
+
+ // Check the extra tokens parameter.
+
+ TestFileIter = TestFile.GroupsListTokens.find(0);
+ ASSERT_NE(TestFile.GroupsListTokens.end(), TestFileIter);
+ ASSERT_EQ("EXAMPLE=Meep", TestFileIter->second);
+
}