diff -r 000000000000 -r 40261b775718 mdfdevvideoextensions/nga_mdf_postprocessor/src/NGAPostProcNotifier.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mdfdevvideoextensions/nga_mdf_postprocessor/src/NGAPostProcNotifier.cpp Tue Feb 02 01:56:55 2010 +0200 @@ -0,0 +1,85 @@ +/* +* 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: +* +*/ + + +#include "NGAPostProcNotifier.h" +#include "NGAPostProcSessionManager.h" +#include "MdfRDebug.h" + +CNGAPostProcNotifier::CNGAPostProcNotifier( CNGAPostProcSessionManager& aParent ) +:CActive(CActive::EPriorityStandard),iParent(aParent) +{ + CActiveScheduler::Add(this); +} + +CNGAPostProcNotifier::~CNGAPostProcNotifier() +{ + Cancel(); +} + +CNGAPostProcNotifier* CNGAPostProcNotifier::NewL( CNGAPostProcSessionManager& aParent ) +{ + CNGAPostProcNotifier* self = new (ELeave)CNGAPostProcNotifier(aParent); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; +} + +void CNGAPostProcNotifier::ConstructL() +{ + // No Impl +} + +void CNGAPostProcNotifier::SetBufferId(TInt aBufId) +{ + iBufferId = aBufId; +} + +void CNGAPostProcNotifier::Activate() +{ + PP_DEBUG(_L("CNGAPostProcNotifier:Activate ++")); + if(!IsActive()) + { + PP_DEBUG(_L("CNGAPostProcNotifier:Activate SetActive")); + SetActive(); + } + PP_DEBUG(_L("CNGAPostProcNotifier:Activate --")); +} + +void CNGAPostProcNotifier::RunL() +{ + PP_DEBUG(_L("CNGAPostProcNotifier:RunL ++")); + if (iStatus == KErrCancel) + { + PP_DEBUG(_L("CNGAPostProcNotifier[%x]:RunL State canceled"), this); + return; + } + iParent.HandleBufferRelease(iBufferId, iStatus.Int()); + + PP_DEBUG(_L("CNGAPostProcNotifier:RunL --")); +} + +void CNGAPostProcNotifier::DoCancel() +{ +} + +TInt CNGAPostProcNotifier::RunError( TInt /*aError*/ ) +{ + PP_DEBUG(_L("CNGAPostProcNotifier[%x]:CNGAPostProcNotifier::RunError "), this); + return KErrNone; +}