messagingfw/msgtestfw/Framework/src/CMtfTestActionSectionComplete.cpp
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18 */
       
    19 
       
    20 #include "CMtfTestActionSectionComplete.h"
       
    21 #include "CMtfTestCase.h"
       
    22 #include "CMtfTestActionWait.h"
       
    23 #include "CMtfTestActionParameters.h"
       
    24 
       
    25 /** Creates a new instance. A wait action is always inserted before a section complete,
       
    26 because all test actions must complete before next section can be executed. */
       
    27 CMtfTestActionSectionComplete* CMtfTestActionSectionComplete::NewL(CMtfTestCase& aTestCase)  
       
    28 {
       
    29 	CMtfTestActionSectionComplete* self = new (ELeave) CMtfTestActionSectionComplete(aTestCase);
       
    30 	CleanupStack::PushL(self);
       
    31 	
       
    32 	// insert a wait action, NewL adds the new wait action to the test case
       
    33 	CMtfTestActionWait::NewL(aTestCase);
       
    34 	
       
    35 	// takes ownership of action parameters at the end of the function
       
    36 	self->ConstructL(CMtfTestActionParameters::NewLC());
       
    37 	
       
    38 	CleanupStack::Pop(2,self);
       
    39 	return self;
       
    40 }
       
    41 
       
    42 CMtfTestActionSectionComplete::CMtfTestActionSectionComplete(CMtfTestCase& aTestCase)
       
    43 : CMtfTestAction(aTestCase)
       
    44 {
       
    45 }
       
    46 		
       
    47 CMtfTestActionSectionComplete::~CMtfTestActionSectionComplete() 
       
    48 {
       
    49 }
       
    50 
       
    51 void CMtfTestActionSectionComplete::RunL()
       
    52 {
       
    53 }
       
    54 
       
    55 void CMtfTestActionSectionComplete::DoCancel()
       
    56 {
       
    57 }
       
    58 
       
    59 TBool CMtfTestActionSectionComplete::SectionCompleteAction() const
       
    60 {
       
    61 	return ETrue;
       
    62 }
       
    63 
       
    64 void CMtfTestActionSectionComplete::ExecuteActionL()
       
    65 {
       
    66 	TestCase().SectionCompletedL();
       
    67 }