photosgallery/viewframework/views/viewbase/inc/glxmedialistfactory.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:    Media List provider interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef M_GLXSMediaListFactory_H
       
    22 #define M_GLXSMediaListFactory_H
       
    23 
       
    24 class MGlxMediaList;
       
    25 class MMPXCollectionUtility;
       
    26 
       
    27 /**
       
    28  *  Provider of a media list
       
    29  */
       
    30 class MGlxMediaListFactory 
       
    31 	{
       
    32 public:
       
    33 	/**
       
    34 	 * Creates and returns a Media List. Ownership of Media List is transfered.
       
    35 	 * @param aCollectionUtility The collection utility to use when creating the media list
       
    36 	 * @return The Media List (ownership transfered to caller)
       
    37 	 */
       
    38 	IMPORT_C virtual MGlxMediaList& CreateMediaListL(MMPXCollectionUtility& aCollectionUtility) const;
       
    39 	
       
    40 protected:
       
    41 	/**
       
    42 	 * Creates media list based on collection path
       
    43 	 * @param aCollectionUtility The collection utility to use when creating the media list
       
    44 	 * @return The Media List (ownership transfered to caller)
       
    45 	 */
       
    46 	IMPORT_C MGlxMediaList& CurrentListL(MMPXCollectionUtility& aCollectionUtility) const;
       
    47 	};
       
    48 
       
    49 
       
    50 
       
    51 #endif // M_GLXSMediaListFactory_H
       
    52 
       
    53