equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "MdETestScripterAO.h" |
|
19 #include "MdETestScripter.h" |
|
20 #include <e32debug.h> |
|
21 |
|
22 CMdETestScripterAO::CMdETestScripterAO() : CActive( EPriorityStandard ) |
|
23 { |
|
24 } |
|
25 |
|
26 CMdETestScripterAO* CMdETestScripterAO::NewLC() |
|
27 { |
|
28 CMdETestScripterAO* self = new (ELeave) CMdETestScripterAO(); |
|
29 CleanupStack::PushL( self ); |
|
30 self->ConstructL(); |
|
31 return self; |
|
32 } |
|
33 |
|
34 CMdETestScripterAO* CMdETestScripterAO::NewL() |
|
35 { |
|
36 CMdETestScripterAO* self = CMdETestScripterAO::NewLC(); |
|
37 CleanupStack::Pop(); |
|
38 return self; |
|
39 } |
|
40 |
|
41 void CMdETestScripterAO::ConstructL() |
|
42 { |
|
43 CActiveScheduler::Add( this ); |
|
44 } |
|
45 |
|
46 CMdETestScripterAO::~CMdETestScripterAO() |
|
47 { |
|
48 Cancel(); |
|
49 } |
|
50 |
|
51 void CMdETestScripterAO::Start( CMdETestScripter* aScripter, TEventIf aEvent ) |
|
52 { |
|
53 Cancel(); |
|
54 iScripter = aScripter; |
|
55 iEvent = aEvent; |
|
56 SetActive(); |
|
57 } |
|
58 |
|
59 void CMdETestScripterAO::RunL() |
|
60 { |
|
61 iScripter->CheckAsyncResultArrayL( iEvent ); |
|
62 iScripter->TestModuleIf().Event( iEvent ); |
|
63 } |
|
64 |
|
65 void CMdETestScripterAO::DoCancel() |
|
66 { |
|
67 } |
|
68 |
|
69 TInt CMdETestScripterAO::RunError(TInt aError) |
|
70 { |
|
71 return aError; |
|
72 } |