appinstaller/AppMngr2/Widget/src/appmngr2widgetinfoiterator.cpp
branchRCL_3
changeset 73 79647526f98c
parent 0 ba25891c3a9e
equal deleted inserted replaced
70:e8965914fac7 73:79647526f98c
     1 /*
     1 /*
     2 * Copyright (c) 2002-2008 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".
    46 CAppMngr2WidgetInfoIterator::~CAppMngr2WidgetInfoIterator()
    46 CAppMngr2WidgetInfoIterator::~CAppMngr2WidgetInfoIterator()
    47     {
    47     {
    48     }
    48     }
    49 
    49 
    50 // ---------------------------------------------------------------------------
    50 // ---------------------------------------------------------------------------
    51 // CAppMngr2WidgetInfoIterator::ConstructL()
    51 // CAppMngr2WidgetInfoIterator::SetAllFieldsL()
    52 // ---------------------------------------------------------------------------
    52 // ---------------------------------------------------------------------------
    53 //
    53 //
    54 void CAppMngr2WidgetInfoIterator::ConstructL()
    54 void CAppMngr2WidgetInfoIterator::SetAllFieldsL()
    55     {
    55     {
    56     BaseConstructL();
    56     SetFieldL( R_SWCOMMON_DETAIL_NAME, iInfo.Name() );
       
    57     SetVersionL();
       
    58     SetStatusL();
       
    59     SetLocationL();
       
    60     SetFieldL( R_SWCOMMON_DETAIL_APPSIZE, iInfo.Details() );
       
    61     SetOtherFieldsL();
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 // CAppMngr2WidgetInfoIterator::SetVersionL()
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 void CAppMngr2WidgetInfoIterator::SetVersionL()
       
    69     {
       
    70     CAppMngr2WidgetAppInfo* widgetInfo = reinterpret_cast<CAppMngr2WidgetAppInfo*>( &iInfo );
       
    71     if( widgetInfo->Version().Length() )
       
    72         {
       
    73         SetFieldL( R_SWCOMMON_DETAIL_VERSION, widgetInfo->Version() );
       
    74         }
    57     }
    75     }
    58 
    76 
    59 // ---------------------------------------------------------------------------
    77 // ---------------------------------------------------------------------------
    60 // CAppMngr2WidgetInfoIterator::SetOtherFieldsL()
    78 // CAppMngr2WidgetInfoIterator::SetOtherFieldsL()
    61 // ---------------------------------------------------------------------------
    79 // ---------------------------------------------------------------------------
    76         CAppMngr2InfoBase& aWidget, TAppMngr2InfoType aInfoType ) :
    94         CAppMngr2InfoBase& aWidget, TAppMngr2InfoType aInfoType ) :
    77             CAppMngr2InfoIterator( aWidget, aInfoType )
    95             CAppMngr2InfoIterator( aWidget, aInfoType )
    78     {
    96     {
    79     }
    97     }
    80 
    98 
       
    99 // ---------------------------------------------------------------------------
       
   100 // CAppMngr2WidgetInfoIterator::ConstructL()
       
   101 // ---------------------------------------------------------------------------
       
   102 //
       
   103 void CAppMngr2WidgetInfoIterator::ConstructL()
       
   104     {
       
   105     BaseConstructL();
       
   106     }
       
   107