diff -r e8965914fac7 -r 79647526f98c appinstaller/AppMngr2/Widget/src/appmngr2widgetinfoiterator.cpp --- a/appinstaller/AppMngr2/Widget/src/appmngr2widgetinfoiterator.cpp Tue Sep 14 21:31:28 2010 +0300 +++ b/appinstaller/AppMngr2/Widget/src/appmngr2widgetinfoiterator.cpp Wed Sep 15 12:20:42 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-2010 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" @@ -48,12 +48,30 @@ } // --------------------------------------------------------------------------- -// CAppMngr2WidgetInfoIterator::ConstructL() +// CAppMngr2WidgetInfoIterator::SetAllFieldsL() // --------------------------------------------------------------------------- // -void CAppMngr2WidgetInfoIterator::ConstructL() +void CAppMngr2WidgetInfoIterator::SetAllFieldsL() { - BaseConstructL(); + SetFieldL( R_SWCOMMON_DETAIL_NAME, iInfo.Name() ); + SetVersionL(); + SetStatusL(); + SetLocationL(); + SetFieldL( R_SWCOMMON_DETAIL_APPSIZE, iInfo.Details() ); + SetOtherFieldsL(); + } + +// --------------------------------------------------------------------------- +// CAppMngr2WidgetInfoIterator::SetVersionL() +// --------------------------------------------------------------------------- +// +void CAppMngr2WidgetInfoIterator::SetVersionL() + { + CAppMngr2WidgetAppInfo* widgetInfo = reinterpret_cast( &iInfo ); + if( widgetInfo->Version().Length() ) + { + SetFieldL( R_SWCOMMON_DETAIL_VERSION, widgetInfo->Version() ); + } } // --------------------------------------------------------------------------- @@ -78,3 +96,12 @@ { } +// --------------------------------------------------------------------------- +// CAppMngr2WidgetInfoIterator::ConstructL() +// --------------------------------------------------------------------------- +// +void CAppMngr2WidgetInfoIterator::ConstructL() + { + BaseConstructL(); + } +