vCard ContactDatav3;
- //wxSContactFilename = Filename;
-
// Check if we are using wxWidgets version 2.8 or less and
// execute the required command accordingly.
int VendorCount = 0;
int XTokenCount = 0;
int ItemSeek = 1;
- //int intValueSeek = 1;
wxString strVer;
- // Setup the version string.
+ // Setup the version string.
strVer.Append(wxT("-//Xestia//Address Book Version "));
strVer.Append(wxT(XSDAB_VERSION));
if (wxSPropertyNextLine.Mid(0, 1) == wxT(" ") || wxSPropertyNextLine.Mid(0, 1) == wxT("\t")){
wxSPropertyNextLine.Remove(0, 1);
- //wxSPropertyNextLine.Trim(FALSE);
- //ContactLine.Trim();
ContactLine.Append(wxSPropertyNextLine);
} else {
wxString PropertyValue;
wxString PropertyTokens;
int intPrevValue = 4;
-
- //SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
intPrevValue = 3;
} else if (TypePropertyName == wxT("textphone")){
- //if (!TelTypeOut.IsEmpty()){ TelTypeOut.Append(wxT(";")); }
-
if (!FinalFriendlyString.IsEmpty()){ FinalFriendlyString.Append(_(", Textphone")); } else { FinalFriendlyString.Append(_("Textphone")); }
TelTypeOut.Append(wxT(";"));
int intPrevValue = 14;
- intPrevValue = ;
+ intPrevValue = 12;
if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
}
+ } 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.