1 /* |
|
2 * Copyright (c) 2008 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: Class to get the settings that define when ho should be |
|
15 * allowed. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_VCCHOPOLICYREADER_H |
|
22 #define C_VCCHOPOLICYREADER_H |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 #include "vcchopolicy.h" |
|
27 #include "vccsignallevelparams.h" |
|
28 #include "vccunittesting.h" |
|
29 |
|
30 class CVccSPSettings; |
|
31 |
|
32 /** |
|
33 * Reads settings that define when handover can be performed from cenreps. |
|
34 * |
|
35 * @lib vcchotrigger.lib |
|
36 * @since S60 v3.2 |
|
37 */ |
|
38 class CVccHoPolicyReader: public CBase |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CVccHoPolicyReader* NewL(); |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 */ |
|
50 static CVccHoPolicyReader* NewLC(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CVccHoPolicyReader(); |
|
56 |
|
57 /** |
|
58 * Handover policy |
|
59 * @since S60 3.2 |
|
60 * @return VCC HO policy |
|
61 */ |
|
62 TVccHoPolicy HoPolicy() const; |
|
63 |
|
64 /** |
|
65 * Read Ho policy settings from repository |
|
66 * @since S60 3.2 |
|
67 */ |
|
68 void ReadSettingsL(); |
|
69 |
|
70 /** |
|
71 * Get CS signal level parameters |
|
72 * @since S60 3.2 |
|
73 * @return CS signal level parameters |
|
74 */ |
|
75 TSignalLevelParams CsSignalLevelParams() const; |
|
76 |
|
77 /** |
|
78 * Get PS signal level parameters |
|
79 * @since S60 3.2 |
|
80 * @return PS signal level parameters |
|
81 */ |
|
82 TSignalLevelParams PsSignalLevelParams() const; |
|
83 |
|
84 private: |
|
85 |
|
86 /** |
|
87 * C++ Constructor |
|
88 */ |
|
89 CVccHoPolicyReader(); |
|
90 |
|
91 /** |
|
92 * 2nd phase constructor |
|
93 */ |
|
94 void ConstructL(); |
|
95 |
|
96 /* |
|
97 * Defines policy for preferred domain |
|
98 * @since S60 3.2 |
|
99 */ |
|
100 void ResolvePreferredDomainL(); |
|
101 |
|
102 /* |
|
103 * Defines policy for immediate domain transfer |
|
104 * @since S60 3.2 |
|
105 */ |
|
106 void ResolveImmediateHoL(); |
|
107 |
|
108 /* |
|
109 * Defines policy for allowed handover direction |
|
110 * @since S60 3.2 |
|
111 */ |
|
112 void ResolveHoDirectionL(); |
|
113 |
|
114 /* |
|
115 * Defines policy is handover allowed when |
|
116 * mobile device has held or waiting calls |
|
117 * @since S60 3.2 |
|
118 */ |
|
119 void ResolveHoInHeldWaitingCallsL(); |
|
120 |
|
121 /* |
|
122 * Defines policy for signal levels |
|
123 * @since S60 3.2 |
|
124 */ |
|
125 void ResolveSignalLevelParametersL(); |
|
126 |
|
127 /* |
|
128 * Defines can HO be made if call is CS originated |
|
129 */ |
|
130 void ResolveDtAllowedWhenCsOriginatedL(); |
|
131 |
|
132 private: //data |
|
133 |
|
134 /** |
|
135 * Reads handover specific settings from sp table |
|
136 * Own. |
|
137 */ |
|
138 CVccSPSettings* iSpSettings; |
|
139 |
|
140 /* |
|
141 * Contains settings that affect when handover |
|
142 * can be performed. |
|
143 */ |
|
144 TVccHoPolicy iPolicy; |
|
145 |
|
146 /** PS signal level parameters */ |
|
147 TSignalLevelParams iPsParams; |
|
148 |
|
149 /** CS signal level parameters */ |
|
150 TSignalLevelParams iCsParams; |
|
151 |
|
152 VCC_UNITTEST( UT_CVccHoPolicy ) |
|
153 }; |
|
154 |
|
155 #endif // C_VCCHOPOLICYREADER_H |
|