&KeyListDataType, &KeyListPref,
&KeyListTokens, SaveData);
+ // Process VND-*
+
+ SaveVendor(&VendorList, &VendorListPEN,
+ &VendorListElement, SaveData);
+
// Write the end part of the vCard data file.
SaveData->Append("END:VCARD");
}
+}
+
+void ContactDataObject::SaveVendor(map<int, wxString> *VendorList, map<int, wxString> *VendorListPEN,
+ map<int, wxString> *VendorListElement, wxString *SaveData){
+
+ wxString ProcessData = "";
+
+ for (std::map<int, wxString>::iterator VendorIter = VendorList->begin();
+ VendorIter != VendorList->end(); VendorIter++){
+
+ ProcessData.Append("VND-");
+ ProcessData.Append((*VendorListPEN)[VendorIter->first]);
+ ProcessData.Append("-");
+ ProcessData.Append((*VendorListElement)[VendorIter->first]);
+ ProcessData.Append(":");
+ ProcessData.Append(VendorIter->second);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ }
+
}
\ No newline at end of file
map<int, bool> *KeyListKeyType, map<int, wxString> *KeyListDataEncType,
map<int, wxString> *KeyListDataType, map<int, int> *KeyListPref,
map<int, wxString> *KeyListTokens, wxString *SaveData);
+ void SaveVendor(map<int, wxString> *VendorList, map<int, wxString> *VendorListPEN,
+ map<int, wxString> *VendorListElement, wxString *SaveData);
public:
" jdzT1E1Uk5BUUNUSHVjOQpjM1dORURZY1hhV2N6S3ZwN2R4aWJ1YS9FanNxRC85eHNUOHRZUUQrT\n"
" 2VqRndvRmVrbnpZa2RFMmdJb2ZuaDk0CjdKeUhaNDUyTERkamZXQ1BZWFU9Cj16T3NxCi0tLS0tR\n"
" U5EIFBHUCBQVUJMSUMgS0VZIEJMT0NLLS0tLS0K\n"
+ "VND-696-CAKE:Lemon\n"
+ "VND-696-DRINK:Orange\n"
+ "VND-696-MUSIC:Shiena Nishizawa\n"
"END:VCARD";
ASSERT_EQ(CONTACTLOAD_OK, TestFile3.LoadFile("LoadCheck-Load4.vcf"));