50 |
50 |
51 // CONSTANTS |
51 // CONSTANTS |
52 const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF; |
52 const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF; |
53 const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16; |
53 const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16; |
54 |
54 |
55 _LIT(KGpsIndicatorPlugin, "PositioningIndicator"); |
55 _LIT(KGpsIndicatorPlugin, "com.nokia.positioning.indicatorplugin/1.0"); |
56 const TUid KPSUidSecurityUIs = { 0x100059b5 }; |
56 const TUid KPSUidSecurityUIs = { 0x100059b5 }; |
57 const TUint32 KSecurityUIsLights = 0x00000308; |
57 const TUint32 KSecurityUIsLights = 0x00000308; |
58 |
58 |
59 // ============================ MEMBER FUNCTIONS ============================== |
59 // ============================ MEMBER FUNCTIONS ============================== |
60 |
60 |
408 case KCoreAppUIsMmcRemovedWithoutEject: |
408 case KCoreAppUIsMmcRemovedWithoutEject: |
409 { |
409 { |
410 TUint cmd( aValue & KCoreAppUIsMmcRemovedWithoutEjectCmdMask ); |
410 TUint cmd( aValue & KCoreAppUIsMmcRemovedWithoutEjectCmdMask ); |
411 if ( cmd == ECoreAppUIsEjectCommandUsed ) |
411 if ( cmd == ECoreAppUIsEjectCommandUsed ) |
412 { |
412 { |
413 // iSysApAppUi.EjectStarted( ETrue ); |
413 iSysApAppUi.EjectStarted( ETrue ); |
414 } |
414 } |
415 else if ( cmd == ECoreAppUIsEjectCommandNotUsed ) |
415 else if ( cmd == ECoreAppUIsEjectCommandNotUsed ) |
416 { |
416 { |
417 // iSysApAppUi.EjectStarted( EFalse ); |
417 iSysApAppUi.EjectStarted( EFalse ); |
418 } |
418 } |
419 else if ( cmd == ECoreAppUIsEjectCommandUsedToDrive ) |
419 else if ( cmd == ECoreAppUIsEjectCommandUsedToDrive ) |
420 { |
420 { |
421 TInt drive( aValue >> KCoreAppUIsMmcRemovedWithoutEjectValShift ); |
421 TInt drive( aValue >> KCoreAppUIsMmcRemovedWithoutEjectValShift ); |
422 // iSysApAppUi.EjectUsed( drive ); |
422 iSysApAppUi.EjectUsed( drive ); |
423 } |
423 } |
424 break; |
424 break; |
425 } |
425 } |
426 case KCoreAppUIsNewEmailStatus: |
426 case KCoreAppUIsNewEmailStatus: |
427 if ( aValue == ECoreAppUIsNewEmail ) |
427 if ( aValue == ECoreAppUIsNewEmail ) |
517 powerMenuMemoryStatus = iSysApAppUi.ReleasePowerMenuCustomDialogMemory(); |
517 powerMenuMemoryStatus = iSysApAppUi.ReleasePowerMenuCustomDialogMemory(); |
518 if(powerMenuMemoryStatus) |
518 if(powerMenuMemoryStatus) |
519 { |
519 { |
520 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
520 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
521 } |
521 } |
|
522 } |
|
523 else if(aValue == ECoreAppUIsMemoryCardCustomDialogOk) |
|
524 { |
|
525 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOk") ) ); |
|
526 TBool memoryCardStatus = EFalse; |
|
527 memoryCardStatus = iSysApAppUi.NotifiedDialogIfRequiredAndReleaseMemory(); |
|
528 if(memoryCardStatus) |
|
529 { |
|
530 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus Begin") ) ); |
|
531 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
|
532 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus end") ) ); |
|
533 } |
|
534 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus final end") ) ); |
|
535 |
|
536 } |
|
537 else if(aValue == ECoreAppUIsMemoryCardCustomDialogCancel) |
|
538 { |
|
539 TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogCancel") ) ); |
|
540 iSysApAppUi.ReleaseMemoryForMemoryCardDialog(); |
|
541 RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); |
522 } |
542 } |
523 else if ( aValue == ECoreAppUIsPowerMenuCustomDialogOff || aValue == ECoreAppUIsPowerMenuCustomDialogUninitialized ) |
543 else if ( aValue == ECoreAppUIsPowerMenuCustomDialogOff || aValue == ECoreAppUIsPowerMenuCustomDialogUninitialized ) |
524 { |
544 { |
525 // do nothing |
545 // do nothing |
526 } |
546 } |