212 |
212 |
213 /*! |
213 /*! |
214 PSetCallBarringWrapperPrivate::enableBarring |
214 PSetCallBarringWrapperPrivate::enableBarring |
215 */ |
215 */ |
216 void PSetCallBarringWrapperPrivate::enableBarring( |
216 void PSetCallBarringWrapperPrivate::enableBarring( |
|
217 int basicServiceGroup, |
217 PsServiceGroup serviceGroup, |
218 PsServiceGroup serviceGroup, |
218 PSetCallBarringWrapper::BarringType barringType, |
219 PSetCallBarringWrapper::BarringType barringType, |
219 QString barringPassword) |
220 QString barringPassword) |
220 { |
221 { |
221 DPRINT; |
222 DPRINT; |
224 setting.iType = convertBarringType(barringType); |
225 setting.iType = convertBarringType(barringType); |
225 setting.iSetting = EActivateBarring; |
226 setting.iSetting = EActivateBarring; |
226 setting.iServiceGroup = convertServiceGroup(serviceGroup); |
227 setting.iServiceGroup = convertServiceGroup(serviceGroup); |
227 setting.iPassword.Copy(barringPassword.utf16()); |
228 setting.iPassword.Copy(barringPassword.utf16()); |
228 |
229 |
229 TBasicServiceGroups serviceGroups = EAllTeleAndBearer; |
|
230 |
|
231 m_currentRequest = RequestEnableBarring; |
230 m_currentRequest = RequestEnableBarring; |
232 QT_TRAP_THROWING( |
231 QT_TRAP_THROWING(m_callBarring->SetBarringL( |
233 m_callBarring->SetBarringL(setting, serviceGroups); |
232 setting, static_cast<TBasicServiceGroups>(basicServiceGroup)); |
234 ) |
233 ) |
235 } |
234 } |
236 |
235 |
237 |
236 |
238 /*! |
237 /*! |
239 PSetCallBarringWrapperPrivate::disableBarring |
238 PSetCallBarringWrapperPrivate::disableBarring |
240 */ |
239 */ |
241 void PSetCallBarringWrapperPrivate::disableBarring( |
240 void PSetCallBarringWrapperPrivate::disableBarring( |
|
241 int basicServiceGroup, |
242 PsServiceGroup serviceGroup, |
242 PsServiceGroup serviceGroup, |
243 PSetCallBarringWrapper::BarringType barringType, |
243 PSetCallBarringWrapper::BarringType barringType, |
244 QString barringPassword) |
244 QString barringPassword) |
245 { |
245 { |
246 DPRINT; |
246 DPRINT; |
249 setting.iType = convertBarringType(barringType); |
249 setting.iType = convertBarringType(barringType); |
250 setting.iSetting = ECancelBarring; |
250 setting.iSetting = ECancelBarring; |
251 setting.iServiceGroup = convertServiceGroup(serviceGroup); |
251 setting.iServiceGroup = convertServiceGroup(serviceGroup); |
252 setting.iPassword.Copy(barringPassword.utf16()); |
252 setting.iPassword.Copy(barringPassword.utf16()); |
253 |
253 |
254 TBasicServiceGroups serviceGroups = EAllTeleAndBearer; |
|
255 |
|
256 m_currentRequest = RequestDisableBarring; |
254 m_currentRequest = RequestDisableBarring; |
257 QT_TRAP_THROWING( |
255 QT_TRAP_THROWING(m_callBarring->SetBarringL( |
258 m_callBarring->SetBarringL(setting, serviceGroups); |
256 setting, static_cast<TBasicServiceGroups>(basicServiceGroup)); |
259 ) |
257 ) |
260 } |
258 } |
261 |
259 |
262 |
260 |
263 /*! |
261 /*! |
264 PSetCallBarringWrapperPrivate::changeBarringPassword |
262 PSetCallBarringWrapperPrivate::changeBarringPassword |