textinput/peninputcommonctrls/inc/peninputdropdownlist/peninputlistmultirowrollwithicon.h
changeset 27 694fa80c203c
parent 24 fc42a86c98e3
child 35 0f326f2e628e
equal deleted inserted replaced
24:fc42a86c98e3 27:694fa80c203c
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 #ifndef C_CLISTMULTIROWROLLWITHICON_H
       
    18 #define C_CLISTMULTIROWROLLWITHICON_H
       
    19 
       
    20 #include "peninputlistmultirowwithicon.h"
       
    21 
       
    22 // forward declaration
       
    23 class MFepCtrlDropdownListContext;
       
    24 
       
    25 NONSHARABLE_CLASS(CListMultiRowRollWithIcon) : public CListMultiRowWithIcon
       
    26     {
       
    27 public: // Methods
       
    28 
       
    29     static CListMultiRowRollWithIcon* NewL(CListManager* aManager, 
       
    30                                            MFepCtrlDropdownListContext* iOwner);
       
    31     
       
    32     virtual ~CListMultiRowRollWithIcon();
       
    33 
       
    34     // txin
       
    35     virtual void HandlePointerDownL(const TPoint& aPoint);
       
    36     // end
       
    37 
       
    38     virtual void HandlePointerUpL(const TPoint& aPoint);
       
    39 
       
    40     virtual void SetNextPageHighlightCellAfterOnePageL(const TInt aCellIndex);
       
    41     
       
    42     virtual void UpdateListL(TBool aDrawFlag = ETrue, TBool aRecalculate = ETrue);
       
    43 
       
    44 protected: // Methods
       
    45 
       
    46     CListMultiRowRollWithIcon(CListManager* aManager, MFepCtrlDropdownListContext* aOwner);
       
    47 
       
    48 protected:
       
    49 
       
    50     typedef struct TLineCandidateTag
       
    51         {
       
    52         TInt iStartIdx;
       
    53         TInt iEndIdx;
       
    54         } TLineCandidate;
       
    55 
       
    56     TInt StartCandIdxOfLine(TInt aCandIndex);
       
    57     
       
    58     void ResetStatus();
       
    59 
       
    60 private:
       
    61 
       
    62     virtual TInt CalculatePositionsL();
       
    63     
       
    64 private: // Data member
       
    65 
       
    66     // added by txin
       
    67     RArray<TLineCandidate> iLines;
       
    68     // end adding
       
    69     };
       
    70 
       
    71 #endif // C_CLISTMULTIROWROLLWITHICON_H