|
1 /* |
|
2 * Copyright (c) 2006-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 the License "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 WlanDynamicPowerModeMgmtCntx inline methods |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 5 % |
|
20 */ |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 inline void WlanDynamicPowerModeMgmtCntx::CancelTimeouts() |
|
27 { |
|
28 CancelToLightPsTimeout(); |
|
29 CancelToActiveTimeout(); |
|
30 CancelToDeepPsTimeout(); |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 inline |
|
38 TBool WlanDynamicPowerModeMgmtCntx::StayInPsDespiteUapsdVoiceTraffic() const |
|
39 { |
|
40 return ( iFlags & KStayInPsDespiteUapsdVoiceTraffic ); |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 inline |
|
48 TBool WlanDynamicPowerModeMgmtCntx::StayInPsDespiteUapsdVideoTraffic() const |
|
49 { |
|
50 return ( iFlags & KStayInPsDespiteUapsdVideoTraffic ); |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 inline TBool |
|
58 WlanDynamicPowerModeMgmtCntx::StayInPsDespiteUapsdBestEffortTraffic() const |
|
59 { |
|
60 return ( iFlags & KStayInPsDespiteUapsdBestEffortTraffic ); |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 inline TBool |
|
68 WlanDynamicPowerModeMgmtCntx::StayInPsDespiteUapsdBackgroundTraffic() const |
|
69 { |
|
70 return ( iFlags & KStayInPsDespiteUapsdBackgroundTraffic ); |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 inline |
|
78 TBool WlanDynamicPowerModeMgmtCntx::StayInPsDespiteLegacyVoiceTraffic() const |
|
79 { |
|
80 return ( iFlags & KStayInPsDespiteLegacyVoiceTraffic ); |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 inline |
|
88 TBool WlanDynamicPowerModeMgmtCntx::StayInPsDespiteLegacyVideoTraffic() const |
|
89 { |
|
90 return ( iFlags & KStayInPsDespiteLegacyVideoTraffic ); |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 inline TBool |
|
98 WlanDynamicPowerModeMgmtCntx::StayInPsDespiteLegacyBestEffortTraffic() const |
|
99 { |
|
100 return ( iFlags & KStayInPsDespiteLegacyBestEffortTraffic ); |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 inline TBool |
|
108 WlanDynamicPowerModeMgmtCntx::StayInPsDespiteLegacyBackgroundTraffic() const |
|
109 { |
|
110 return ( iFlags & KStayInPsDespiteLegacyBackgroundTraffic ); |
|
111 } |