os/mm/mdfdevvideoextensions/nga_mdf_postprocessor_shai/src/NGAPostProcNotifier.cpp
Update contrib.
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #include "NGAPostProcNotifier.h"
20 #include "NGAPostProcSessionManager.h"
21 #include "MdfRDebug.h"
23 CNGAPostProcNotifier::CNGAPostProcNotifier( CNGAPostProcSessionManager& aParent )
24 :CActive(CActive::EPriorityStandard),iParent(aParent)
26 CActiveScheduler::Add(this);
29 CNGAPostProcNotifier::~CNGAPostProcNotifier()
34 CNGAPostProcNotifier* CNGAPostProcNotifier::NewL( CNGAPostProcSessionManager& aParent )
36 CNGAPostProcNotifier* self = new (ELeave)CNGAPostProcNotifier(aParent);
37 CleanupStack::PushL( self );
39 CleanupStack::Pop( self );
43 void CNGAPostProcNotifier::ConstructL()
48 void CNGAPostProcNotifier::SetBufferId(TInt aBufId)
53 void CNGAPostProcNotifier::Activate()
55 PP_DEBUG(_L("CNGAPostProcNotifier:Activate ++"));
58 PP_DEBUG(_L("CNGAPostProcNotifier:Activate SetActive"));
61 PP_DEBUG(_L("CNGAPostProcNotifier:Activate --"));
64 void CNGAPostProcNotifier::RunL()
66 PP_DEBUG(_L("CNGAPostProcNotifier:RunL ++"));
67 //KErrCancel should never get invoked Since cancellation handled syncronously under AO's
69 iParent.HandleBufferRelease(iBufferId, iStatus.Int());
71 PP_DEBUG(_L("CNGAPostProcNotifier:RunL --"));
74 void CNGAPostProcNotifier::DoCancel()
76 iParent.CancelUpdate();
79 TInt CNGAPostProcNotifier::RunError( TInt /*aError*/ )
81 PP_DEBUG(_L("CNGAPostProcNotifier[%x]:CNGAPostProcNotifier::RunError "), this);