equal
deleted
inserted
replaced
989 iOfferLockNote->ConstructSleepingNoteL( R_KEYLOCK_OFFER_LOCK_NOTE ); |
989 iOfferLockNote->ConstructSleepingNoteL( R_KEYLOCK_OFFER_LOCK_NOTE ); |
990 iOfferLockNote->ButtonGroupContainer().ButtonGroup()->AsControl()->DrawableWindow()->SetOrdinalPosition( 0, 2 ); |
990 iOfferLockNote->ButtonGroupContainer().ButtonGroup()->AsControl()->DrawableWindow()->SetOrdinalPosition( 0, 2 ); |
991 |
991 |
992 TBool touchEnabled( AknLayoutUtils::PenEnabled() ); |
992 TBool touchEnabled( AknLayoutUtils::PenEnabled() ); |
993 |
993 |
994 TBool hasSlider(iHardwareSupport != EKeyguardDefaultHardware); |
994 TBool hasSlider = HasSliderKey(); |
995 if( FeatureManager::FeatureSupported( KFeatureIdFfPowerKeyAsKeyguard ) ) |
|
996 { |
|
997 hasSlider = ETrue; // the only purpose is to display empty sotkeys |
|
998 } |
|
999 iKeyLockCba = CEikButtonGroupContainer::NewL( |
995 iKeyLockCba = CEikButtonGroupContainer::NewL( |
1000 CEikButtonGroupContainer::ECba, |
996 CEikButtonGroupContainer::ECba, |
1001 CEikButtonGroupContainer::EHorizontal, |
997 CEikButtonGroupContainer::EHorizontal, |
1002 this, |
998 this, |
1003 (touchEnabled&&hasSlider) ? R_AVKON_SOFTKEYS_EMPTY : |
999 (touchEnabled&&hasSlider) ? R_AVKON_SOFTKEYS_EMPTY : |
1155 |
1151 |
1156 if ( !iAutolockEnabled && aNotifySysApp ) |
1152 if ( !iAutolockEnabled && aNotifySysApp ) |
1157 { |
1153 { |
1158 SendMessageToSysAp( EEikKeyLockEnabled ); |
1154 SendMessageToSysAp( EEikKeyLockEnabled ); |
1159 } |
1155 } |
1160 |
1156 TBool hasSliderKey = HasSliderKey(); |
1161 if ( !AknLayoutUtils::PenEnabled() || iHardwareSupport == EKeyguardDefaultHardware) |
1157 if ( !AknLayoutUtils::PenEnabled() || !hasSliderKey) |
1162 { |
1158 { |
1163 iKeyLockCba->MakeVisible( ETrue ); |
1159 iKeyLockCba->MakeVisible( ETrue ); |
1164 } |
1160 } |
1165 else |
1161 else |
1166 { |
1162 { |
1188 if ( aShowNote ) |
1184 if ( aShowNote ) |
1189 { |
1185 { |
1190 DisplayLockedNote(); |
1186 DisplayLockedNote(); |
1191 } |
1187 } |
1192 |
1188 |
1193 if ( !AknLayoutUtils::PenEnabled() || iHardwareSupport == EKeyguardDefaultHardware) |
1189 if ( !AknLayoutUtils::PenEnabled() || !hasSliderKey) |
1194 { |
1190 { |
1195 ShowKeylockCba(); |
1191 ShowKeylockCba(); |
1196 } |
1192 } |
1197 else |
1193 else |
1198 { |
1194 { |
2069 Window().SetPointerCapture( RWindowBase::TCaptureDisabled ); |
2065 Window().SetPointerCapture( RWindowBase::TCaptureDisabled ); |
2070 Window().ClaimPointerGrab( EFalse ); |
2066 Window().ClaimPointerGrab( EFalse ); |
2071 } |
2067 } |
2072 } |
2068 } |
2073 |
2069 |
|
2070 TBool CAknKeyLockControl::HasSliderKey() |
|
2071 { |
|
2072 TBool hasSlider(iHardwareSupport != EKeyguardDefaultHardware); |
|
2073 if( FeatureManager::FeatureSupported( KFeatureIdFfPowerKeyAsKeyguard ) ) |
|
2074 { |
|
2075 hasSlider = ETrue; // the only purpose is to display empty sotkeys |
|
2076 } |
|
2077 return hasSlider; |
|
2078 } |
|
2079 |
2074 |
2080 |
2075 // =========================================================================== |
2081 // =========================================================================== |
2076 // class CAknKeyLockNotifierSubject |
2082 // class CAknKeyLockNotifierSubject |
2077 // =========================================================================== |
2083 // =========================================================================== |
2078 |
2084 |
2377 // |
2383 // |
2378 void CAknKeyLockNotifierSubject::UnlockKeys() |
2384 void CAknKeyLockNotifierSubject::UnlockKeys() |
2379 { |
2385 { |
2380 if ( IsKeyLockEnabled() ) |
2386 if ( IsKeyLockEnabled() ) |
2381 { |
2387 { |
|
2388 iKeyLockControl->AutolockEnabled( EFalse ); |
2382 iKeyLockControl->DisableKeylock(); |
2389 iKeyLockControl->DisableKeylock(); |
2383 } |
2390 } |
2384 } |
2391 } |
2385 |
2392 |
2386 |
2393 |