contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/cfapplicationstatesettings.cpp
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-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". |
97 |
97 |
98 //----------------------------------------------------------------------------- |
98 //----------------------------------------------------------------------------- |
99 // CCFApplicationStateSettings::AddViewSettingsL |
99 // CCFApplicationStateSettings::AddViewSettingsL |
100 //----------------------------------------------------------------------------- |
100 //----------------------------------------------------------------------------- |
101 // |
101 // |
102 void CCFApplicationStateSettings::GetViewName( const TUid& aUid, |
102 TBool CCFApplicationStateSettings::GetViewName( const TUid& aUid, |
103 TPtrC& aName ) const |
103 TPtrC& aName ) const |
104 { |
104 { |
|
105 TBool matchFound = EFalse; |
105 for ( TInt i = 0; i < iViewInfo.Count(); ++i ) |
106 for ( TInt i = 0; i < iViewInfo.Count(); ++i ) |
106 { |
107 { |
107 if ( aUid == iViewInfo[ i ]->Uid() ) |
108 if ( aUid == iViewInfo[ i ]->Uid() ) |
108 { |
109 { |
109 aName.Set( iViewInfo[ i ]->Name() ); |
110 aName.Set( iViewInfo[ i ]->Name() ); |
|
111 matchFound = ETrue; |
110 break; |
112 break; |
111 } |
113 } |
112 } |
114 } |
|
115 return matchFound; |
113 } |
116 } |