diff -r 000000000000 -r 71ca22bcf22a mmfenh/enhancedmediaclient/Plugins/ProgDLSource/src/SinkQueueItem.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmfenh/enhancedmediaclient/Plugins/ProgDLSource/src/SinkQueueItem.cpp Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,99 @@ +/* +* 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