serviceproviders/sapi_calendar/calendarservice/src/entryattributes.cpp
changeset 22 fc9cf246af83
parent 19 989d2f495d90
--- a/serviceproviders/sapi_calendar/calendarservice/src/entryattributes.cpp	Fri Jul 03 15:51:24 2009 +0100
+++ b/serviceproviders/sapi_calendar/calendarservice/src/entryattributes.cpp	Thu Aug 27 07:43:07 2009 +0300
@@ -453,6 +453,7 @@
 	delete iLocation;
 	delete iPhoneOwner;
     delete iOrganizer;
+    delete iUid;
     iRepeatDates.Close();
 	iExDates.Close();
 
@@ -856,7 +857,18 @@
 	iLocal = aLUid;	
 	iSetAttributes |= ELocalUid;
 	}
-
+// ---------------------------------------------------------------------------
+// CEntryAttributes::SetUid
+// ---------------------------------------------------------------------------
+//  
+EXPORT_C void CEntryAttributes::SetUidL( const TDesC8& aUid )
+    {
+    if( aUid.Length() )
+        {
+        iUid = aUid.AllocL();
+        iSetAttributes |= EGlobalUid;
+        }
+    }
 // ---------------------------------------------------------------------------
 // CEntryAttributes::SetRepeatRule
 // ---------------------------------------------------------------------------
@@ -1058,6 +1070,14 @@
 	{
 	return iLocal;	
 	}
+// ---------------------------------------------------------------------------
+// CEntryAttributes::GlobalUid
+// ---------------------------------------------------------------------------
+//  
+EXPORT_C TPtrC8 CEntryAttributes::GlobalUid()
+    {
+    return iUid ? TPtrC8( *iUid ) : TPtrC8();
+    }
 
 // ---------------------------------------------------------------------------
 // CEntryAttributes::ModifiedAttributes