1 /* |
1 /* |
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2003-2010 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 |
66 iLocationPrivacySupported = FeatureManager::FeatureSupported( KFeatureIdPrivacyFramework ); |
70 iLocationPrivacySupported = FeatureManager::FeatureSupported( KFeatureIdPrivacyFramework ); |
67 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Location Privacy supported=%d"), iLocationPrivacySupported ) ); |
71 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Location Privacy supported=%d"), iLocationPrivacySupported ) ); |
68 |
72 |
69 iMMCSupported = FeatureManager::FeatureSupported( KFeatureIdMmc ); |
73 iMMCSupported = FeatureManager::FeatureSupported( KFeatureIdMmc ); |
70 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: MMC supported=%d"), iMMCSupported ) ); |
74 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: MMC supported=%d"), iMMCSupported ) ); |
91 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Power save supported=%d"), iPowerSaveSupported ) ); |
95 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Power save supported=%d"), iPowerSaveSupported ) ); |
92 |
96 |
93 iNoPowerKeySupported = FeatureManager::FeatureSupported( KFeatureIdNoPowerkey ); |
97 iNoPowerKeySupported = FeatureManager::FeatureSupported( KFeatureIdNoPowerkey ); |
94 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: No power key supported=%d"), iNoPowerKeySupported ) ); |
98 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: No power key supported=%d"), iNoPowerKeySupported ) ); |
95 |
99 |
96 // iFmTxSupported = FeatureManager::FeatureSupported( KFeatureIdFmtx ); |
100 iFmTxSupported = FeatureManager::FeatureSupported( KFeatureIdFmtx ); |
97 // TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX supported=%d"), iFmTxSupported ) ); |
101 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX supported=%d"), iFmTxSupported ) ); |
98 |
102 |
99 // iPenEnabled = AknLayoutUtils::PenEnabled(); |
103 iPenEnabled = AknLayoutUtils::PenEnabled(); |
100 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Pen enabled=%d"), iPenEnabled ) ); |
104 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Pen enabled=%d"), iPenEnabled ) ); |
101 |
105 |
102 iVmbxCallDivertIconSupported = FeatureManager::FeatureSupported( KFeatureIdVmbxCallDivertIcon ); |
106 iVmbxCallDivertIconSupported = FeatureManager::FeatureSupported( KFeatureIdVmbxCallDivertIcon ); |
103 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: VMBX call divert icon supported=%d"), iVmbxCallDivertIconSupported ) ); |
107 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: VMBX call divert icon supported=%d"), iVmbxCallDivertIconSupported ) ); |
104 |
108 |
105 iTouchUnlockStrokeSupported = FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ); |
109 iTouchUnlockStrokeSupported = FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ); |
106 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Touch unlock stroke supported=%d"), iTouchUnlockStrokeSupported ) ); |
110 TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Touch unlock stroke supported=%d"), iTouchUnlockStrokeSupported ) ); |
107 |
111 |
108 // iFmTxRdsTextSupported = FeatureManager::FeatureSupported( KFeatureIdFfFmtxRdsText ); |
112 iFmTxRdsTextSupported = FeatureManager::FeatureSupported( KFeatureIdFfFmtxRdsText ); |
109 // TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX RDS-TEXT supported=%d"), iFmTxRdsTextSupported ) ); |
113 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 ) ); |
110 |
120 |
111 CRepository* repository = NULL; |
121 CRepository* repository = NULL; |
112 |
122 |
113 TRAPD( err, repository = CRepository::NewL( KCRUidCoreApplicationUIsConf ) ); |
123 TRAPD( err, repository = CRepository::NewL( KCRUidCoreApplicationUIsConf ) ); |
114 |
124 |
178 iBtSupported( EFalse ), |
188 iBtSupported( EFalse ), |
179 iSimSupported( ETrue ), |
189 iSimSupported( ETrue ), |
180 iGripNotSupported( ETrue ), |
190 iGripNotSupported( ETrue ), |
181 iPowerSaveSupported( EFalse ), |
191 iPowerSaveSupported( EFalse ), |
182 iNoPowerKeySupported( EFalse ), |
192 iNoPowerKeySupported( EFalse ), |
183 //iFmTxSupported( EFalse ), |
193 iFmTxSupported( EFalse ), |
184 iPenEnabled( EFalse ), |
194 iPenEnabled( EFalse ), |
185 iVmbxCallDivertIconSupported( EFalse ), |
195 iVmbxCallDivertIconSupported( EFalse ), |
186 iTouchUnlockStrokeSupported( EFalse ) |
196 iTouchUnlockStrokeSupported( EFalse ), |
187 //iFmTxRdsTextSupported( EFalse ) |
197 iFmTxRdsTextSupported( EFalse ), |
188 |
198 iPowerKeyIsLockKey ( EFalse ), |
|
199 iGanSupported( EFalse ) |
189 { |
200 { |
190 } |
201 } |
191 |
202 |
192 // ---------------------------------------------------------------------------- |
203 // ---------------------------------------------------------------------------- |
193 // CSysApFeatureManager::~CSysApFeatureManager() |
204 // CSysApFeatureManager::~CSysApFeatureManager() |
340 // |
351 // |
341 TBool CSysApFeatureManager::GripNotSupported() const |
352 TBool CSysApFeatureManager::GripNotSupported() const |
342 { |
353 { |
343 return iGripNotSupported; |
354 return iGripNotSupported; |
344 } |
355 } |
|
356 |
|
357 // ---------------------------------------------------------------------------- |
|
358 // CSysApFeatureManager::SlideSupported() |
|
359 // ---------------------------------------------------------------------------- |
|
360 // |
|
361 TBool CSysApFeatureManager::SlideSupported() const |
|
362 { |
|
363 return iSlideSupported; |
|
364 } |
345 |
365 |
346 // ---------------------------------------------------------------------------- |
366 // ---------------------------------------------------------------------------- |
347 // CSysApFeatureManager::CoverDisplaySupported() |
367 // CSysApFeatureManager::CoverDisplaySupported() |
348 // ---------------------------------------------------------------------------- |
368 // ---------------------------------------------------------------------------- |
349 // |
369 // |
367 // |
387 // |
368 TBool CSysApFeatureManager::NoPowerKeySupported() const |
388 TBool CSysApFeatureManager::NoPowerKeySupported() const |
369 { |
389 { |
370 return iNoPowerKeySupported; |
390 return iNoPowerKeySupported; |
371 } |
391 } |
372 /* |
392 |
373 // ---------------------------------------------------------------------------- |
393 // ---------------------------------------------------------------------------- |
374 // CSysApFeatureManager::FmTxSupported() |
394 // CSysApFeatureManager::FmTxSupported() |
375 // ---------------------------------------------------------------------------- |
395 // ---------------------------------------------------------------------------- |
376 // |
396 // |
377 TBool CSysApFeatureManager::FmTxSupported() const |
397 TBool CSysApFeatureManager::FmTxSupported() const |
378 { |
398 { |
379 return iFmTxSupported; |
399 return iFmTxSupported; |
380 } |
400 } |
381 */ |
|
382 |
401 |
383 // ---------------------------------------------------------------------------- |
402 // ---------------------------------------------------------------------------- |
384 // CSysApFeatureManager::PenEnabled() |
403 // CSysApFeatureManager::PenEnabled() |
385 // ---------------------------------------------------------------------------- |
404 // ---------------------------------------------------------------------------- |
386 // |
405 // |
404 // |
423 // |
405 TBool CSysApFeatureManager::TouchUnlockStrokeSupported() const |
424 TBool CSysApFeatureManager::TouchUnlockStrokeSupported() const |
406 { |
425 { |
407 return iTouchUnlockStrokeSupported; |
426 return iTouchUnlockStrokeSupported; |
408 } |
427 } |
409 /* |
428 |
410 // ---------------------------------------------------------------------------- |
429 // ---------------------------------------------------------------------------- |
411 // CSysApFeatureManager::FmTxRdsTextSupported() |
430 // CSysApFeatureManager::FmTxRdsTextSupported() |
412 // ---------------------------------------------------------------------------- |
431 // ---------------------------------------------------------------------------- |
413 // |
432 // |
414 TBool CSysApFeatureManager::FmTxRdsTextSupported() const |
433 TBool CSysApFeatureManager::FmTxRdsTextSupported() const |
415 { |
434 { |
416 return iFmTxRdsTextSupported; |
435 return iFmTxRdsTextSupported; |
417 } |
436 } |
418 */ |
437 |
|
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 |
419 // End of File |
456 // End of File |
420 |
457 |
421 |
458 |
422 |
459 |