pimappservices/calendarvcalplugin/src/agmvcalx.cpp
branchRCL_3
changeset 30 bd7edf625bdd
parent 29 12af337248b1
child 31 97232defd20e
equal deleted inserted replaced
29:12af337248b1 30:bd7edf625bdd
   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 			}
       
   413 		default: break;
   408 		default: break;
   414 		}
   409 		}
   415 
   410 
   416 	// Class
   411 	// Class
   417 	CCalEntry::TReplicationStatus status = aEntry->ReplicationStatusL();
   412 	CCalEntry::TReplicationStatus status = aEntry->ReplicationStatusL();
   435 		AddDesPropertyL(aParser, KVersitTokenLOCATION, location);
   430 		AddDesPropertyL(aParser, KVersitTokenLOCATION, location);
   436 		}
   431 		}
   437 
   432 
   438 	// DTSTAMP
   433 	// DTSTAMP
   439 	TCalTime dTStamp = aEntry->DTStampL();
   434 	TCalTime dTStamp = aEntry->DTStampL();
   440 
   435 		
   441 	if ( dTStamp.TimeUtcL() != Time::NullTTime() &&
   436    	if ( dTStamp.TimeUtcL() != Time::NullTTime() )
   442 		CCalEntry::ENote != aEntry->EntryTypeL() )
   437       	{	
   443 		{
       
   444 		AddDateTimePropertyL(aParser, KVersitTokenXDTSTAMP, dTStamp.TimeUtcL(), TVersitDateTime::EIsUTC, iTimeFlag);
   438 		AddDateTimePropertyL(aParser, KVersitTokenXDTSTAMP, dTStamp.TimeUtcL(), TVersitDateTime::EIsUTC, iTimeFlag);
   445       	}
   439       	}
   446 	
   440 	
   447 	// Sequence Number
   441 	// Sequence Number
   448 	AddIntegerPropertyL(aParser, KVersitTokenSEQUENCE, aEntry->SequenceNumberL());
   442 	AddIntegerPropertyL(aParser, KVersitTokenSEQUENCE, aEntry->SequenceNumberL());
   669 	for(TInt ii = 0; ii<attachCount; ++ii)
   663 	for(TInt ii = 0; ii<attachCount; ++ii)
   670 		{
   664 		{
   671 		CCalAttachment* attach = aEntry->AttachmentL(ii);
   665 		CCalAttachment* attach = aEntry->AttachmentL(ii);
   672 		AddAttachmentPropertyL(aParser, *attach);
   666 		AddAttachmentPropertyL(aParser, *attach);
   673 		}
   667 		}
   674 		
       
   675 	// Add the X-FAVOURITE property. Versit only exports signed ints but
       
   676 	// can't handle the '-' sign when importing. Therefore it must be exported
       
   677 	// as a string to ensure there is no '-' sign. When importing the value
       
   678 	// would incorrectly become 0.
       
   679 	//AddIntegerPropertyL( aParser, KVCalTokenXFavourite, aEntry->FavouriteL());
       
   680 	TBuf<10> favouriteString;  
       
   681 	TUint32 favourite = aEntry->FavouriteL();
       
   682 	favouriteString.Num( favourite );
       
   683 	AddDesPropertyL( aParser, KVCalTokenXFavourite, favouriteString );
       
   684 	}
   668 	}
   685 
   669 
   686 
   670 
   687 // Add appointment properties to parser
   671 // Add appointment properties to parser
   688 //
   672 //