menufw/menufwui/mmwidgets/inc/mmlistboxview.h
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *  Version     : %version: MM_12.1.9 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: MM_12.1.10 % << Don't touch! Updated by Synergy at check-out.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #ifndef MMLISTBOXVIEW_H
    20 #ifndef MMLISTBOXVIEW_H
   185      * Gets number of items in model.
   185      * Gets number of items in model.
   186      *
   186      *
   187      * @return
   187      * @return
   188      */
   188      */
   189     TInt ModelItemsCount();
   189     TInt ModelItemsCount();
       
   190     
       
   191     /**
       
   192      * Sets a proper flag if the list is brought to foreground.
       
   193      *
       
   194      *  @param aCommingFromBackground indicates whether the list is brought to foreground.
       
   195      */
       
   196     void SetListCommingFromBackground(TBool aCommingFromBackground);
   190 
   197 
   191 private:
   198 private:
   192 
   199 
   193     /**
   200     /**
   194      * Constructor for performing 1st stage construction.
   201      * Constructor for performing 1st stage construction.
   221    * Sets the previously drawn current item index.
   228    * Sets the previously drawn current item index.
   222    *
   229    *
   223    * @since S60 v3.0
   230    * @since S60 v3.0
   224    * @param aIndex Current Item index.
   231    * @param aIndex Current Item index.
   225    */
   232    */
   226     void SetPreviouslyDrawnCurrentItemIndex( TBool aIndex );
   233    void SetPreviouslyDrawnCurrentItemIndex( TBool aIndex );
       
   234     
       
   235    /**
       
   236     * Gets the flag indicating if the list is being brought to foreground.
       
   237     * @return Last item index.
       
   238     */
       
   239    TBool GetListCommingFromBackground() const;
       
   240     
   227 
   241 
   228 private:
   242 private:
   229 
   243 
   230   /**
   244   /**
   231    * iCurrentItemIndex
   245    * iCurrentItemIndex
   234 
   248 
   235   /**
   249   /**
   236    * When ETrue, disables ScrollToMakeItemVisible method.
   250    * When ETrue, disables ScrollToMakeItemVisible method.
   237    */
   251    */
   238   TBool iScrollToItemDisabled;
   252   TBool iScrollToItemDisabled;
       
   253   
       
   254   /**
       
   255    * When ETrue the list is being brought from background
       
   256    */
       
   257   TBool iListCommingFromBackground;
   239     };
   258     };
   240 
   259 
   241 #endif // MMLISTBOXVIEW_H
   260 #endif // MMLISTBOXVIEW_H