appinstaller/AppMngr2/Widget/src/appmngr2widgetinfoiterator.cpp
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Implementation of CAppMngr2WidgetInfoIterator
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "appmngr2widgetinfoiterator.h" // CAppMngr2WidgetInfoIterator
       
    20 #include "appmngr2widgetappinfo.h"      // CAppMngr2WidgetAppInfo
       
    21 #include <StringLoader.h>               // StringLoader
       
    22 #include <SWInstCommonUI.rsg>           // R_SWCOMMON_DETAIL_VALUE_WIDGET
       
    23 
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CAppMngr2WidgetInfoIterator::NewL()
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CAppMngr2WidgetInfoIterator* CAppMngr2WidgetInfoIterator::NewL(
       
    32         CAppMngr2InfoBase& aWidget, TAppMngr2InfoType aInfoType )
       
    33     {
       
    34     CAppMngr2WidgetInfoIterator* self =
       
    35             new ( ELeave ) CAppMngr2WidgetInfoIterator( aWidget, aInfoType );
       
    36     CleanupStack::PushL( self );
       
    37     self->ConstructL();
       
    38     CleanupStack::Pop( self );
       
    39     return self;
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // CAppMngr2WidgetInfoIterator::~CAppMngr2WidgetInfoIterator()
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 CAppMngr2WidgetInfoIterator::~CAppMngr2WidgetInfoIterator()
       
    47     {
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------------------------
       
    51 // CAppMngr2WidgetInfoIterator::ConstructL()
       
    52 // ---------------------------------------------------------------------------
       
    53 //
       
    54 void CAppMngr2WidgetInfoIterator::ConstructL()
       
    55     {
       
    56     BaseConstructL();
       
    57     }
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // CAppMngr2WidgetInfoIterator::SetOtherFieldsL()
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 void CAppMngr2WidgetInfoIterator::SetOtherFieldsL()
       
    64     {
       
    65     HBufC* type = NULL;
       
    66     type = StringLoader::LoadLC( R_SWCOMMON_DETAIL_VALUE_WIDGET );
       
    67     SetFieldL( R_SWCOMMON_DETAIL_TYPE , *type);
       
    68     CleanupStack::PopAndDestroy( type );
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // CAppMngr2WidgetInfoIterator::CAppMngr2WidgetInfoIterator()
       
    73 // ---------------------------------------------------------------------------
       
    74 //
       
    75 CAppMngr2WidgetInfoIterator::CAppMngr2WidgetInfoIterator(
       
    76         CAppMngr2InfoBase& aWidget, TAppMngr2InfoType aInfoType ) :
       
    77             CAppMngr2InfoIterator( aWidget, aInfoType )
       
    78     {
       
    79     }
       
    80