|
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 |
|
21 #include "CMtfTestActionSampleActionE.h" |
|
22 #include "CMtfTestActionManager.h" |
|
23 #include "CMtfTestServer.h" |
|
24 #include "CMtfTestCase.h" |
|
25 |
|
26 CMtfTestAction* CMtfTestActionSampleActionE::NewL(CMtfTestCase& aTestCase, |
|
27 CMtfTestActionParameters* aActionParameters) |
|
28 { |
|
29 CMtfTestActionSampleActionE* self = new (ELeave) CMtfTestActionSampleActionE(aTestCase); |
|
30 CleanupStack::PushL(self); |
|
31 self->ConstructL(aActionParameters); |
|
32 CleanupStack::Pop(); |
|
33 return self; |
|
34 } |
|
35 |
|
36 CMtfTestActionSampleActionE::CMtfTestActionSampleActionE(CMtfTestCase& aTestCase) |
|
37 : CMtfTestAction(aTestCase) |
|
38 { |
|
39 } |
|
40 |
|
41 void CMtfTestActionSampleActionE::ExecuteActionL() |
|
42 { |
|
43 CActiveScheduler::Add(this); |
|
44 SetActive(); |
|
45 TRequestStatus* status = &iStatus; |
|
46 User::RequestComplete(status,KErrNone); |
|
47 } |
|
48 |
|
49 CMtfTestActionSampleActionE::~CMtfTestActionSampleActionE() |
|
50 { |
|
51 } |
|
52 |
|
53 void CMtfTestActionSampleActionE::RunL() |
|
54 { |
|
55 TestCase().ActionCompletedL(*this); |
|
56 } |
|
57 |
|
58 void CMtfTestActionSampleActionE::DoCancel() |
|
59 { |
|
60 // do nothing |
|
61 } |