diff -r 17f382c040b1 -r 518105d52e45 videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/src/mpxcollectionutility.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/src/mpxcollectionutility.cpp Thu Jul 08 13:05:19 2010 +0300 @@ -0,0 +1,97 @@ +/* +* Copyright (c) 2010 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 collection utility object +* +*/ + +#include + +#include "mpxcollectionutility.h" + +// ============================== MEMBER FUNCTIONS ================================================= + +// ------------------------------------------------------------------------------------------------- +// Create the collection utility object by mode +// ------------------------------------------------------------------------------------------------- +// +MMPXCollectionUtility* MMPXCollectionUtility::NewL( MMPXCollectionObserver* aObs ) +{ + return CMPXCollectionUtility::NewL( aObs ); +} + +// ------------------------------------------------------------------------------------------------- +// Two phase constructor +// ------------------------------------------------------------------------------------------------- +// +CMPXCollectionUtility* CMPXCollectionUtility::NewL( MMPXCollectionObserver* aObs ) +{ + CMPXCollectionUtility* p = new ( ELeave ) CMPXCollectionUtility( aObs ); + CleanupStack::PushL( p ); + p->ConstructL(); + CleanupStack::Pop( p ); + return p; +} + +// ------------------------------------------------------------------------------------------------- +// Destructor +// ------------------------------------------------------------------------------------------------- +// +CMPXCollectionUtility::~CMPXCollectionUtility() +{ +} + +// ------------------------------------------------------------------------------------------------- +// C++ constructor +// ------------------------------------------------------------------------------------------------- +// +CMPXCollectionUtility::CMPXCollectionUtility( MMPXCollectionObserver* /*aObs*/ ) +{ +} + +// ------------------------------------------------------------------------------------------------- +// 2nd phase constructor +// ------------------------------------------------------------------------------------------------- +// +void CMPXCollectionUtility::ConstructL() +{ +} + +// ------------------------------------------------------------------------------------------------- +// Return reference to collection +// ------------------------------------------------------------------------------------------------- +// +MMPXCollection& CMPXCollectionUtility::Collection() +{ + return *this; +} + +// ------------------------------------------------------------------------------------------------- +// Destroy this object +// ------------------------------------------------------------------------------------------------- +// +void CMPXCollectionUtility::Close() +{ + delete this; +} + +// ------------------------------------------------------------------------------------------------- +// The UID identifying this collection +// ------------------------------------------------------------------------------------------------- +// +TUid CMPXCollectionUtility::UidL() const +{ + return iUid; +} + +// End of file