messagingfw/msgtestfw/TestActions/OBEX/IR/src/CMtfTestActionGetIRMTMUId.cpp
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2004-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 // GetIRMTMUId
       
    17 // [Action Parameters]
       
    18 // TUid IRMtmUid     <output-initiation>: Value of the IR MTM uid.
       
    19 // [Action Description]
       
    20 // Returns the value of IR MTM Uid 
       
    21 // [APIs Used]
       
    22 // none.
       
    23 // __ACTION_INFO_END__
       
    24 // 
       
    25 //
       
    26 
       
    27 #include "CMtfTestActionGetIRMTMUId.h"
       
    28 #include "CMtfTestCase.h"
       
    29 #include "CMtfTestActionParameters.h"
       
    30 
       
    31 #include <irmsgtypeuid.h>
       
    32 
       
    33 
       
    34 CMtfTestAction* CMtfTestActionGetIRMTMUId::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
       
    35 	{
       
    36 	CMtfTestActionGetIRMTMUId* self = new (ELeave) CMtfTestActionGetIRMTMUId(aTestCase);
       
    37 	CleanupStack::PushL(self);
       
    38 	self->ConstructL(aActionParameters);
       
    39 	CleanupStack::Pop();
       
    40 	return self;
       
    41 	}
       
    42 	
       
    43 //  does nothing
       
    44 CMtfTestActionGetIRMTMUId::CMtfTestActionGetIRMTMUId(CMtfTestCase& aTestCase)
       
    45 	:CMtfSynchronousTestAction(aTestCase)
       
    46 	{
       
    47 	}
       
    48 
       
    49 // does nothing
       
    50 CMtfTestActionGetIRMTMUId::~CMtfTestActionGetIRMTMUId()
       
    51 	{
       
    52 	}
       
    53 
       
    54 void CMtfTestActionGetIRMTMUId::ExecuteActionL()
       
    55 	{
       
    56 	TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionGetIrMTMUId);
       
    57 	TUid irMtmUid = KUidMsgTypeIrUID;
       
    58 	StoreParameterL<TUid>(TestCase(),irMtmUid,ActionParameters().Parameter(0));
       
    59 
       
    60 	TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionGetIrMTMUId);
       
    61 
       
    62 	TestCase().ActionCompletedL(*this);
       
    63 	}
       
    64 
       
    65 
       
    66