serviceproviders/sapi_mediamanagement/inc/mgmediaitemfactory.h
author tahirm@symbian.org
Tue, 29 Sep 2009 14:16:01 +0100
branchRCL_1
changeset 9 c6ce67be4e89
parent 5 989d2f495d90
permissions -rw-r--r--
Created branch for release codeline RCL_1, for maintenance changes to the Symbian^2 platform

/*
* 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