+ *saveStringData += "METHOD";
+
+ }
+
+ *saveStringData += ":";
+ *saveStringData += methodData;
+ *saveStringData += "\n";
+
+ }
+
+ // Check if CALSCALE has a value and print it if it does (and
+ // any token data if there).
+
+ if (calendarScaleData.size() > 0){
+
+ if (calendarScaleTokens.size() > 0){
+
+ *saveStringData += "CALSCALE;";
+ *saveStringData += calendarScaleTokens;
+
+ } else {
+
+ *saveStringData += "CALSCALE";
+
+ }
+
+ *saveStringData += ":";
+ *saveStringData += calendarScaleData;
+ *saveStringData += "\n";
+
+ }
+
+#if defined(XESTIACAL_UNITTEST)
+
+ *saveStringData += "PRODID:-//Xestia//Calendar Unit Testing//KW\n";
+
+#else
+
+ *saveStringData += "PRODID:-//Xestia//Calendar Version ";
+ *saveStringData += XSDCAL_VERSION;
+ *saveStringData += "//KW\n";
+
+#endif
+
+ SaveObjectData(saveStringData);
+
+ *saveStringData += "END:VCALENDAR";