photosgallery/viewframework/uiutilities/inc/mglxactivemedialistresolver.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     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 that resolves the active media list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __M_GLXACTIVEMEDIALISTRESOLVER_H__
       
    22 #define __M_GLXACTIVEMEDIALISTRESOLVER_H__
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 class MGlxActiveMediaListChangeObserver;
       
    27 class MGlxMediaList;
       
    28 
       
    29 /**
       
    30  * Interface that allows client to resolve the currently active 
       
    31  * media list.
       
    32  */
       
    33 class MGlxActiveMediaListResolver 
       
    34     { 
       
    35 public:
       
    36     /**
       
    37      * InstanceL
       
    38      * Call Close to close the instance
       
    39      * @param aObserver Observer to add or NULL
       
    40      * @return an reference counter instance of the object
       
    41      */
       
    42     IMPORT_C static MGlxActiveMediaListResolver* InstanceL(
       
    43         MGlxActiveMediaListChangeObserver* aObserver);
       
    44     
       
    45     /**
       
    46      * Close reference count and remove observer
       
    47      * @param aObserver Observer to remove
       
    48      */ 
       
    49     virtual void Close(MGlxActiveMediaListChangeObserver* aObserver) = 0;
       
    50     
       
    51     /**
       
    52      * Returns the pointer to the currently active media list
       
    53      * The active media list is the list in the currently open view that 
       
    54      * the user is navigating, or NULL if that media list is not known
       
    55      * @return active media list, or NULL
       
    56      */ 
       
    57     virtual MGlxMediaList* ActiveMediaList() const = 0;
       
    58     };
       
    59     
       
    60 #endif // __M_GLXACTIVEMEDIALISTRESOLVER_H__