}
+ // Process the COMPLETED value.
+
+ if (CompletedData.size() > 0){
+
+ if (CompletedDataTokens.size() > 0){
+
+ DataLine += "COMPLETED;";
+ DataLine += CompletedDataTokens;
+
+ } else {
+
+ DataLine += "COMPLETED";
+
+ }
+
+ DataLine += ":";
+ DataLine += CompletedData;
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
+ // Process the CREATED value.
+
+ if (DateTimeCreatedData.size() > 0){
+
+ if (DateTimeCreatedTokens.size() > 0){
+
+ DataLine += "CREATED;";
+ DataLine += DateTimeCreatedTokens;
+
+ } else {
+
+ DataLine += "CREATED";
+
+ }
+
+ DataLine += ":";
+ DataLine += DateTimeCreatedData;
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
+ // Process the DESCRIPTION values. Write out the
+ // first DESCRPITION only as per RFC5545 specifcation.
+
+ if (DescriptionList.size() > 0){
+
+ DataLine += "DESCRIPTION";
+
+ if (DescriptionListAltRep[0].size() > 0){
+
+ DataLine += ";ALTREP=\"";
+ DataLine += DescriptionListAltRep[0];
+ DataLine += "\"";
+
+ }
+
+ if (DescriptionListLanguage[0].size() > 0){
+
+ DataLine += ";LANGUAGE=";
+ DataLine += DescriptionListLanguage[0];
+
+ }
+
+ if (DescriptionListTokens[0].size() > 0){
+
+ DataLine += ";";
+ DataLine += DescriptionListTokens[0];
+
+ }
+
+ DataLine += ":";
+ DataLine += DescriptionList[0];
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
*SaveData += "END:VTODO\n";
}
\ No newline at end of file