fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepUIAvkonCtrlJapanesePredictiveListboxView.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2003 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:            Predictive Candidate list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef CAKNFEPUICTRLJAPANESEPREDICTIVELISTBOXVIEW_H
       
    30 #define CAKNFEPUICTRLJAPANESEPREDICTIVELISTBOXVIEW_H
       
    31 
       
    32 // INCLUDES
       
    33 
       
    34 // CONSTANTS
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  CAknFepUICtrlJapanesePredictiveListboxView draws all the list items and manages
       
    42 *  the area of the screen allocated for list itself. In particular,
       
    43 *  this class does not handle margins of the whole list.
       
    44 *
       
    45 *  @lib AknFep.lib
       
    46 *  @since 2.6
       
    47 */
       
    48 NONSHARABLE_CLASS(CAknFepUICtrlJapanesePredictiveListboxView) : public CListBoxView
       
    49     {
       
    50     public: // New functions
       
    51         /**
       
    52         * Return the selected candidate number currently
       
    53         * @since 2.6
       
    54         * @return candidate number
       
    55         */
       
    56         TInt CurrentCandidateNo() const;    
       
    57 
       
    58         /**
       
    59         * Set current candidate number
       
    60         * @since 2.6
       
    61         * @param    aCandidateNo    candidate number
       
    62         * @return   item index including candidate number
       
    63         */
       
    64         TInt SetCurrentCandidateNo(TInt aCandidateNo); 
       
    65 
       
    66         /**
       
    67         * Return previous candidate number
       
    68         * @since 2.6
       
    69         * @return candidate number
       
    70         */
       
    71         TInt PreviousItem();
       
    72 
       
    73         /**
       
    74         * Return next candidate number
       
    75         * @since 2.6
       
    76         * @return candidate number
       
    77         */
       
    78         TInt NextItem();
       
    79 
       
    80         /**
       
    81         * Return candidate number of previous line
       
    82         * @since 2.6
       
    83         * @return candidate number
       
    84         */
       
    85         TInt PreviousLineItem();
       
    86 
       
    87         /**
       
    88         * Return candidate number of next line
       
    89         * @since 2.6
       
    90         * @return candidate number
       
    91         */
       
    92         TInt NextLineItem();
       
    93 
       
    94         /**
       
    95         * Return the selected candidate number currently
       
    96         * @since 3.2
       
    97         * @return candidate number
       
    98         */
       
    99         TInt OldCandidateNo() const;
       
   100 
       
   101         /**
       
   102         * Set current candidate number from point
       
   103         * @since 3.2
       
   104         * @param aLineNo        line number
       
   105         * @param aPoint         position
       
   106         * @return candidate number
       
   107         */
       
   108         TInt SetCurrentCandidateNo(TInt aLineNo, const TPoint& aPoint);
       
   109 
       
   110     public: // from CListBoxView
       
   111         virtual void DrawItem(TInt aItemIndex) const;
       
   112 
       
   113     private:    // Data
       
   114         TInt iCurrentCandidateNo;
       
   115         TInt iOldCandidateNo;
       
   116     };
       
   117 
       
   118 #endif  // CAKNFEPUICTRLJAPANESEPREDICTIVELISTBOXVIEW_H
       
   119 
       
   120 // End of File