homescreensrv_plat/sapi_menucontent/mcsservice/src/mcsoperationmanager.cpp
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "mcsoperationmanager.h"
       
    20 
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // destructor
       
    24 // ---------------------------------------------------------------------------
       
    25 RMcsOperationManager::~RMcsOperationManager()
       
    26 	{
       
    27 	}
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // destructor
       
    31 // ---------------------------------------------------------------------------
       
    32 void RMcsOperationManager::Close()
       
    33 	{
       
    34     iOperations.ResetAndDestroy();
       
    35 	}
       
    36 
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // default constructor
       
    40 // ---------------------------------------------------------------------------
       
    41 RMcsOperationManager::RMcsOperationManager(  )				
       
    42 	{
       
    43 	}
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 //
       
    47 // ---------------------------------------------------------------------------
       
    48 void RMcsOperationManager::AddL(  CActive* aOperation )
       
    49     {
       
    50     User::LeaveIfError( iOperations.Append( aOperation ) );
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 //
       
    55 // ---------------------------------------------------------------------------
       
    56 void RMcsOperationManager::Remove( CActive* aOperation )
       
    57     {
       
    58     TInt ptrIndex( iOperations.Find( aOperation ) );
       
    59     if ( KErrNotFound != ptrIndex )
       
    60         {
       
    61         iOperations.Remove( ptrIndex );
       
    62         }
       
    63     }