videoplayback/hbvideoplaybackview/tsrc/testmpxvideoviewwrapper/stub/src/mpxplaybackutility.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:32:50 +0300
changeset 17 69946d1824c4
parent 15 cf5481c2bc0b
child 28 c48470be1ba7
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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 to create playback utility object
*
*/


#include"mpxplaybackutilityimpl.h"


// ============================== MEMBER FUNCTIONS ============================

// ----------------------------------------------------------------------------
// Create the playback utility object
// ----------------------------------------------------------------------------
//
EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::NewL(const TUid& aModeId,
                                                    MMPXPlaybackObserver* aObs)
    {
    return CMPXPlaybackUtility::NewL(aModeId,aObs, EMPXCategoryMusic);
    }

// ----------------------------------------------------------------------------
// Create the playback utility object
// ----------------------------------------------------------------------------
//

EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::NewL(const TMPXCategory aCategory,
                                                    const TUid& aModeId,
                                                    MMPXPlaybackObserver* aObs)
    {
    return CMPXPlaybackUtility::NewL(aModeId,aObs,aCategory);
    }
	
// ----------------------------------------------------------------------------
// Creates the playback utility object if not already created
// ----------------------------------------------------------------------------
//
EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::UtilityL( const TUid& aModeId )
    {
    return CMPXPlaybackUtility::UtilityL( aModeId, EMPXCategoryMusic );
    }
	
// ----------------------------------------------------------------------------
// Creates the playback utility object if not already created
// ----------------------------------------------------------------------------
//

EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::UtilityL(const TMPXCategory aCategory,
                                                const TUid& aModeId )
    {
    return CMPXPlaybackUtility::UtilityL( aModeId, aCategory );
    }