X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fvcard%2Fvcard34conv-v3conv.cpp;h=8639a746fedf3bba87aef09af1d3da18a21b6159;hb=c139f797277a0cd85fe9f0b6b8244b791e0cf9ab;hp=948649c6f62b0d3a8ddc688c01ca44c370d417a0;hpb=8aa0ad46d043c17642b0064b26770d98d2c37898;p=xestiaab%2F.git diff --git a/source/vcard/vcard34conv-v3conv.cpp b/source/vcard/vcard34conv-v3conv.cpp index 948649c..8639a74 100644 --- a/source/vcard/vcard34conv-v3conv.cpp +++ b/source/vcard/vcard34conv-v3conv.cpp @@ -1713,6 +1713,60 @@ bool vCard34Conv::ConvertToV3(wxString Filename, wxString *wxSData){ } + } else if (wxSProperty.Mid(0, 12) == wxT("CLIENTPIDMAP")){ + + // Process the Client PID maps. + + int intPrevValue = 14; + + intPrevValue = 12; + + if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){ + + ContactDatav3.AddRaw(wxT("X-VCARD4-CLIENTPIDMAP"), wxSPropertySeg2); + + } else { + + ContactDatav3.AddRaw(wxT("X-VCARD4-CLIENTPIDMAP;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2); + + } + + } else if (wxSProperty.Mid(0, 3) == wxT("XML")){ + + // Process the XML values. + + int intPrevValue = 5; + + intPrevValue = 3; + + if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){ + + ContactDatav3.AddRaw(wxT("X-VCARD4-XML"), wxSPropertySeg2); + + } else { + + ContactDatav3.AddRaw(wxT("X-VCARD4-XML;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2); + + } + + } else if (wxSProperty.Mid(0, 6) == wxT("SOURCE")){ + + // Process the source links. + + int intPrevValue = 8; + + intPrevValue = 6; + + if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){ + + ContactDatav3.AddRaw(wxT("X-VCARD4-SOURCE"), wxSPropertySeg2); + + } else { + + ContactDatav3.AddRaw(wxT("X-VCARD4-SOURCE;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2); + + } + } // Reset the variables.