+}
+
+void ContactDataObject::SaveFreeBusyURI(std::map<int, wxString> *FreeBusyList, std::map<int, wxString> *FreeBusyListAltID,
+ std::map<int, wxString> *FreeBusyListPID, std::map<int, wxString> *FreeBusyListType,
+ std::map<int, wxString> *FreeBusyListMediatype, std::map<int, int> *FreeBusyListPref,
+ std::map<int, wxString> *FreeBusyListTokens, wxString *SaveData){
+
+ wxString ProcessData = "";
+
+ for (std::map<int, wxString>::iterator FreeBusyIter = FreeBusyList->begin();
+ FreeBusyIter != FreeBusyList->end(); FreeBusyIter++){
+
+ ProcessData.Append("FBURL");
+
+ // Check if there is a value for TYPE.
+
+ if ((*FreeBusyListType)[FreeBusyIter->first].size() > 0){
+
+ ProcessData.Append(";TYPE=");
+ ProcessData.Append((*FreeBusyListType)[FreeBusyIter->first]);
+
+ }
+
+ // Check if there is a value for ALTID.
+
+ if ((*FreeBusyListAltID)[FreeBusyIter->first].size() > 0){
+
+ ProcessData.Append(";ALTID=");
+ ProcessData.Append((*FreeBusyListAltID)[FreeBusyIter->first]);
+
+ }
+
+ // Check if there is a value for MEDIATYPE.
+
+ if ((*FreeBusyListMediatype)[FreeBusyIter->first].size() > 0){
+
+ ProcessData.Append(";MEDIATYPE=");
+ ProcessData.Append((*FreeBusyListMediatype)[FreeBusyIter->first]);
+
+ }
+
+ // Check if there is a value for PID.
+
+ if ((*FreeBusyListPID)[FreeBusyIter->first].size() > 0){
+
+ ProcessData.Append(";PID=");
+ ProcessData.Append((*FreeBusyListPID)[FreeBusyIter->first]);
+
+ }
+
+ // Check if there is a value for PREF.
+
+ if ((*FreeBusyListPref)[FreeBusyIter->first] > 0){
+
+ ProcessData.Append(";PREF=");
+ ProcessData.Append(wxString::Format("%i", (*FreeBusyListPref)[FreeBusyIter->first]));
+
+ }
+
+ // Check if there is a value for tokens.
+
+ if ((*FreeBusyListTokens)[FreeBusyIter->first].size() > 0){
+
+ ProcessData.Append(";");
+ ProcessData.Append((*FreeBusyListTokens)[FreeBusyIter->first]);
+
+ }
+
+ ProcessData.Append(":");
+ ProcessData.Append(FreeBusyIter->second);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ }
+