diff -r fcdfafb36fe7 -r aecbbf00d063 uifw/AvKon/src/AknAppUi.cpp --- a/uifw/AvKon/src/AknAppUi.cpp Thu Aug 19 10:11:06 2010 +0300 +++ b/uifw/AvKon/src/AknAppUi.cpp Tue Aug 31 15:28:30 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 - 2008 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -69,7 +69,8 @@ #include #include -#include +#include +#include #include #include "transitionmanager.h" @@ -77,7 +78,6 @@ #include #include -#include #include #ifdef RD_SCALABLE_UI_V2 @@ -89,7 +89,6 @@ #include #include -#include // UIDS for dialler view const TUid KPhoneAppUid = { 0x100058B3 }; @@ -557,8 +556,6 @@ EXPORT_C CAknAppUiBase::~CAknAppUiBase() { - AknItemActionMenuRegister::RemoveConstructingMenuBarOwner( this ); - if (iAppUiBaseExtension) { MTouchFeedback::DestroyInstance(); @@ -664,7 +661,6 @@ delete defaultOrientationCr; defaultOrientationCr = NULL; } - iAknFlags.Assign(EOrientationSpecified, orientationFlags&EAppOrientationSpecifiedFlag); iAknFlags.Assign(EOrientationLandscape, orientationFlags&EAppOrientationLandscapeFlag); iAknFlags.Assign(EOrientationAutomatic, orientationFlags&EAppOrientationAutomaticFlag); @@ -676,21 +672,11 @@ { iAknFlags.Set( ETouchCompatible ); } - else if ( aAppUiFlags & EAknSingleClickCompatibleFlag ) - { - // If application is single click compatible then it needs to - // be also touch compatible, so set that flag also if application - // has forgotten. - iAknFlags.Set( ETouchCompatible ); - } else { - // Set the touch compatible flag for all applications that - // reside on the ROM, since all platform applications should - // be touch compatible. RProcess process; TFileName fileName = process.FileName(); - _LIT( KRomDrive, "z:" ); + _LIT(KRomDrive,"z:"); if ( fileName.FindF( KRomDrive ) == 0 ) { @@ -698,8 +684,6 @@ } } - AknItemActionMenuRegister::SetConstructingMenuBarOwnerL( this ); - #ifdef AVKON_RDEBUG_INFO RDebug::Print(_L("Entering CEikAppUi::BaseConstructL()")); #endif @@ -1411,12 +1395,6 @@ { AknsUtils::SetAvkonHighlightAnimationEnabledL( EFalse ); } - - if (( aAppUiFlags & EAknDisableAnimationBackground ) != 0) - { - AknsUtils::SetAnimationBackgroundDisabledL( ETrue ); - - } #ifdef RD_SCALABLE_UI_V2 if ( CAknTouchPane* tp = TouchPane() ) @@ -1570,20 +1548,20 @@ User::LeaveIfError( apparcSession.Connect() ); CleanupClosePushL( apparcSession ); TApaAppInfo appInfo; - + TInt err = apparcSession.GetAppInfo( appInfo, this->Application()->AppDllUid() ); + // +2 for colon and line end - HBufC* captionBuffer = HBufC::NewLC(KApaMaxAppCaption + KAknBidiExtraSpacePerLine + 2); + HBufC* captionBuffer = + HBufC::NewLC( KApaMaxAppCaption + KAknBidiExtraSpacePerLine + 2 ); + +// CleanupStack::PushL( captionBuffer ); TPtr caption = captionBuffer->Des(); - CEikApplication *application = this->Application(); - if (NULL != application) + if ( err == KErrNone ) { - if (KErrNone == apparcSession.GetAppInfo(appInfo, application->AppDllUid())) - { - caption = appInfo.iCaption; - } + caption = appInfo.iCaption; } - + // Lets remove trailing spaces caption.TrimRight(); @@ -1816,18 +1794,6 @@ EXPORT_C void CAknAppUi::PrepareToExit() { - // - // Hide application toolbar extension view (by toolbar extension) - // - if ( CurrentFixedToolbar() ) - { - CAknToolbarExtension* toolbarExt = CurrentFixedToolbar()->ToolbarExtension(); - if ( toolbarExt && toolbarExt->IsShown() ) - { - toolbarExt->SetShown( EFalse ); - } - } - if( IsForeground() && Document() ) { //only if focused, otherwise next app HandleForeground may never come. @@ -1887,7 +1853,7 @@ // This method call practically adds a shift modifier to hash key + joystick events. // This is because of marking in lists and editors when edit there is no edit key in device. - if (SimulateHashKeyMarkingEventL(aEvent)) + if (SimulateHashKeyMarkingEvent(aEvent)) { return; } @@ -2118,7 +2084,7 @@ // and ok key events, if hash key is simultaneously down. This is done because of making the // edit key optional in the device. Therefore, hash key with joystick (or single hash press, // see eiklbx.cpp) can be used for marking in lists and editors. -TBool CAknAppUi::SimulateHashKeyMarkingEventL(const TWsEvent& aEvent) +TBool CAknAppUi::SimulateHashKeyMarkingEvent(const TWsEvent& aEvent) { TInt eventType = aEvent.Type();