pimappservices/calendarvcalplugin/src/agmvcalx.cpp
changeset 18 c198609911f9
parent 0 f979ecb2b13e
child 26 a949c2543c15
--- a/pimappservices/calendarvcalplugin/src/agmvcalx.cpp	Tue Feb 02 10:12:19 2010 +0200
+++ b/pimappservices/calendarvcalplugin/src/agmvcalx.cpp	Fri Apr 16 14:57:40 2010 +0300
@@ -405,6 +405,11 @@
 			AddDesPropertyL(aParser, KVCalToken8ENTRYTYPE, KVCalTokenTypeTODO);
 			break;
 			}
+		case CCalEntry::ENote:
+			{
+			AddDesPropertyL(aParser,KVCalToken8ENTRYTYPE, KVCalTokenTypeNOTE);
+			break;
+			}
 		default: break;
 		}
 
@@ -665,6 +670,16 @@
 		CCalAttachment* attach = aEntry->AttachmentL(ii);
 		AddAttachmentPropertyL(aParser, *attach);
 		}
+		
+	// Add the X-FAVOURITE property. Versit only exports signed ints but
+	// can't handle the '-' sign when importing. Therefore it must be exported
+	// as a string to ensure there is no '-' sign. When importing the value
+	// would incorrectly become 0.
+	//AddIntegerPropertyL( aParser, KVCalTokenXFavourite, aEntry->FavouriteL());
+	TBuf<10> favouriteString;  
+	TUint32 favourite = aEntry->FavouriteL();
+	favouriteString.Num( favourite );
+	AddDesPropertyL( aParser, KVCalTokenXFavourite, favouriteString );
 	}