cbs/cbsui/inc/cbsuiconstants.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2 * Copyright (c) 2010 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 *     Contains constants which are used in CBSUI application.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __CBS_UI_CONSTANTS_H
       
    22 #define __CBS_UI_CONSTANTS_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 // CONSTANTS
       
    27 const TInt KCbsUiCustomMessageIdInt = 11;
       
    28 const TUid KCbsUiCustomMessageId = { KCbsUiCustomMessageIdInt };
       
    29                                     // When message view is launched by other
       
    30                                     // application its message id is 0, this 
       
    31                                     // just has to differ from the other 
       
    32                                     // applications message id.
       
    33 
       
    34 // When view is launched with this id it knows to set the focus to id, 
       
    35 // which is passed as parameter to DoActivateL.
       
    36 const TUid KSetFocusToId = { 12 };
       
    37 
       
    38 // activates view to its current id.
       
    39 const TUid KSetFocusToCurrentId = { 13 };
       
    40 
       
    41 // How many digits there are in topic number
       
    42 const TInt KTopicNumberWidth = 3; //EMaxTopicNumberLength; 
       
    43 
       
    44 const TInt KNumberOfTemporaryMessages = 3;
       
    45 
       
    46 // Error value used in Cbs ui.
       
    47 const TInt KCbsErrValue = -1;
       
    48 
       
    49 // This kind of topic number cannot exists
       
    50 const TInt KCbsInvalidTopicNumber = 22000;
       
    51 
       
    52 // Max message title length
       
    53 const TInt KMaxMessageTitleLength = 40;
       
    54 
       
    55 // Max topic name length
       
    56 const TInt KMaxTopicNameLength = 80;
       
    57 
       
    58 // DATA TYPES
       
    59 enum { EMinTopicNumber = 0, EMaxTopicNumber = 999 };
       
    60 
       
    61 enum TCbsUiLanguageSelectionIndex
       
    62     { 
       
    63     ECbsUiAll = 0, 
       
    64     ECbsUiSelected = 1, 
       
    65     ECbsUiOther = 2
       
    66     };
       
    67 
       
    68 // for activating topic view with right state
       
    69 struct TCbsUiTopicActivationPckg
       
    70     {
       
    71     // current topic number
       
    72     TCbsTopicNumber iTopicNumber;
       
    73 
       
    74     // current message handle
       
    75     TCbsMessageHandle iMessageHandle;
       
    76     };
       
    77 
       
    78 #endif      // __CBS_UI_CONSTANTS_H
       
    79