emailuis/uicomponents/inc/fstreelistconstants.h
branchRCL_3
changeset 25 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Data structure class for tree list component
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_FSTREELISTCONSTANTS_H
       
    20 #define C_FSTREELISTCONSTANTS_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32cmn.h>
       
    24 #include <e32math.h>
       
    25 
       
    26 /** Item ID for hierarchical list items. */
       
    27 typedef TInt TFsTreeItemId;
       
    28 //TFsItemID
       
    29 
       
    30 /** Constant Item ID for non-existent hierarchical list item. */
       
    31 const TFsTreeItemId KFsTreeNoneID = 0;
       
    32 
       
    33 /** Constant Item ID for the hierarchical list root node. */
       
    34 const TFsTreeItemId KFsTreeRootID = 1;
       
    35  
       
    36 /** Array of tree item ids */
       
    37 typedef RArray<TFsTreeItemId> RFsTreeItemIdList;
       
    38 
       
    39 enum TFsTreeListLoopingType
       
    40     {
       
    41     /**
       
    42      * Looping turned off.
       
    43      */
       
    44     EFsTreeListLoopingDisabled,
       
    45     /**
       
    46      * List is effectively a loop so that the first item appears in the list 
       
    47      * after the last item - moving in the list is smooth, there is no need 
       
    48      * to jump when moving past end or start.
       
    49      */
       
    50     EFsTreeListLoopingSmooth,
       
    51     /**
       
    52      * When scrolling down from the last item, focus jumps to the first item 
       
    53      * (normal behaviour in e.g. S60 General Settings)
       
    54      */
       
    55     EFsTreeListLoopingJumpToFirstLast
       
    56     };
       
    57 
       
    58 
       
    59 enum TFsTextMarqueeType
       
    60     {
       
    61     /**
       
    62      * The text does not scroll.
       
    63      */
       
    64     EFsTextMarqueeNone,
       
    65     /**
       
    66      * The text scrolls until its end.
       
    67      */
       
    68     EFsTextMarqueeForth,
       
    69     /**
       
    70      * The text scrolls forwards and backwards.
       
    71      */
       
    72     EFsTextMarqueeForthBack,
       
    73     /**
       
    74      * The text scrolls in a loop.
       
    75      */
       
    76     EFsTextMarqueeLoop
       
    77     };
       
    78 
       
    79 
       
    80 
       
    81 #endif  // C_FSTREELISTCONSTANTS_H
       
    82