messagingfw/msgtestfw/TestActions/Sms/src/CMtfTestActionGetSmsConstants.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 // GetSmsConstants
       
    17 // [Action Parameters]
       
    18 // TUid SmsMtmUid     <output-initiation>: Value of the SMS MTM uid.
       
    19 // [Action Description]
       
    20 // Returns the value of SMS MTM Uid 
       
    21 // [APIs Used]
       
    22 // none.
       
    23 // __ACTION_INFO_END__
       
    24 // 
       
    25 //
       
    26 
       
    27 /**
       
    28  @file
       
    29 */
       
    30 
       
    31 #include "CMtfTestActionGetSmsConstants.h"
       
    32 #include "CMtfTestCase.h"
       
    33 #include "CMtfTestActionParameters.h"
       
    34 
       
    35 #include <smut.h>
       
    36 
       
    37 
       
    38 CMtfTestAction* CMtfTestActionGetSmsConstants::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
       
    39 	{
       
    40 	CMtfTestActionGetSmsConstants* self = new (ELeave) CMtfTestActionGetSmsConstants(aTestCase);
       
    41 	CleanupStack::PushL(self);
       
    42 	self->ConstructL(aActionParameters);
       
    43 	CleanupStack::Pop();
       
    44 	return self;
       
    45 	}
       
    46 	
       
    47 //  does nothing
       
    48 CMtfTestActionGetSmsConstants::CMtfTestActionGetSmsConstants(CMtfTestCase& aTestCase)
       
    49 	:CMtfSynchronousTestAction(aTestCase)
       
    50 	{
       
    51 	}
       
    52 
       
    53 // does nothing
       
    54 CMtfTestActionGetSmsConstants::~CMtfTestActionGetSmsConstants()
       
    55 	{
       
    56 	}
       
    57 
       
    58 //  initiates asynchronous request
       
    59 void CMtfTestActionGetSmsConstants::ExecuteActionL()
       
    60 	{
       
    61 	TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionGetSmsConstants);
       
    62 	TUid smsMtmUid = KUidMsgTypeSMS;
       
    63 	StoreParameterL<TUid>(TestCase(),smsMtmUid,ActionParameters().Parameter(0));
       
    64 	TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionGetSmsConstants);
       
    65 	TestCase().ActionCompletedL(*this);
       
    66 	}
       
    67 
       
    68 
       
    69