serviceproviders/sapi_calendar/calendarservice/src/entryattributes.cpp
changeset 22 fc9cf246af83
parent 19 989d2f495d90
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
   451 	delete iSummary;
   451 	delete iSummary;
   452 	delete iDescription;
   452 	delete iDescription;
   453 	delete iLocation;
   453 	delete iLocation;
   454 	delete iPhoneOwner;
   454 	delete iPhoneOwner;
   455     delete iOrganizer;
   455     delete iOrganizer;
       
   456     delete iUid;
   456     iRepeatDates.Close();
   457     iRepeatDates.Close();
   457 	iExDates.Close();
   458 	iExDates.Close();
   458 
   459 
   459 	iAttendees.ResetAndDestroy();
   460 	iAttendees.ResetAndDestroy();
   460 	}
   461 	}
   854 EXPORT_C void CEntryAttributes::SetLocalUid( const TCalLocalUid aLUid)
   855 EXPORT_C void CEntryAttributes::SetLocalUid( const TCalLocalUid aLUid)
   855 	{
   856 	{
   856 	iLocal = aLUid;	
   857 	iLocal = aLUid;	
   857 	iSetAttributes |= ELocalUid;
   858 	iSetAttributes |= ELocalUid;
   858 	}
   859 	}
   859 
   860 // ---------------------------------------------------------------------------
       
   861 // CEntryAttributes::SetUid
       
   862 // ---------------------------------------------------------------------------
       
   863 //  
       
   864 EXPORT_C void CEntryAttributes::SetUidL( const TDesC8& aUid )
       
   865     {
       
   866     if( aUid.Length() )
       
   867         {
       
   868         iUid = aUid.AllocL();
       
   869         iSetAttributes |= EGlobalUid;
       
   870         }
       
   871     }
   860 // ---------------------------------------------------------------------------
   872 // ---------------------------------------------------------------------------
   861 // CEntryAttributes::SetRepeatRule
   873 // CEntryAttributes::SetRepeatRule
   862 // ---------------------------------------------------------------------------
   874 // ---------------------------------------------------------------------------
   863 //		
   875 //		
   864 EXPORT_C void CEntryAttributes::SetRepeatRule( CRepeatInfo* aRptInfo)
   876 EXPORT_C void CEntryAttributes::SetRepeatRule( CRepeatInfo* aRptInfo)
  1056 //	
  1068 //	
  1057 EXPORT_C TCalLocalUid CEntryAttributes::LocalUid()
  1069 EXPORT_C TCalLocalUid CEntryAttributes::LocalUid()
  1058 	{
  1070 	{
  1059 	return iLocal;	
  1071 	return iLocal;	
  1060 	}
  1072 	}
       
  1073 // ---------------------------------------------------------------------------
       
  1074 // CEntryAttributes::GlobalUid
       
  1075 // ---------------------------------------------------------------------------
       
  1076 //  
       
  1077 EXPORT_C TPtrC8 CEntryAttributes::GlobalUid()
       
  1078     {
       
  1079     return iUid ? TPtrC8( *iUid ) : TPtrC8();
       
  1080     }
  1061 
  1081 
  1062 // ---------------------------------------------------------------------------
  1082 // ---------------------------------------------------------------------------
  1063 // CEntryAttributes::ModifiedAttributes
  1083 // CEntryAttributes::ModifiedAttributes
  1064 // ---------------------------------------------------------------------------
  1084 // ---------------------------------------------------------------------------
  1065 //	
  1085 //