sapi_mediamanagement/inc/mgmediaitemfactory.h
author Kiiskinen Klaus (Nokia-D-MSW/Tampere) <klaus.kiiskinen@nokia.com>
Mon, 30 Mar 2009 12:51:10 +0300
changeset 0 14df0fbfcc4e
permissions -rw-r--r--
Revision: 200912 Kit: 200912

/*
* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Factory method for media types
*
*/


#ifndef __CMGMEDIAITEMFACTORY_H
#define __CMGMEDIAITEMFACTORY_H




// FORWARD DECLARATIONS
class MCLFItem;
class CMgMediaItem;

//CLASS DECLARATION
/**
 *  Media Item Factory implementation.
 *  Returns an appropriate instance depending on
 *  the type of a media item 
 *  
 *  @since Series60 v3.2
 */
 
  
NONSHARABLE_CLASS( MgMediaItemFactory )
    {

public:
        
     /**
     * Returns a reference to a media type depending on the type
     * of the media item
     * @param aClfItem A reference to an MCLFItem object
     * @return An instance of CMgMediaItem
     */
    static CMgMediaItem* GetMediaItemL( const MCLFItem& aClfItem );
    
    };

#endif // __CMGMEDIAITEMFACTORY_H