contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/ApplicationStateSourcePlugin.cpp
branchRCL_3
changeset 57 5e7d68cc22e0
parent 13 096dad6e50a9
child 62 924385140d98
equal deleted inserted replaced
47:312d2b433792 57:5e7d68cc22e0
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002-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".
   450         {
   450         {
   451         CCFApplicationStateSettings* appSettings = iApplicationSettings[ i ];
   451         CCFApplicationStateSettings* appSettings = iApplicationSettings[ i ];
   452         if ( !fgFound && aEvent.iViewOneId.iAppUid == appSettings->Uid() )
   452         if ( !fgFound && aEvent.iViewOneId.iAppUid == appSettings->Uid() )
   453             {
   453             {
   454             fgApp.Set( appSettings->Name() );
   454             fgApp.Set( appSettings->Name() );
   455             appSettings->GetViewName( aEvent.iViewOneId.iViewUid, fgView );
   455             //Check for flag returned by GetViewName, don't directly set the Flag to ETrue
   456             fgFound = ETrue;
   456             fgFound = appSettings->GetViewName( aEvent.iViewOneId.iViewUid, fgView );
   457             }
   457             }
   458         if ( !bgFound && aEvent.iViewTwoId.iAppUid == appSettings->Uid() )
   458         if ( !bgFound && aEvent.iViewTwoId.iAppUid == appSettings->Uid() )
   459             {
   459             {
   460             bgApp.Set( appSettings->Name() );
   460             bgApp.Set( appSettings->Name() );
   461             bgFound = ETrue;
   461             bgFound = ETrue;