|
1 /* |
|
2 * Copyright (c) 2007 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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of CTestWaiter class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "testwaiter.h" |
|
20 |
|
21 #pragma tagging OFF // To disable CodeTest tagging |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // CTestWaiter::NewL |
|
27 // |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 CTestWaiter* CTestWaiter::NewL() |
|
31 { |
|
32 CTestWaiter* self = new( ELeave ) CTestWaiter; |
|
33 return self; |
|
34 } |
|
35 |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // CTestWaiter::~CTestWaiter |
|
39 // |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 CTestWaiter::~CTestWaiter() |
|
43 { |
|
44 } |
|
45 |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // CTestWaiter::Activate |
|
49 // |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 void CTestWaiter::Activate() |
|
53 { |
|
54 __ASSERT_ALWAYS( !IsActive(), User::Invariant() ); |
|
55 |
|
56 SetActive(); |
|
57 } |
|
58 |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // CTestWaiter::CTestWaiter |
|
62 // |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 CTestWaiter::CTestWaiter() |
|
66 : CActive( EPriorityStandard ) |
|
67 { |
|
68 CActiveScheduler::Add( this ); |
|
69 } |
|
70 |
|
71 |
|
72 // --------------------------------------------------------------------------- |
|
73 // CTestWaiter::DoCancel |
|
74 // |
|
75 // --------------------------------------------------------------------------- |
|
76 // |
|
77 void CTestWaiter::DoCancel() |
|
78 { |
|
79 } |
|
80 |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // CTestWaiter::RunL |
|
84 // |
|
85 // --------------------------------------------------------------------------- |
|
86 // |
|
87 void CTestWaiter::RunL() |
|
88 { |
|
89 CActiveScheduler::Stop(); |
|
90 } |
|
91 |
|
92 #pragma tagging ON // To stop disabling CodeTest tagging |