&CalendarListAltID, &CalendarListPID,
&CalendarListType, &CalendarListPref,
&CalendarListTokens, SaveData);
+
+ // Process CALADRURI.
+
+ SaveCalendarRequestURI(&CalendarRequestList, &CalendarRequestListMediatype,
+ &CalendarRequestListAltID, &CalendarRequestListPID,
+ &CalendarRequestListType, &CalendarRequestListPref,
+ &CalendarRequestListTokens, SaveData);
// Write the end part of the vCard data file.
}
+}
+
+void ContactDataObject::SaveCalendarRequestURI(map<int, wxString> *CalendarRequestList, map<int, wxString> *CalendarRequestListMediatype,
+ map<int, wxString> *CalendarRequestListAltID, map<int, wxString> *CalendarRequestListPID,
+ map<int, wxString> *CalendarRequestListType, map<int, int> *CalendarRequestListPref,
+ map<int, wxString> *CalendarRequestListTokens, wxString *SaveData){
+
+ wxString ProcessData = "";
+
+ for (std::map<int, wxString>::iterator CalendarRequestIter = CalendarRequestList->begin();
+ CalendarRequestIter != CalendarRequestList->end(); CalendarRequestIter++){
+
+ ProcessData.Append("CALADRURI");
+
+ // Check if there is a value for TYPE.
+
+ if ((*CalendarRequestListType)[CalendarRequestIter->first].size() > 0){
+
+ ProcessData.Append(";TYPE=");
+ ProcessData.Append((*CalendarRequestListType)[CalendarRequestIter->first]);
+
+ }
+
+ // Check if there is a value for ALTID.
+
+ if ((*CalendarRequestListAltID)[CalendarRequestIter->first].size() > 0){
+
+ ProcessData.Append(";ALTID=");
+ ProcessData.Append((*CalendarRequestListAltID)[CalendarRequestIter->first]);
+
+ }
+
+ // Check if there is a value for MEDIATYPE.
+
+ if ((*CalendarRequestListMediatype)[CalendarRequestIter->first].size() > 0){
+
+ ProcessData.Append(";MEDIATYPE=");
+ ProcessData.Append((*CalendarRequestListMediatype)[CalendarRequestIter->first]);
+
+ }
+
+ // Check if there is a value for PID.
+
+ if ((*CalendarRequestListPID)[CalendarRequestIter->first].size() > 0){
+
+ ProcessData.Append(";PID=");
+ ProcessData.Append((*CalendarRequestListPID)[CalendarRequestIter->first]);
+
+ }
+
+ // Check if there is a value for PREF.
+
+ if ((*CalendarRequestListPref)[CalendarRequestIter->first] > 0){
+
+ ProcessData.Append(";PREF=");
+ ProcessData.Append(wxString::Format("%i", (*CalendarRequestListPref)[CalendarRequestIter->first]));
+
+ }
+
+ // Check if there is a value for tokens.
+
+ if ((*CalendarRequestListTokens)[CalendarRequestIter->first].size() > 0){
+
+ ProcessData.Append(";");
+ ProcessData.Append((*CalendarRequestListTokens)[CalendarRequestIter->first]);
+
+ }
+
+ ProcessData.Append(":");
+ ProcessData.Append(CalendarRequestIter->second);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ }
+
}
\ No newline at end of file
std::map<int, wxString> *CalendarListPID, std::map<int, wxString> *CalendarListType,
std::map<int, wxString> *CalendarListMediatype, std::map<int, int> *CalendarListPref,
std::map<int, wxString> *CalendarListTokens, wxString *SaveData);
+ void SaveCalendarRequestURI(std::map<int, wxString> *CalendarRequestList, std::map<int, wxString> *CalendarRequestListAltID,
+ std::map<int, wxString> *CalendarRequestListPID, std::map<int, wxString> *CalendarRequestListType,
+ std::map<int, wxString> *CalendarRequestListMediatype, std::map<int, int> *CalendarRequestListPref,
+ std::map<int, wxString> *CalendarRequestListTokens, wxString *SaveData);
public: