equal
deleted
inserted
replaced
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(); |
430 AddDesPropertyL(aParser, KVersitTokenLOCATION, location); |
435 AddDesPropertyL(aParser, KVersitTokenLOCATION, location); |
431 } |
436 } |
432 |
437 |
433 // DTSTAMP |
438 // DTSTAMP |
434 TCalTime dTStamp = aEntry->DTStampL(); |
439 TCalTime dTStamp = aEntry->DTStampL(); |
435 |
440 |
436 if ( dTStamp.TimeUtcL() != Time::NullTTime() ) |
441 if ( dTStamp.TimeUtcL() != Time::NullTTime() && |
437 { |
442 CCalEntry::ENote != aEntry->EntryTypeL() ) |
|
443 { |
438 AddDateTimePropertyL(aParser, KVersitTokenXDTSTAMP, dTStamp.TimeUtcL(), TVersitDateTime::EIsUTC, iTimeFlag); |
444 AddDateTimePropertyL(aParser, KVersitTokenXDTSTAMP, dTStamp.TimeUtcL(), TVersitDateTime::EIsUTC, iTimeFlag); |
439 } |
445 } |
440 |
446 |
441 // Sequence Number |
447 // Sequence Number |
442 AddIntegerPropertyL(aParser, KVersitTokenSEQUENCE, aEntry->SequenceNumberL()); |
448 AddIntegerPropertyL(aParser, KVersitTokenSEQUENCE, aEntry->SequenceNumberL()); |
663 for(TInt ii = 0; ii<attachCount; ++ii) |
669 for(TInt ii = 0; ii<attachCount; ++ii) |
664 { |
670 { |
665 CCalAttachment* attach = aEntry->AttachmentL(ii); |
671 CCalAttachment* attach = aEntry->AttachmentL(ii); |
666 AddAttachmentPropertyL(aParser, *attach); |
672 AddAttachmentPropertyL(aParser, *attach); |
667 } |
673 } |
|
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 ); |
668 } |
684 } |
669 |
685 |
670 |
686 |
671 // Add appointment properties to parser |
687 // Add appointment properties to parser |
672 // |
688 // |