pimappservices/calendar/server/src/agsalarm.cpp
branchRCL_3
changeset 11 0f07cd1b5772
parent 0 f979ecb2b13e
child 28 96907930389d
--- a/pimappservices/calendar/server/src/agsalarm.cpp	Fri Mar 12 15:42:35 2010 +0200
+++ b/pimappservices/calendar/server/src/agsalarm.cpp	Mon Mar 15 12:40:18 2010 +0200
@@ -680,8 +680,15 @@
 	else
 		{
 		aAlarmInfo.iRecurrenceId = entry->RecurrenceId().UtcL();
-		}
-	aAlarmInfo.iGlobalIdentifier = iModel->GetEntryGuidL(*entry);
+		}	
+	
+	// Check the length of the Uid from the entry if it is less than the 
+	// the supported length assign it to the aAlarmInfo.
+	// as per the RFC we are supporting 256 chars most of  app UID is within this range
+	// in future if anyone supports more than this length we need to handle this here .
+	if (iModel->GetEntryGuidL(*entry).Length() <= KAgnEntryMaxGuidLength)	    
+	    aAlarmInfo.iGlobalIdentifier = iModel->GetEntryGuidL(*entry);
+	
 	CleanupStack::PopAndDestroy(entry);
 	}