1 /* |
|
2 * Copyright (c) 2005 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: Implementation of CCmPluginWlanActiveWaiter. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "cmpwlanactivewaiter.h" |
|
21 |
|
22 |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 // --------------------------------------------------------- |
|
27 // CCmPluginWlanActiveWaiter* CCmPluginWlanActiveWaiter::NewL() |
|
28 // --------------------------------------------------------- |
|
29 // |
|
30 CCmPluginWlanActiveWaiter* CCmPluginWlanActiveWaiter::NewL( ) |
|
31 { |
|
32 CCmPluginWlanActiveWaiter* self = |
|
33 new ( ELeave ) CCmPluginWlanActiveWaiter( ); |
|
34 CleanupStack::PushL( self ); |
|
35 self->ConstructL(); |
|
36 CleanupStack::Pop( self ); |
|
37 |
|
38 return self; |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------- |
|
42 // CCmPluginWlanActiveWaiter::ConstructL() |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 void CCmPluginWlanActiveWaiter::ConstructL() |
|
46 { |
|
47 CActiveScheduler::Add( this ); |
|
48 } |
|
49 |
|
50 |
|
51 // --------------------------------------------------------- |
|
52 // CCmPluginWlanActiveWaiter::CCmPluginWlanActiveWaiter() |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 CCmPluginWlanActiveWaiter::CCmPluginWlanActiveWaiter( ) |
|
56 : CActive( KErrNone ) |
|
57 { |
|
58 } |
|
59 |
|
60 |
|
61 // --------------------------------------------------------- |
|
62 // CCmPluginWlanActiveWaiter::~CCmPluginWlanActiveWaiter() |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 CCmPluginWlanActiveWaiter::~CCmPluginWlanActiveWaiter() |
|
66 { |
|
67 Cancel(); |
|
68 } |
|
69 |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // CCmPluginWlanActiveWaiter::DoCancel() |
|
73 // --------------------------------------------------------- |
|
74 // |
|
75 void CCmPluginWlanActiveWaiter::DoCancel() |
|
76 { |
|
77 } |
|
78 |
|
79 |
|
80 // --------------------------------------------------------- |
|
81 // CCmPluginWlanActiveWaiter::RunL() |
|
82 // --------------------------------------------------------- |
|
83 // |
|
84 void CCmPluginWlanActiveWaiter::RunL() |
|
85 { |
|
86 if ( iWait.IsStarted() ) |
|
87 { |
|
88 iWait.AsyncStop(); |
|
89 } |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------- |
|
93 // CCmPluginWlanActiveWaiter::WaitForRequest() |
|
94 // --------------------------------------------------------- |
|
95 // |
|
96 TInt CCmPluginWlanActiveWaiter::WaitForRequest() |
|
97 { |
|
98 SetActive(); |
|
99 iWait.Start(); |
|
100 return iStatus.Int(); |
|
101 } |
|
102 // End of File |
|
103 |
|