presencecache/presencecacheutils/src/presenceobjecthelpers.cpp
branchRCL_3
changeset 32 2828b4d142c0
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
26:0d28c1c5b6dd 32:2828b4d142c0
    62 // TPresenceArrayPacker::UnPackArrayL()
    62 // TPresenceArrayPacker::UnPackArrayL()
    63 // -----------------------------------------------------------------------------
    63 // -----------------------------------------------------------------------------
    64 //
    64 //
    65 EXPORT_C void TPresenceArrayPacker::UnPackArrayL( RPointerArray< MPresenceBuddyInfo2 >& aBufferArray, const TDesC8& aPack  )
    65 EXPORT_C void TPresenceArrayPacker::UnPackArrayL( RPointerArray< MPresenceBuddyInfo2 >& aBufferArray, const TDesC8& aPack  )
    66     {
    66     {
       
    67     CleanupResetAndDestroyPushL( aBufferArray );
    67 	// No reset
    68 	// No reset
    68     if ( ! aPack.Length() )
    69     if ( ! aPack.Length() )
    69         {
    70         {
    70         // empty, don't attempt to unpack
    71         // empty, don't attempt to unpack
    71         return;
    72         return;
    83 	for ( TInt count = 0; count < objCount; count++ )
    84 	for ( TInt count = 0; count < objCount; count++ )
    84         {
    85         {
    85         info = MPresenceBuddyInfo2::NewLC();
    86         info = MPresenceBuddyInfo2::NewLC();
    86         info->InternalizeL( rs );
    87         info->InternalizeL( rs );
    87         aBufferArray.AppendL( info );
    88         aBufferArray.AppendL( info );
    88         
    89         CleanupStack::Pop();
    89 		}
    90 		}
    90     CleanupStack::Pop( objCount ); // all the objects
       
    91     CleanupStack::PopAndDestroy(); // rs    
    91     CleanupStack::PopAndDestroy(); // rs    
       
    92     CleanupStack::Pop( &aBufferArray );
    92     }
    93     }
    93 
    94 
    94 
    95 
    95 // -----------------------------------------------------------------------------
    96 // -----------------------------------------------------------------------------
    96 // PresenceCacheBuddyUtils::ResetBuddyInfoTimeStamp()
    97 // PresenceCacheBuddyUtils::ResetBuddyInfoTimeStamp()