messagingappbase/mce/inc/MceListItem.h
branchRCL_3
changeset 60 7fdbb852d323
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Item class for list array. Encapsulates message id, description of the item.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MCELISTITEM_H
       
    22 #define MCELISTITEM_H
       
    23 
       
    24 // CONSTANTS
       
    25 const TInt  KMceListGranuality = 4;
       
    26 const TInt  KMcePrintableTextLength = 150;
       
    27 const TInt  KMceVisibleTextLength = 50; // max characters to show from iDescription and iDetails
       
    28 
       
    29 // DATA TYPES
       
    30 typedef TBuf<KMcePrintableTextLength> TMcePrintableText;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Item class for list array. Encapsulates message id, description of the item.
       
    36 */
       
    37 class TMceListItem
       
    38     {
       
    39     public:                     // Data
       
    40         TBool                   iExtraItem;
       
    41         TMsvId                  iMsvId;
       
    42         TMcePrintableText       iPrintableText;
       
    43         
       
    44         /**
       
    45          * It Refers to the complte string visble
       
    46          * in main view for any folder.
       
    47          * It is used as a chache to improve the
       
    48          * performance when Flick is in progress
       
    49          * in Main list view.
       
    50          */
       
    51         TMcePrintableText       iText;
       
    52         
       
    53         TInt                    iIconIndex;
       
    54         TMcePrintableText       iSecondaryText;
       
    55         TInt                    iApplicationUid;
       
    56 #ifdef RD_MSG_NAVIPANE_IMPROVEMENT
       
    57         TInt                    iMessageCount;
       
    58 #endif // RD_MSG_NAVIPANE_IMPROVEMENT        
       
    59     };
       
    60     
       
    61     
       
    62 class TMceMainViewExtraItem
       
    63     {
       
    64     public:                     // Data
       
    65         TInt                    iCommandId;
       
    66         TInt                    iIconIndex;
       
    67         TInt                    iApplicationUid;
       
    68         TMcePrintableText       iPrintableText;
       
    69         TMcePrintableText       iCommandText;
       
    70         TMcePrintableText       iSecondaryText;
       
    71     };
       
    72     
       
    73 typedef CArrayFixFlat<TMceMainViewExtraItem> CMceMainViewExtraItemArray;
       
    74 
       
    75 #endif // MCELISTITEM_H
       
    76 
       
    77 // End of file