appinstaller/AppMngr2/src/appmngr2logpopuplist.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 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:   Popup list used to display installation log
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "appmngr2logpopuplist.h"       // CAppMngr2LogPopupList
       
    20 
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CAppMngr2LogPopupList::NewL()
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 CAppMngr2LogPopupList* CAppMngr2LogPopupList::NewL(
       
    29             CEikListBox* aListBox,
       
    30             TInt aCbaResource,
       
    31             AknPopupLayouts::TAknPopupLayouts aType )
       
    32     {
       
    33     CAppMngr2LogPopupList* self = new (ELeave) CAppMngr2LogPopupList;
       
    34     CleanupStack::PushL( self );
       
    35     self->ConstructL( aListBox, aCbaResource, aType );  // calls base class
       
    36     CleanupStack::Pop( self );
       
    37     return self;
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // CAppMngr2LogPopupList::~CAppMngr2LogPopupList()
       
    42 // ---------------------------------------------------------------------------
       
    43 //
       
    44 CAppMngr2LogPopupList::~CAppMngr2LogPopupList()
       
    45     {
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // CAppMngr2LogPopupList::HandlePointerEventL()
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 void CAppMngr2LogPopupList::HandlePointerEventL( const TPointerEvent& aPointerEvent )
       
    53     {
       
    54     if ( AknLayoutUtils::PenEnabled() )
       
    55         {
       
    56         if( Rect().Contains( aPointerEvent.iPosition ) )
       
    57             {
       
    58             // Process pointer event within dialog normally
       
    59             CAknPopupList::HandlePointerEventL( aPointerEvent );
       
    60             }
       
    61         else
       
    62             {
       
    63             // Pointer events that happen outside the dialog area close
       
    64             // CAknPopupList, hence they are passed to CEikBorderedControl.
       
    65             // Scrollbar drag, and kinetic scrolling need these events.
       
    66             CEikBorderedControl::HandlePointerEventL( aPointerEvent );
       
    67             }
       
    68         }
       
    69     }
       
    70