ui/uiengine/medialists/src/glxfetchcontextremover.cpp
changeset 23 74c9f037fd5d
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    Class for removing a fetch context from a list 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include "glxfetchcontextremover.h"
       
    22 
       
    23 #include "mglxmedialist.h"
       
    24 #include <glxtracer.h>                         // For Logs
       
    25     
       
    26 // -----------------------------------------------------------------------------
       
    27 // Constructor
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C TGlxFetchContextRemover::TGlxFetchContextRemover(MGlxFetchContext* aContext, 
       
    31         MGlxMediaList& aMediaList)
       
    32             : iContext(aContext), iMediaList(aMediaList)
       
    33     {
       
    34     TRACER("TGlxFetchContextRemover::Default Constructor");
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // Destructor
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 EXPORT_C TGlxFetchContextRemover::~TGlxFetchContextRemover()
       
    42     {
       
    43     Close();
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // Close
       
    48 // -----------------------------------------------------------------------------
       
    49 EXPORT_C void TGlxFetchContextRemover::Close()
       
    50     {
       
    51     iMediaList.RemoveContext( iContext );
       
    52     }