cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsyasyncoperation.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 15:36:38 +0300
changeset 49 f50f4094acd7
permissions -rw-r--r--
Revision: 201027 Kit: 2010127

// TestTelephonyAsyncOperation.cpp
//
// Copyright (c) 2004-2007 Symbian Ltd.  All rights reserved.
//
// The active object derived class for asynchronous requests
//

// Epoc includes
#include <testproperty.h>
#include <e32property.h>
#include <sacls.h>

// User includes
#include "TestLtsyAsyncOperation.h"

CTelephonyAsyncOperation::CTelephonyAsyncOperation(CTestStep& aTestStep)
/*
Constructor

Adds the active object to active scheduler.

@param aInt Operation id
*/
:	CActive(EPriorityStandard)
,	iTestStep(aTestStep)
	{
	CActiveScheduler::Add(this);
	}

CTelephonyAsyncOperation::~CTelephonyAsyncOperation()
/*
Destructor
*/
	{
	}

void CTelephonyAsyncOperation::DoCancel()
/*
For canceling the request
*/
	{
	}

void CTelephonyAsyncOperation::RunL()
/*
Stop the active scheduler
*/
	{
	CActiveScheduler::Stop();
	}

TInt CTelephonyAsyncOperation::SetOperation()
/*
Set the active object request and start the active scheduler
*/
	{
	SetActive();
	CActiveScheduler::Start();
	return iStatus.Int();
	}