webengine/osswebengine/WebKit/s60/formcontrols/PopupSelectListBox.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:52:28 +0200
changeset 65 5bfc169077b2
parent 37 cb62a4f66ebe
child 68 92a765b5b3e7
permissions -rw-r--r--
Revision: 201006 Kit: 201011

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:  PopupSelectLIstBox.h
*
*/


#ifndef POPUPSELECTLISTBOX_H
#define POPUPSELECTLISTBOX_H

//  INCLUDES
#include <E32DEF.H>
#include <eiktxlbx.h>
#include <eikfrlb.h> //CFormattedCellListBox


// CONSTANTS


// FORWARD DECLARATIONS

class TBrCtlSelectOptionData;
class WebView;

// CLASS DECLARATION

/**
*  PopupSelectListBox extends CEikTextListBox
*/
//class PopupSelectListBox : public CEikFormattedCellListBox
class PopupSelectListBox : public CEikTextListBox
    {
 

    public: // Constructors and destructor
    
        /**
        * Overrides CEikListBox ConstructL
        * @return 
        */
        void ConstructL(WebView* aParent, TBool aMultipleSelection, const CFont* aFont);
        /**
        * UpdateContentL
        * Updates the list
        * @param aOptions - list of TBrCtlSelectOptionData items
        * @return 
        */
        void UpdateContentL(const RPointerArray<TBrCtlSelectOptionData>& aOptions);
                
        /**
        * Overrides CEikListBox SetFocus
        * @return 
        */
        void SetFocus(TBool aFocus);

        /**
        * Overrides CEikListBox SetFocus
        * @return 
        */
        TBool IsFocused() {return m_focused;}
        
        void SetBackground(TRgb aColor);

        /*
         * Destructor.
         */
        virtual ~PopupSelectListBox();
        
        TCoeInputCapabilities InputCapabilities() const;

    private:        // New functions


    private:        // Data

        //CArrayPtr<TBrCtlSelectOptionData>* m_options; // not owned
        CDesC16ArrayFlat* m_itemArray; // Array is owned but descriptors are NOT OWNED
        bool m_multipleSelection;
        bool m_focused;
        WebView* m_parent;
    };

#endif // POPUPSELECTLISTBOX_H

// End of File