messagingappbase/mce/inc/MceListItem.h
changeset 0 72b543305e3a
child 2 0bf1d54f37d9
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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         TInt                    iIconIndex;
       
    44 #ifdef RD_MSG_NAVIPANE_IMPROVEMENT
       
    45         TInt                    iMessageCount;
       
    46 #endif // RD_MSG_NAVIPANE_IMPROVEMENT        
       
    47     };
       
    48     
       
    49     
       
    50 class TMceMainViewExtraItem
       
    51     {
       
    52     public:                     // Data
       
    53         TInt                    iCommandId;
       
    54         TInt                    iIconIndex;
       
    55         TInt                    iApplicationUid;
       
    56         TMcePrintableText       iPrintableText;
       
    57         TMcePrintableText       iCommandText;
       
    58     };
       
    59     
       
    60 typedef CArrayFixFlat<TMceMainViewExtraItem> CMceMainViewExtraItemArray;
       
    61 
       
    62 #endif // MCELISTITEM_H
       
    63 
       
    64 // End of file