}
- // TODO: Sortout REV.
+ // Process REV.
+
+ wxDateTime DateTimeSave;
+ DateTimeSave = DateTimeSave.SetToCurrent();
+ wxString DateTimeSaveValue;
+
+#ifdef XAB_UNITTEST
+
+ DateTimeSaveValue += "20160703T091000Z";
+
+#else
+
+ DateTimeSaveValue += wxString::Format("%04i", DateTimeSave.GetYear());
+ DateTimeSaveValue += wxString::Format("%02i", (DateTimeSave.GetMonth() + 1));
+ DateTimeSaveValue += wxString::Format("%02i", DateTimeSave.GetDay());
+ DateTimeSaveValue += "T";
+ DateTimeSaveValue += wxString::Format("%02i", DateTimeSave.GetHour());
+ DateTimeSaveValue += wxString::Format("%02i", DateTimeSave.GetMinute());
+ DateTimeSaveValue += wxString::Format("%02i", DateTimeSave.GetSecond());
+ DateTimeSaveValue += "Z";
+
+#endif
+
+ if (!RevisionTokens.IsEmpty()){
+
+ ProcessData.Append("REV;");
+ ProcessData.Append(RevisionTokens);
+ ProcessData.Append(":");
+ ProcessData.Append(DateTimeSaveValue);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ } else {
+
+ ProcessData.Append("REV:");
+ ProcessData.Append(DateTimeSaveValue);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ }
// Process XML.
// TODO: Process IMPP.
+
+
// TODO: Process TEL.
+
+
// Process LANG.
SaveLanguage(&GeneralLanguageList, &GeneralLanguageListAltID,
wxString SaveDataCompare = "BEGIN:VCARD\n"
"VERSION:4.0\n"
"PRODID:-//Xestia//Address Book Unit Testing//KW\n"
+ "REV:20160703T091000Z\n"
"FN:Test vCard\n"
"TITLE:Knight of the Tests\n"
"TITLE:The Tester of Cornwall\n"
SaveDataCompare = "BEGIN:VCARD\n"
"VERSION:4.0\n"
"PRODID:-//Xestia//Address Book Unit Testing//KW\n"
+ "REV:20160703T091000Z\n"
"FN:Test vCard\n"
"TITLE:The Third Title\n"
"TITLE:Knight of the Tests\n"
"PRODID:-//Xestia//Address Book Unit Testing//KW\n"
"UID:903588-9082374-989120310-AAFECDBCDF\n"
"KIND:individual\n"
+ "REV;TEST=YES;DATA=NO;MORE=MAYBE:20160703T091000Z\n"
"XML:<a xmlns=\"http://www.w3.org/1999/xhtml\"\\n href=\"http://example.com/\">Ex\n"
" ample Page 1</a>\n"
"XML;ALTID=3:<a xmlns=\"http://www.w3.org/1999/xhtml\"\\n href=\"http://example.\n"