logsui/AppSrc/LogsConsts.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 *     Contains constants used in Logs
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __LogsConsts_H__
       
    21 #define __LogsConsts_H__
       
    22 
       
    23 /// Unnamed namespace for local definitons
       
    24 namespace {
       
    25 
       
    26 // CONSTANT LITERALS
       
    27 
       
    28 _LIT( KSpace, " " );                // Adapter string format 
       
    29 _LIT( KTab, "\t" );                 // Adapter string format 
       
    30 _LIT( KPanicText, "Logs.app" );     // Panic string
       
    31 _LIT( KPanicText_DetailsCC, "DetailsCC" );
       
    32 
       
    33 // descriptor format strings
       
    34 _LIT( KOpenBracket, "(");
       
    35 _LIT( KCloseBracket, ")");
       
    36 _LIT( KThreeDots, "..." );
       
    37 
       
    38 // resource file constants 
       
    39 _LIT( KLogsIconFileDrive, "Z:" );
       
    40 _LIT( KLogsOldIconFileDirectory,    "\\system\\data\\" );  
       
    41 _LIT( KLogsIconFile, "logs.mbm" );    //system will automatically select between .mif and .mbm files
       
    42 
       
    43 // icon index strings
       
    44 _LIT( KFirstIconAndTab, "0\t" );
       
    45 _LIT( KSecondIconAndTab, "1\t" );
       
    46 _LIT( KThirdIconAndTab, "2\t" );
       
    47 _LIT( KFourthIconAndTab, "3\t" );
       
    48 
       
    49 // Used by CLogsSettingsControlContainer
       
    50 // listbox descriptor format string
       
    51 _LIT( KEmptySpaceAndTabulator, " \t" );
       
    52 _LIT( KTabulatorTwice, "\t\t" );
       
    53 
       
    54 // CONSTANT NUMBERS
       
    55 // Logs ui spec details chapter for shown lines
       
    56 const TInt KLogsDetailsCallLines = 4;
       
    57 const TInt KLogsDetailsDataLines = 3;
       
    58 const TInt KLogsDetailsFaxLines = 4;
       
    59 const TInt KLogsDetailsSMSLines = 5;
       
    60 const TInt KLogsDetailsPacketDataLines = 5;
       
    61 
       
    62 //For RecentList iconarray 
       
    63 enum RecentListIconArrayIcons
       
    64     {
       
    65     EIconMobile = 0,
       
    66     EIconVideo,
       
    67     EIconVoip,
       
    68     EIconPoc,
       
    69     EIconAls,
       
    70     EIconNewMissed,
       
    71     EIconlandphone,
       
    72     EIconPager,
       
    73     EIconFax,
       
    74     EIconAsstPhone,
       
    75     EIconCarPhone,
       
    76     EIconDefault,
       
    77     };
       
    78 
       
    79 // phone number max len + some 4 extra for space brackets and recent count
       
    80 const TInt KRecentMaxTextLength = 50;  //[FIXME: This probably needs to be longer]
       
    81 
       
    82 
       
    83 const TInt KNonClipDuplBufferLength = 10; 
       
    84 const TInt KListBoxSubCellNr = 1;               // Sub Cell Number
       
    85 
       
    86 // Max number of trailing icons we can show in Recent call lists
       
    87 const TInt KMaxNbrOfRecentTrailIcons = 2;
       
    88 
       
    89 const TInt KUndefined = -1;
       
    90 
       
    91 // Control Container's number of items
       
    92 const TInt KAppListCCNrOfItems = 4;
       
    93 const TInt KSubAppListCCNrOfItems = 3;
       
    94 const TInt KAocCtCCNrOfItems = 7;
       
    95 const TInt KGprsCtCCNrOfItems = 2;
       
    96 const TInt KEventListCCNrOfItems = 3;
       
    97 const TInt KRecentListCCNrOfItems = 12;
       
    98 // Used by CLogsGprsCtAdapter
       
    99 const TInt KAmountOfGprsCounters = 2;
       
   100 const TInt KDigitsAfterDot = 2;
       
   101 const TInt KMaxPercentage = 100;
       
   102 
       
   103 // CLogsBaseView::ProcessKeyEventL's delay
       
   104 const TInt KDelayMicroSeconds = 250000;
       
   105 
       
   106 // MACROS
       
   107 
       
   108 // DATA TYPES
       
   109 
       
   110 }  // namespace
       
   111 
       
   112 #endif  // __LogsConsts_H__
       
   113            
       
   114 // End of File