259 return *iOperatorButtonIcon; |
259 return *iOperatorButtonIcon; |
260 return KNullDesC; |
260 return KNullDesC; |
261 } |
261 } |
262 |
262 |
263 // --------------------------------------------------------- |
263 // --------------------------------------------------------- |
264 // CWmConfiguration::PortalButtonPrimaryMethod |
264 // CWmConfiguration::PortalButtonBrowserUrl |
265 // --------------------------------------------------------- |
265 // --------------------------------------------------------- |
266 // |
266 // |
267 CWmConfiguration::TMethod |
267 const TDesC& CWmConfiguration::PortalButtonBrowserUrl( TInt aIndex ) |
268 CWmConfiguration::PortalButtonPrimaryMethod( TInt aIndex ) |
268 { |
269 { |
|
270 IndexConversion( aIndex ); |
|
271 if ( aIndex == 0 && iOviStoreBundleId && iOviStoreBundleId->Length() > 0 ) |
|
272 return EWidget; |
|
273 if ( aIndex == 1 && iOperatorButtonUrl && iOperatorButtonUrl->Length() > 0 ) |
|
274 return EHttp; |
|
275 return ENone; |
|
276 } |
|
277 |
|
278 // --------------------------------------------------------- |
|
279 // CWmConfiguration::PortalButtonPrimaryService |
|
280 // --------------------------------------------------------- |
|
281 // |
|
282 const TDesC& |
|
283 CWmConfiguration::PortalButtonPrimaryService( TInt aIndex ) |
|
284 { |
|
285 IndexConversion( aIndex ); |
|
286 if ( aIndex == 0 && iOviStoreBundleId && iOviStoreBundleId->Length() > 0 ) |
|
287 return *iOviStoreBundleId; |
|
288 return KNullDesC; |
|
289 } |
|
290 |
|
291 // --------------------------------------------------------- |
|
292 // CWmConfiguration::PortalButtonPrimaryParams |
|
293 // --------------------------------------------------------- |
|
294 // |
|
295 const TDesC& |
|
296 CWmConfiguration::PortalButtonPrimaryParams( TInt aIndex ) |
|
297 { |
|
298 IndexConversion( aIndex ); |
|
299 if ( aIndex == 0 && iOviStoreClientParam ) |
|
300 return *iOviStoreClientParam; |
|
301 if ( aIndex == 1 && iOperatorButtonUrl ) |
|
302 return *iOperatorButtonUrl; |
|
303 return KNullDesC; |
|
304 } |
|
305 |
|
306 |
|
307 // --------------------------------------------------------- |
|
308 // CWmConfiguration::PortalButtonSecondaryMethod |
|
309 // --------------------------------------------------------- |
|
310 // |
|
311 CWmConfiguration::TMethod |
|
312 CWmConfiguration::PortalButtonSecondaryMethod( TInt aIndex ) |
|
313 { |
|
314 IndexConversion( aIndex ); |
|
315 if ( aIndex == 0 && iOviButtonUrl && iOviButtonUrl->Length() > 0 ) |
|
316 return EHttp; |
|
317 return ENone; |
|
318 } |
|
319 |
|
320 // --------------------------------------------------------- |
|
321 // CWmConfiguration::PortalButtonSecondaryService |
|
322 // --------------------------------------------------------- |
|
323 // |
|
324 const TDesC& |
|
325 CWmConfiguration::PortalButtonSecondaryService( TInt aIndex ) |
|
326 { |
|
327 IndexConversion( aIndex ); |
|
328 return KNullDesC; |
|
329 } |
|
330 |
|
331 // --------------------------------------------------------- |
|
332 // CWmConfiguration::PortalButtonSecondaryParams |
|
333 // --------------------------------------------------------- |
|
334 // |
|
335 const TDesC& |
|
336 CWmConfiguration::PortalButtonSecondaryParams( TInt aIndex ) |
|
337 { |
|
338 IndexConversion( aIndex ); |
|
339 if ( aIndex == 0 && iOviButtonUrl ) |
269 if ( aIndex == 0 && iOviButtonUrl ) |
340 return *iOviButtonUrl; |
270 return *iOviButtonUrl; |
|
271 else if ( aIndex == 1 && iOperatorButtonUrl ) |
|
272 return *iOperatorButtonUrl; |
|
273 |
341 return KNullDesC; |
274 return KNullDesC; |
342 } |
275 } |
|
276 |
|
277 // --------------------------------------------------------- |
|
278 // CWmConfiguration::PortalButtonClientUid |
|
279 // --------------------------------------------------------- |
|
280 // |
|
281 TUid CWmConfiguration::PortalButtonClientUid( TInt aIndex ) |
|
282 { |
|
283 if ( aIndex == 0 && iOviStoreBundleId ) |
|
284 { |
|
285 // idea: change iOviStoreBundleId to UID of laucher in cenrep |
|
286 return TUid::Uid( 0x2002D07F ); |
|
287 } |
|
288 // Operator client uid not supported. |
|
289 // If operator client is a widget we can use widget registry |
|
290 // to fetch uid of operator widget save it to member and return that here |
|
291 return KNullUid; |
|
292 } |
|
293 |
|
294 // --------------------------------------------------------- |
|
295 // CWmConfiguration::PortalButtonClientParam |
|
296 // --------------------------------------------------------- |
|
297 // |
|
298 const TDesC& CWmConfiguration::PortalButtonClientParam( TInt aIndex ) |
|
299 { |
|
300 if ( aIndex == 0 && iOviStoreClientParam ) |
|
301 { |
|
302 return *iOviStoreClientParam; |
|
303 } |
|
304 // Operator client param not supported. Can be added if needed. |
|
305 return KNullDesC; |
|
306 } |
|
307 |
343 |
308 |
344 // --------------------------------------------------------- |
309 // --------------------------------------------------------- |
345 // CWmConfiguration::IndexConversion |
310 // CWmConfiguration::IndexConversion |
346 // --------------------------------------------------------- |
311 // --------------------------------------------------------- |
347 // |
312 // |