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 if (iStatus == KErrCancel)
69 PP_DEBUG(_L("CNGAPostProcNotifier[%x]:RunL State canceled"), this);
72 iParent.HandleBufferRelease(iBufferId, iStatus.Int());
74 PP_DEBUG(_L("CNGAPostProcNotifier:RunL --"));
77 void CNGAPostProcNotifier::DoCancel()
81 TInt CNGAPostProcNotifier::RunError( TInt /*aError*/ )
83 PP_DEBUG(_L("CNGAPostProcNotifier[%x]:CNGAPostProcNotifier::RunError "), this);