1 /* |
1 /* |
2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
21 #include <e32svr.h> // RDebug |
21 #include <e32svr.h> // RDebug |
22 #include <featmgr.h> |
22 #include <featmgr.h> |
23 #include "SysApFeatureManager.h" |
23 #include "SysApFeatureManager.h" |
24 #include "SysAp.hrh" |
24 #include "SysAp.hrh" |
25 #include <centralrepository.h> |
25 #include <centralrepository.h> |
26 #include "CoreApplicationUIsPrivateCRKeys.h" |
26 #include "coreapplicationuisprivatecrkeys.h" |
27 #include <hwrmlight.h> |
27 #include <hwrmlight.h> |
28 #include <AknUtils.h> |
28 #include <AknUtils.h> |
29 |
29 |
30 |
30 |
31 // ============================ MEMBER FUNCTIONS ============================== |
31 // ============================ MEMBER FUNCTIONS ============================== |
61 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Cover display supported=%d"), iCoverDisplaySupported ) ); |
61 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Cover display supported=%d"), iCoverDisplaySupported ) ); |
62 |
62 |
63 iGripNotSupported = FeatureManager::FeatureSupported( KFeatureIdKeypadNoSlider ); |
63 iGripNotSupported = FeatureManager::FeatureSupported( KFeatureIdKeypadNoSlider ); |
64 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: iGripNotSupported=%d"), iGripNotSupported ) ); |
64 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: iGripNotSupported=%d"), iGripNotSupported ) ); |
65 |
65 |
66 // iSlideSupported = FeatureManager::FeatureSupported( KFeatureIdFfCommonSlide ); |
|
67 iSlideSupported = EFalse; |
|
68 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: iSlideSupported=%d"), iSlideSupported ) ); |
|
69 |
|
70 iLocationPrivacySupported = FeatureManager::FeatureSupported( KFeatureIdPrivacyFramework ); |
66 iLocationPrivacySupported = FeatureManager::FeatureSupported( KFeatureIdPrivacyFramework ); |
71 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Location Privacy supported=%d"), iLocationPrivacySupported ) ); |
67 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Location Privacy supported=%d"), iLocationPrivacySupported ) ); |
72 |
68 |
73 iMMCSupported = FeatureManager::FeatureSupported( KFeatureIdMmc ); |
69 iMMCSupported = FeatureManager::FeatureSupported( KFeatureIdMmc ); |
74 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: MMC supported=%d"), iMMCSupported ) ); |
70 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: MMC supported=%d"), iMMCSupported ) ); |
95 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Power save supported=%d"), iPowerSaveSupported ) ); |
91 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Power save supported=%d"), iPowerSaveSupported ) ); |
96 |
92 |
97 iNoPowerKeySupported = FeatureManager::FeatureSupported( KFeatureIdNoPowerkey ); |
93 iNoPowerKeySupported = FeatureManager::FeatureSupported( KFeatureIdNoPowerkey ); |
98 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: No power key supported=%d"), iNoPowerKeySupported ) ); |
94 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: No power key supported=%d"), iNoPowerKeySupported ) ); |
99 |
95 |
100 iFmTxSupported = FeatureManager::FeatureSupported( KFeatureIdFmtx ); |
96 // iFmTxSupported = FeatureManager::FeatureSupported( KFeatureIdFmtx ); |
101 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX supported=%d"), iFmTxSupported ) ); |
97 // TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX supported=%d"), iFmTxSupported ) ); |
102 |
98 |
103 iPenEnabled = AknLayoutUtils::PenEnabled(); |
99 // iPenEnabled = AknLayoutUtils::PenEnabled(); |
104 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Pen enabled=%d"), iPenEnabled ) ); |
100 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Pen enabled=%d"), iPenEnabled ) ); |
105 |
101 |
106 iVmbxCallDivertIconSupported = FeatureManager::FeatureSupported( KFeatureIdVmbxCallDivertIcon ); |
102 iVmbxCallDivertIconSupported = FeatureManager::FeatureSupported( KFeatureIdVmbxCallDivertIcon ); |
107 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: VMBX call divert icon supported=%d"), iVmbxCallDivertIconSupported ) ); |
103 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: VMBX call divert icon supported=%d"), iVmbxCallDivertIconSupported ) ); |
108 |
104 |
109 iTouchUnlockStrokeSupported = FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ); |
105 iTouchUnlockStrokeSupported = FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ); |
110 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Touch unlock stroke supported=%d"), iTouchUnlockStrokeSupported ) ); |
106 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Touch unlock stroke supported=%d"), iTouchUnlockStrokeSupported ) ); |
111 |
107 |
112 iFmTxRdsTextSupported = FeatureManager::FeatureSupported( KFeatureIdFfFmtxRdsText ); |
108 // iFmTxRdsTextSupported = FeatureManager::FeatureSupported( KFeatureIdFfFmtxRdsText ); |
113 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX RDS-TEXT supported=%d"), iFmTxRdsTextSupported ) ); |
109 // TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX RDS-TEXT supported=%d"), iFmTxRdsTextSupported ) ); |
114 |
|
115 iPowerKeyIsLockKey = FeatureManager::FeatureSupported( KFeatureIdFfPowerKeyAsKeyguard ); |
|
116 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Power Key as keyguard supported=%d"), iPowerKeyIsLockKey ) ); |
|
117 |
|
118 iGanSupported = FeatureManager::FeatureSupported( KFeatureIdFfGenericAccessNetwork ); |
|
119 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: GAN supported=%d"), iGanSupported ) ); |
|
120 |
110 |
121 CRepository* repository = NULL; |
111 CRepository* repository = NULL; |
122 |
112 |
123 TRAPD( err, repository = CRepository::NewL( KCRUidCoreApplicationUIsConf ) ); |
113 TRAPD( err, repository = CRepository::NewL( KCRUidCoreApplicationUIsConf ) ); |
124 |
114 |
188 iBtSupported( EFalse ), |
178 iBtSupported( EFalse ), |
189 iSimSupported( ETrue ), |
179 iSimSupported( ETrue ), |
190 iGripNotSupported( ETrue ), |
180 iGripNotSupported( ETrue ), |
191 iPowerSaveSupported( EFalse ), |
181 iPowerSaveSupported( EFalse ), |
192 iNoPowerKeySupported( EFalse ), |
182 iNoPowerKeySupported( EFalse ), |
193 iFmTxSupported( EFalse ), |
183 //iFmTxSupported( EFalse ), |
194 iPenEnabled( EFalse ), |
184 iPenEnabled( EFalse ), |
195 iVmbxCallDivertIconSupported( EFalse ), |
185 iVmbxCallDivertIconSupported( EFalse ), |
196 iTouchUnlockStrokeSupported( EFalse ), |
186 iTouchUnlockStrokeSupported( EFalse ) |
197 iFmTxRdsTextSupported( EFalse ), |
187 //iFmTxRdsTextSupported( EFalse ) |
198 iPowerKeyIsLockKey ( EFalse ), |
188 |
199 iGanSupported( EFalse ) |
|
200 { |
189 { |
201 } |
190 } |
202 |
191 |
203 // ---------------------------------------------------------------------------- |
192 // ---------------------------------------------------------------------------- |
204 // CSysApFeatureManager::~CSysApFeatureManager() |
193 // CSysApFeatureManager::~CSysApFeatureManager() |
351 // |
340 // |
352 TBool CSysApFeatureManager::GripNotSupported() const |
341 TBool CSysApFeatureManager::GripNotSupported() const |
353 { |
342 { |
354 return iGripNotSupported; |
343 return iGripNotSupported; |
355 } |
344 } |
356 |
|
357 // ---------------------------------------------------------------------------- |
|
358 // CSysApFeatureManager::SlideSupported() |
|
359 // ---------------------------------------------------------------------------- |
|
360 // |
|
361 TBool CSysApFeatureManager::SlideSupported() const |
|
362 { |
|
363 return iSlideSupported; |
|
364 } |
|
365 |
345 |
366 // ---------------------------------------------------------------------------- |
346 // ---------------------------------------------------------------------------- |
367 // CSysApFeatureManager::CoverDisplaySupported() |
347 // CSysApFeatureManager::CoverDisplaySupported() |
368 // ---------------------------------------------------------------------------- |
348 // ---------------------------------------------------------------------------- |
369 // |
349 // |
387 // |
367 // |
388 TBool CSysApFeatureManager::NoPowerKeySupported() const |
368 TBool CSysApFeatureManager::NoPowerKeySupported() const |
389 { |
369 { |
390 return iNoPowerKeySupported; |
370 return iNoPowerKeySupported; |
391 } |
371 } |
392 |
372 /* |
393 // ---------------------------------------------------------------------------- |
373 // ---------------------------------------------------------------------------- |
394 // CSysApFeatureManager::FmTxSupported() |
374 // CSysApFeatureManager::FmTxSupported() |
395 // ---------------------------------------------------------------------------- |
375 // ---------------------------------------------------------------------------- |
396 // |
376 // |
397 TBool CSysApFeatureManager::FmTxSupported() const |
377 TBool CSysApFeatureManager::FmTxSupported() const |
398 { |
378 { |
399 return iFmTxSupported; |
379 return iFmTxSupported; |
400 } |
380 } |
|
381 */ |
401 |
382 |
402 // ---------------------------------------------------------------------------- |
383 // ---------------------------------------------------------------------------- |
403 // CSysApFeatureManager::PenEnabled() |
384 // CSysApFeatureManager::PenEnabled() |
404 // ---------------------------------------------------------------------------- |
385 // ---------------------------------------------------------------------------- |
405 // |
386 // |
423 // |
404 // |
424 TBool CSysApFeatureManager::TouchUnlockStrokeSupported() const |
405 TBool CSysApFeatureManager::TouchUnlockStrokeSupported() const |
425 { |
406 { |
426 return iTouchUnlockStrokeSupported; |
407 return iTouchUnlockStrokeSupported; |
427 } |
408 } |
428 |
409 /* |
429 // ---------------------------------------------------------------------------- |
410 // ---------------------------------------------------------------------------- |
430 // CSysApFeatureManager::FmTxRdsTextSupported() |
411 // CSysApFeatureManager::FmTxRdsTextSupported() |
431 // ---------------------------------------------------------------------------- |
412 // ---------------------------------------------------------------------------- |
432 // |
413 // |
433 TBool CSysApFeatureManager::FmTxRdsTextSupported() const |
414 TBool CSysApFeatureManager::FmTxRdsTextSupported() const |
434 { |
415 { |
435 return iFmTxRdsTextSupported; |
416 return iFmTxRdsTextSupported; |
436 } |
417 } |
437 |
418 */ |
438 //----------------------------------------------------------------------------- |
|
439 // CSysApFeatureManager::PowerKeyIsLockKey() |
|
440 //----------------------------------------------------------------------------- |
|
441 // |
|
442 TBool CSysApFeatureManager::PowerKeyIsLockKey() const |
|
443 { |
|
444 return iPowerKeyIsLockKey; |
|
445 } |
|
446 |
|
447 // ---------------------------------------------------------------------------- |
|
448 // CSysApFeatureManager::GanSupported() |
|
449 // ---------------------------------------------------------------------------- |
|
450 // |
|
451 TBool CSysApFeatureManager::GanSupported() const |
|
452 { |
|
453 return iGanSupported; |
|
454 } |
|
455 |
|
456 // End of File |
419 // End of File |
457 |
420 |
458 |
421 |
459 |
422 |