omxilvideocomps/omxil3gpmuxer/src/endwaitao.cpp
author hgs
Fri, 08 Oct 2010 22:09:17 +0100
changeset 0 5d29cba61097
permissions -rw-r--r--
2010wk38_02

/*
* Copyright (c) 2008 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 "endwaitao.h"
#include <e32debug.h>
#include "log.h"

CEndWaitAO* CEndWaitAO::NewL()
	{
	DEBUG_PRINTF(_L8("CEndWaitAO::NewL"));
	CEndWaitAO* self = new(ELeave) CEndWaitAO();
	return self;
	}

CEndWaitAO::CEndWaitAO():
CAsyncOneShot(EPriorityHigh)
	{
	}

CEndWaitAO::~CEndWaitAO()
	{
	DEBUG_PRINTF(_L8("CEndWaitAO::~CEndWaitAO"));
	Cancel();
	}

void CEndWaitAO::RunL()
	{
	DEBUG_PRINTF(_L8("CEndWaitAO::RunL"));
	CActiveScheduler::Stop();
	}

void CEndWaitAO::DoCancel()
	{
	DEBUG_PRINTF(_L8("CEndWaitAO::DoCancel"));
	TRequestStatus* status = &iStatus;
	User::RequestComplete(status, KErrCancel);
	}