pimappservices/calendarvcalplugin/src/agmvcalx.cpp
changeset 18 c198609911f9
parent 0 f979ecb2b13e
child 26 a949c2543c15
equal deleted inserted replaced
0:f979ecb2b13e 18:c198609911f9
   403 			{
   403 			{
   404 			AddTodoPropertiesL(aParser, aEntry);
   404 			AddTodoPropertiesL(aParser, aEntry);
   405 			AddDesPropertyL(aParser, KVCalToken8ENTRYTYPE, KVCalTokenTypeTODO);
   405 			AddDesPropertyL(aParser, KVCalToken8ENTRYTYPE, KVCalTokenTypeTODO);
   406 			break;
   406 			break;
   407 			}
   407 			}
       
   408 		case CCalEntry::ENote:
       
   409 			{
       
   410 			AddDesPropertyL(aParser,KVCalToken8ENTRYTYPE, KVCalTokenTypeNOTE);
       
   411 			break;
       
   412 			}
   408 		default: break;
   413 		default: break;
   409 		}
   414 		}
   410 
   415 
   411 	// Class
   416 	// Class
   412 	CCalEntry::TReplicationStatus status = aEntry->ReplicationStatusL();
   417 	CCalEntry::TReplicationStatus status = aEntry->ReplicationStatusL();
   663 	for(TInt ii = 0; ii<attachCount; ++ii)
   668 	for(TInt ii = 0; ii<attachCount; ++ii)
   664 		{
   669 		{
   665 		CCalAttachment* attach = aEntry->AttachmentL(ii);
   670 		CCalAttachment* attach = aEntry->AttachmentL(ii);
   666 		AddAttachmentPropertyL(aParser, *attach);
   671 		AddAttachmentPropertyL(aParser, *attach);
   667 		}
   672 		}
       
   673 		
       
   674 	// Add the X-FAVOURITE property. Versit only exports signed ints but
       
   675 	// can't handle the '-' sign when importing. Therefore it must be exported
       
   676 	// as a string to ensure there is no '-' sign. When importing the value
       
   677 	// would incorrectly become 0.
       
   678 	//AddIntegerPropertyL( aParser, KVCalTokenXFavourite, aEntry->FavouriteL());
       
   679 	TBuf<10> favouriteString;  
       
   680 	TUint32 favourite = aEntry->FavouriteL();
       
   681 	favouriteString.Num( favourite );
       
   682 	AddDesPropertyL( aParser, KVCalTokenXFavourite, favouriteString );
   668 	}
   683 	}
   669 
   684 
   670 
   685 
   671 // Add appointment properties to parser
   686 // Add appointment properties to parser
   672 //
   687 //