diff -r a36789189b53 -r 095bea5f582e mmfenh/enhancedmediaclient/Plugins/ProgDLSource/src/SinkQueueItem.cpp --- a/mmfenh/enhancedmediaclient/Plugins/ProgDLSource/src/SinkQueueItem.cpp Thu Aug 19 10:26:11 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +0,0 @@ -/* -* Copyright (c) 2006 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: Implementation of ProgDL Source Reader active object. -* -*/ - - - -// INCLUDE FILES -#ifdef _DEBUG -#include -#endif - -#include "SinkQueueItem.h" -#include -#include -#include - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CSinkQueueItem::CSinkQueueItem -// C++ default constructor can NOT contain any code, that -// might leave. -// ----------------------------------------------------------------------------- -// -CSinkQueueItem::CSinkQueueItem( - CMMFBuffer* aBuffer, - MMultimediaDataSourceObserver* aMMDSObserver, - MDataSink* aConsumer ) - :iBuffer(aBuffer), - iMMDSObserver(aMMDSObserver), - iConsumer(aConsumer) - { - } - -// ----------------------------------------------------------------------------- -// CSinkQueueItem::ConstructL -// Symbian 2nd phase constructor can leave. -// ----------------------------------------------------------------------------- -// -void CSinkQueueItem::ConstructL() - { - } - -// ----------------------------------------------------------------------------- -// CSinkQueueItem::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -CSinkQueueItem* CSinkQueueItem::NewL( - CMMFBuffer* aBuffer, - MMultimediaDataSourceObserver* aMMDSObserver, - MDataSink* aConsumer ) - { - CSinkQueueItem* self = new(ELeave) CSinkQueueItem( aBuffer, aMMDSObserver, aConsumer ); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - - -// ----------------------------------------------------------------------------- -// CSinkQueueItem::~CSinkQueueItem -// Destructor -// ----------------------------------------------------------------------------- -// -CSinkQueueItem::~CSinkQueueItem() - { - } - -CMMFDataBuffer* CSinkQueueItem::Buffer() - { - return static_cast(iBuffer); - } - -MMultimediaDataSourceObserver* CSinkQueueItem::Observer() - { - return iMMDSObserver; - } - -MDataSink* CSinkQueueItem::Consumer() - { - return iConsumer; - } - -// End of file