cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsyasyncoperation.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // TestTelephonyAsyncOperation.cpp
       
     2 //
       
     3 // Copyright (c) 2004-2007 Symbian Ltd.  All rights reserved.
       
     4 //
       
     5 // The active object derived class for asynchronous requests
       
     6 //
       
     7 
       
     8 // Epoc includes
       
     9 #include <testproperty.h>
       
    10 #include <e32property.h>
       
    11 #include <sacls.h>
       
    12 
       
    13 // User includes
       
    14 #include "TestLtsyAsyncOperation.h"
       
    15 
       
    16 CTelephonyAsyncOperation::CTelephonyAsyncOperation(CTestStep& aTestStep)
       
    17 /*
       
    18 Constructor
       
    19 
       
    20 Adds the active object to active scheduler.
       
    21 
       
    22 @param aInt Operation id
       
    23 */
       
    24 :	CActive(EPriorityStandard)
       
    25 ,	iTestStep(aTestStep)
       
    26 	{
       
    27 	CActiveScheduler::Add(this);
       
    28 	}
       
    29 
       
    30 CTelephonyAsyncOperation::~CTelephonyAsyncOperation()
       
    31 /*
       
    32 Destructor
       
    33 */
       
    34 	{
       
    35 	}
       
    36 
       
    37 void CTelephonyAsyncOperation::DoCancel()
       
    38 /*
       
    39 For canceling the request
       
    40 */
       
    41 	{
       
    42 	}
       
    43 
       
    44 void CTelephonyAsyncOperation::RunL()
       
    45 /*
       
    46 Stop the active scheduler
       
    47 */
       
    48 	{
       
    49 	CActiveScheduler::Stop();
       
    50 	}
       
    51 
       
    52 TInt CTelephonyAsyncOperation::SetOperation()
       
    53 /*
       
    54 Set the active object request and start the active scheduler
       
    55 */
       
    56 	{
       
    57 	SetActive();
       
    58 	CActiveScheduler::Start();
       
    59 	return iStatus.Int();
       
    60 	}