60 CReaderBase* aFileReader, |
60 CReaderBase* aFileReader, |
61 RCmManagerExt& aCmManager, |
61 RCmManagerExt& aCmManager, |
62 RPointerArray< RCmConnectionMethodExt >& aPluginArray, |
62 RPointerArray< RCmConnectionMethodExt >& aPluginArray, |
63 RPointerArray< HBufC >& aPluginNames, |
63 RPointerArray< HBufC >& aPluginNames, |
64 RPointerArray< RCmDestinationExt >& aDestArray, |
64 RPointerArray< RCmDestinationExt >& aDestArray, |
65 RPointerArray< HBufC >& aDestNames ); |
65 RPointerArray< HBufC >& aDestNames, |
|
66 RPointerArray< HBufC >& aDefCon ); |
66 |
67 |
|
68 // Stores the default connection values |
|
69 void SetDefaultConnectionL(); |
|
70 |
67 /** |
71 /** |
68 * Destructor. |
72 * Destructor. |
69 */ |
73 */ |
70 virtual ~CProcessorGlobal(); |
74 virtual ~CProcessorGlobal(); |
71 |
75 |
78 CProcessorGlobal( CReaderBase* aFileReader, |
82 CProcessorGlobal( CReaderBase* aFileReader, |
79 RCmManagerExt& aCmManager, |
83 RCmManagerExt& aCmManager, |
80 RPointerArray< RCmConnectionMethodExt >& aPluginArray, |
84 RPointerArray< RCmConnectionMethodExt >& aPluginArray, |
81 RPointerArray< HBufC >& aPluginNames, |
85 RPointerArray< HBufC >& aPluginNames, |
82 RPointerArray< RCmDestinationExt >& aDestArray, |
86 RPointerArray< RCmDestinationExt >& aDestArray, |
83 RPointerArray< HBufC >& aDestNames ); |
87 RPointerArray< HBufC >& aDestNames, |
|
88 RPointerArray< HBufC >& aDefCon); |
84 |
89 |
85 /** |
90 /** |
86 * Second phase constructor. Leaves on failure. |
91 * Second phase constructor. Leaves on failure. |
87 */ |
92 */ |
88 void ConstructL(); |
93 void ConstructL(); |
112 * @param aPrio The new priority. |
117 * @param aPrio The new priority. |
113 */ |
118 */ |
114 void UpdateGlobalBearerArrayL |
119 void UpdateGlobalBearerArrayL |
115 ( TDbCreatorGlobalSettings aField, TUint32 aPrio ); |
120 ( TDbCreatorGlobalSettings aField, TUint32 aPrio ); |
116 |
121 |
117 |
122 /** |
|
123 * Sets the value of default connection type parsing and converting |
|
124 * the param string to the right enum. |
|
125 * @param aPtrTag string of the type. |
|
126 */ |
|
127 void SetDefaultConnectionTypeL( HBufC16* aPtrTag ); |
|
128 |
|
129 /** |
|
130 * Sets the id of default connection method. It founds the connection |
|
131 * method or destination corresponding to the given name. |
|
132 * Type depends on the default connection type. |
|
133 * If the method/destination cannot be found then no id is set. |
|
134 * @param aPtrTag string of the connection method/destination name. |
|
135 */ |
|
136 void SetDefaultConnectionNameL( HBufC16* aPtrTag ); |
|
137 |
118 /** |
138 /** |
119 * Sets the WLAN Usage parameter in general connection settings. |
139 * Sets the WLAN Usage parameter in general connection settings. |
120 * @param aPtrTag string containing the parameter's value. |
140 * @param aPtrTag string containing the parameter's value. |
121 */ |
141 */ |
122 void SetGenConnSettingWlanUsage( HBufC16* aPtrTag ); |
142 void SetGenConnSettingWlanUsage( HBufC16* aPtrTag ); |
136 void SetGenConnSettingCellularDataUsageVisitor( HBufC16* aPtrTag ); |
156 void SetGenConnSettingCellularDataUsageVisitor( HBufC16* aPtrTag ); |
137 |
157 |
138 // Stores the general connection settings, using CMM |
158 // Stores the general connection settings, using CMM |
139 void SetGenConnSettingsL(); |
159 void SetGenConnSettingsL(); |
140 |
160 |
|
161 // Stores the default connection's values, using CMM |
|
162 void SetDefConnRecordL( const TInt aId ); |
|
163 |
141 // Stores the WLAN parameters |
164 // Stores the WLAN parameters |
142 void SaveGlobalWlanParameterL( const TUint32 aTableType, |
165 void SaveGlobalWlanParameterL( const TUint32 aTableType, |
143 const TDbCreatorGlobalSettings aField, |
166 const TDbCreatorGlobalSettings aField, |
144 const HBufC16* const aValue ); |
167 const HBufC16* const aValue ); |
145 |
168 |
146 private: |
169 private: |
147 |
170 |
|
171 // @var Default connection's data |
|
172 TCmDefConnType iDefaultConnectionType; |
|
173 TBool iDefaultConnectionSet; |
148 |
174 |
149 // @var GPRS attach mode : whenneeded/whenavailable |
175 // @var GPRS attach mode : whenneeded/whenavailable |
150 TBool iAttachWhenNeeded; |
176 TBool iAttachWhenNeeded; |
151 |
177 |
152 RArray< TBearerPriority > iBearerArray; |
178 RArray< TBearerPriority > iBearerArray; |
153 TBool iBearerArrayChanged; |
179 TBool iBearerArrayChanged; |
|
180 |
|
181 // @var Stores the default connection type / name pair |
|
182 RPointerArray< HBufC >* iDefCon; |
154 |
183 |
155 // @var Stores the general connection settings |
184 // @var Stores the general connection settings |
156 TCmGenConnSettings* iGenConnSettings; |
185 TCmGenConnSettings* iGenConnSettings; |
157 |
186 |
158 //@var session - Owned |
187 //@var session - Owned |