messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionGetDefaultMtmCommandParameters.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 // __ACTION_INFO_BEGIN__ 
       
    15 // [Action Name]
       
    16 // GetDefaultMtmCommandParameters
       
    17 // [Action Parameters]
       
    18 // CommandParameters <output>: Reference to the command parameters.
       
    19 // [Action Description]
       
    20 // Returns the default MTM default command parameters.
       
    21 // [APIs Used]
       
    22 // none.
       
    23 // __ACTION_INFO_END__
       
    24 // 
       
    25 //
       
    26 
       
    27 /**
       
    28  @file
       
    29 */
       
    30 
       
    31 #include "CMtfTestActionGetDefaultMtmCommandParameters.h"
       
    32 #include "CMtfTestCase.h"
       
    33 #include "CMtfTestActionParameters.h"
       
    34 
       
    35 
       
    36 CMtfTestAction* CMtfTestActionGetDefaultMtmCommandParameters::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
       
    37 	{
       
    38 	CMtfTestActionGetDefaultMtmCommandParameters* self = new (ELeave) CMtfTestActionGetDefaultMtmCommandParameters(aTestCase);
       
    39 	CleanupStack::PushL(self);
       
    40 	self->ConstructL(aActionParameters);
       
    41 	CleanupStack::Pop();
       
    42 	return self;
       
    43 	}
       
    44 	
       
    45 
       
    46 CMtfTestActionGetDefaultMtmCommandParameters::CMtfTestActionGetDefaultMtmCommandParameters(CMtfTestCase& aTestCase)
       
    47 	: CMtfSynchronousTestAction(aTestCase)
       
    48 	{
       
    49 	}
       
    50 
       
    51 
       
    52 CMtfTestActionGetDefaultMtmCommandParameters::~CMtfTestActionGetDefaultMtmCommandParameters()
       
    53 	{
       
    54 	}
       
    55 
       
    56 
       
    57 void CMtfTestActionGetDefaultMtmCommandParameters::ExecuteActionL()
       
    58 	{
       
    59 	TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionGetDefaultMtmCommandParameters);
       
    60 	HBufC8* paramCommandParameters = HBufC8::NewL(1);
       
    61 	CleanupStack::PushL(paramCommandParameters);
       
    62 	StoreParameterL<HBufC8>(TestCase(),*paramCommandParameters,ActionParameters().Parameter(0));
       
    63 	CleanupStack::Pop(paramCommandParameters);
       
    64 
       
    65 	TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionGetDefaultMtmCommandParameters);
       
    66 	TestCase().ActionCompletedL(*this);
       
    67 	}
       
    68 
       
    69