metadataengine/server/src/mdsnotifier.cpp
changeset 1 acef663c1218
parent 0 c53acadfccc6
child 3 b73a2e62868f
equal deleted inserted replaced
0:c53acadfccc6 1:acef663c1218
   106 //
   106 //
   107 void CMdSNotifier::TEntry::TriggerL(
   107 void CMdSNotifier::TEntry::TriggerL(
   108 	TUint32 aCompleteCode,
   108 	TUint32 aCompleteCode,
   109     const RArray<TItemId>& aIdArray )
   109     const RArray<TItemId>& aIdArray )
   110     {
   110     {
   111     TInt remoteSizeMsgSlot = iRemoteSizeMsgSlot;
   111     const TInt remoteSizeMsgSlot = iRemoteSizeMsgSlot;
   112     iRemoteSizeMsgSlot = KErrNotFound;
   112     iRemoteSizeMsgSlot = KErrNotFound;
   113 
   113 
   114     __ASSERT_DEBUG( !iDataBuffer, MMdCCommon::Panic( KErrCorrupt ) );
   114     __ASSERT_DEBUG( !iDataBuffer, MMdCCommon::Panic( KErrCorrupt ) );
   115 
   115 
   116     if(aIdArray.Count())
   116     if(aIdArray.Count())
   135 void CMdSNotifier::TEntry::TriggerRelationItemsL(
   135 void CMdSNotifier::TEntry::TriggerRelationItemsL(
   136 	TUint32 aCompleteCode,
   136 	TUint32 aCompleteCode,
   137 	CMdCSerializationBuffer& aBuffer,
   137 	CMdCSerializationBuffer& aBuffer,
   138 	const RArray<TItemId>& aRelationIdArray)
   138 	const RArray<TItemId>& aRelationIdArray)
   139     {
   139     {
   140     TInt remoteSizeMsgSlot = iRemoteSizeMsgSlot;
   140     const TInt remoteSizeMsgSlot = iRemoteSizeMsgSlot;
   141     iRemoteSizeMsgSlot = KErrNotFound;
   141     iRemoteSizeMsgSlot = KErrNotFound;
   142 
   142 
   143     __ASSERT_DEBUG( !iDataBuffer, MMdCCommon::Panic( KErrCorrupt ) );
   143     __ASSERT_DEBUG( !iDataBuffer, MMdCCommon::Panic( KErrCorrupt ) );
   144 
   144 
   145     if(aRelationIdArray.Count())
   145     if(aRelationIdArray.Count())
   301 // ------------------------------------------------
   301 // ------------------------------------------------
   302 //
   302 //
   303 void CMdSNotifier::TEntry::TriggerCachedL(TUint32 aCompleteCode, 
   303 void CMdSNotifier::TEntry::TriggerCachedL(TUint32 aCompleteCode, 
   304 		CMdCSerializationBuffer* aData)
   304 		CMdCSerializationBuffer* aData)
   305     {
   305     {
   306     TInt remoteSizeMsgSlot = iRemoteSizeMsgSlot;
   306     const TInt remoteSizeMsgSlot = iRemoteSizeMsgSlot;
   307     iRemoteSizeMsgSlot = KErrNotFound;
   307     iRemoteSizeMsgSlot = KErrNotFound;
   308 
   308 
   309     __ASSERT_DEBUG( !iDataBuffer, MMdCCommon::Panic( KErrCorrupt ) );
   309     __ASSERT_DEBUG( !iDataBuffer, MMdCCommon::Panic( KErrCorrupt ) );
   310 
   310 
   311     if( aData )
   311     if( aData )
   594 				if( allMatches || matchingObjectIdArray.Count() > 0 )
   594 				if( allMatches || matchingObjectIdArray.Count() > 0 )
   595 	            	{
   595 	            	{
   596 	            	if(e.IsPending())
   596 	            	if(e.IsPending())
   597 	            		{
   597 	            		{
   598 		            	// Match found. Trigger notifier entry.
   598 		            	// Match found. Trigger notifier entry.
   599 		            	TInt err;
   599 		            	TInt err( KErrNone );
   600 		            	
   600 		            	
   601 		            	if( allMatches )
   601 		            	if( allMatches )
   602 		            		{
   602 		            		{
   603 		            		// all matches so send whole object ID array
   603 		            		// all matches so send whole object ID array
   604 		            		TRAP( err, e.TriggerL( EObjectNotifyRemove, 
   604 		            		TRAP( err, e.TriggerL( EObjectNotifyRemove,