|
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 // GetPigeonMtmConstant |
|
17 // [Action Parameters] |
|
18 // TUid PigeonMtmUid <output-initiation>: Value of the Pigeon MTM uid. |
|
19 // [Action Description] |
|
20 // Provides the value of Pigeon MTM Uid |
|
21 // [APIs Used] |
|
22 // none. |
|
23 // __ACTION_INFO_END__ |
|
24 // |
|
25 // |
|
26 |
|
27 // System Includes |
|
28 #include "pigeonservermtm.h" |
|
29 |
|
30 // User Includes |
|
31 #include "CMtfTestActionGetPigeonMtmConstant.h" |
|
32 #include "CMtfTestCase.h" |
|
33 #include "CMtfTestActionParameters.h" |
|
34 |
|
35 |
|
36 /** |
|
37 Function : NewL |
|
38 Description :Constructs a new CMtfTestActionGetPigeonMtmConstant object |
|
39 @internalTechnology |
|
40 @param : aTestCase :Reference to the Test case |
|
41 @param : aActionParams :Test Action parameters |
|
42 @return : CMtfTestAction* :a base class pointer to the newly created object |
|
43 @pre : none |
|
44 @post : none |
|
45 */ |
|
46 CMtfTestAction* CMtfTestActionGetPigeonMtmConstant::NewL(CMtfTestCase& aTestCase, |
|
47 CMtfTestActionParameters* aActionParameters) |
|
48 { |
|
49 CMtfTestActionGetPigeonMtmConstant* self = new (ELeave) |
|
50 CMtfTestActionGetPigeonMtmConstant(aTestCase); |
|
51 CleanupStack::PushL(self); |
|
52 self->ConstructL(aActionParameters); |
|
53 CleanupStack::Pop(self); |
|
54 return self; |
|
55 } |
|
56 |
|
57 /** |
|
58 Function : CMtfTestActionGetPigeonMtmConstant |
|
59 Description : Constructor |
|
60 @internalTechnology |
|
61 @param : aTestCase - CMtfTestCase for the CMtfTestAction base class |
|
62 @pre none |
|
63 @post: none |
|
64 */ |
|
65 CMtfTestActionGetPigeonMtmConstant::CMtfTestActionGetPigeonMtmConstant(CMtfTestCase& aTestCase) |
|
66 :CMtfSynchronousTestAction(aTestCase) |
|
67 { |
|
68 } |
|
69 |
|
70 /** |
|
71 Function : ~CMtfTestActionGetPigeonMtmConstant |
|
72 Description : Destructor |
|
73 @internalTechnology |
|
74 */ |
|
75 CMtfTestActionGetPigeonMtmConstant::~CMtfTestActionGetPigeonMtmConstant() |
|
76 { |
|
77 } |
|
78 |
|
79 /** |
|
80 Function : ExecuteActionL |
|
81 Description : Provides the Pigeon MTM UId as the output of the Test Action |
|
82 @internalTechnology |
|
83 @param : none |
|
84 @return : void |
|
85 @pre |
|
86 @post: none |
|
87 */ |
|
88 void CMtfTestActionGetPigeonMtmConstant::ExecuteActionL() |
|
89 { |
|
90 TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionGetPigeonMtmConstant); |
|
91 TUid mtmUid = KUidMsgTypePigeon; |
|
92 StoreParameterL<TUid>(TestCase(),mtmUid,ActionParameters().Parameter(0)); |
|
93 TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionGetPigeonMtmConstant); |
|
94 TestCase().ActionCompletedL(*this); |
|
95 } |