imservices/instantmessagingcache/imcacheserver/src/ccacheserveractivehelper.cpp
branchRCL_3
changeset 20 7797b2f86d2b
parent 18 b6f2a363adf7
child 38 2ca0d29c17c4
equal deleted inserted replaced
18:b6f2a363adf7 20:7797b2f86d2b
   583 //
   583 //
   584 void CCacheServerActiveHelper::GetServiceChatHeaderArrayL(TInt aServiceId , RPointerArray<MIMCacheMessageHeader>& aServiceHeaderArray)
   584 void CCacheServerActiveHelper::GetServiceChatHeaderArrayL(TInt aServiceId , RPointerArray<MIMCacheMessageHeader>& aServiceHeaderArray)
   585 	{
   585 	{
   586 	TRACE( T_LIT( "CCacheServerActiveHelper::GetServiceChatHeaderArrayL	start") );		
   586 	TRACE( T_LIT( "CCacheServerActiveHelper::GetServiceChatHeaderArrayL	start") );		
   587 	
   587 	
       
   588 	CleanupClosePushL(aServiceHeaderArray);
   588    
   589    
   589     if( -1 == aServiceId )
   590     if( -1 == aServiceId )
   590         {
   591         {
   591         aServiceHeaderArray = iHeaderArray;        
   592         aServiceHeaderArray = iHeaderArray;        
   592         }
   593         }
   599                 {
   600                 {
   600                 aServiceHeaderArray.AppendL(header);
   601                 aServiceHeaderArray.AppendL(header);
   601                 }
   602                 }
   602             }        
   603             }        
   603         }
   604         }
       
   605     CleanupStack::Pop(&aServiceHeaderArray);
   604     TRACE( T_LIT( "CCacheServerActiveHelper::GetServiceChatHeaderArrayL    end") );
   606     TRACE( T_LIT( "CCacheServerActiveHelper::GetServiceChatHeaderArrayL    end") );
   605 	}
   607 	}
   606 
   608 
   607 // ---------------------------------------------------------
   609 // ---------------------------------------------------------
   608 // CCacheServerActiveHelper::ChatHeaderL
   610 // CCacheServerActiveHelper::ChatHeaderL