appinstaller/AppMngr2/src/appmngr2logpopuplist.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:51:10 +0200
changeset 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2008 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"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Popup list used to display installation log
*
*/


#include "appmngr2logpopuplist.h"       // CAppMngr2LogPopupList


// ======== MEMBER FUNCTIONS ========

// ---------------------------------------------------------------------------
// CAppMngr2LogPopupList::NewL()
// ---------------------------------------------------------------------------
//
CAppMngr2LogPopupList* CAppMngr2LogPopupList::NewL(
            CEikListBox* aListBox,
            TInt aCbaResource,
            AknPopupLayouts::TAknPopupLayouts aType )
    {
    CAppMngr2LogPopupList* self = new (ELeave) CAppMngr2LogPopupList;
    CleanupStack::PushL( self );
    self->ConstructL( aListBox, aCbaResource, aType );  // calls base class
    CleanupStack::Pop( self );
    return self;
    }

// ---------------------------------------------------------------------------
// CAppMngr2LogPopupList::~CAppMngr2LogPopupList()
// ---------------------------------------------------------------------------
//
CAppMngr2LogPopupList::~CAppMngr2LogPopupList()
    {
    }

// ---------------------------------------------------------------------------
// CAppMngr2LogPopupList::HandlePointerEventL()
// ---------------------------------------------------------------------------
//
void CAppMngr2LogPopupList::HandlePointerEventL( const TPointerEvent& aPointerEvent )
    {
    if ( AknLayoutUtils::PenEnabled() )
        {
        if( Rect().Contains( aPointerEvent.iPosition ) )
            {
            // Process pointer event within dialog normally
            CAknPopupList::HandlePointerEventL( aPointerEvent );
            }
        else
            {
            // Pointer events that happen outside the dialog area close
            // CAknPopupList, hence they are passed to CEikBorderedControl.
            // Scrollbar drag, and kinetic scrolling need these events.
            CEikBorderedControl::HandlePointerEventL( aPointerEvent );
            }
        }
    }