os/ossrv/lowlevellibsandfws/apputils/initLocale/src/LocaleRepository.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef _LOCALE_REPOSITORY
    17 #define _LOCALE_REPOSITORY
    18 
    19 #include <e32std.h>
    20 
    21 const TUint32 KLocalePersistRepositoryUid = 0x1020E4D3 ; 
    22 
    23 const TUint KLocaleDllBase = 10 ;
    24 const TUint KLocaleLanguageDll = KLocaleDllBase ;
    25 const TUint KLocaleCollationDll = KLocaleDllBase + 1 ;
    26 const TUint KLocaleLocaleDll = KLocaleDllBase + 2 ;
    27 const TUint KLocaleTimeDateDll = KLocaleDllBase + 3 ;
    28 
    29 
    30 // ===============================================================
    31 // Individually customisable settings
    32 const TUint KLocaleTLocaleBase = 100 ;
    33 
    34 // ===============================================================
    35 // Time and Date Settings
    36 const TUint KLocaleTimeAndDateSettingsBase = KLocaleTLocaleBase ;
    37 
    38 const TUint KLocaleUtcOffset = KLocaleTimeAndDateSettingsBase ;
    39 const TUint KLocaleDateFormat = KLocaleTimeAndDateSettingsBase + 1 ;
    40 const TUint KLocaleTimeFormat = KLocaleTimeAndDateSettingsBase + 2 ;
    41 
    42 // 4 Date Separators
    43 const TUint KLocaleDateSeparatorBase = KLocaleTimeAndDateSettingsBase + 3 ;
    44 const TUint KLocaleDateSeparator0 = KLocaleDateSeparatorBase ;
    45 const TUint KLocaleDateSeparator1 = KLocaleDateSeparatorBase + 1 ;
    46 const TUint KLocaleDateSeparator2 = KLocaleDateSeparatorBase + 2 ;
    47 const TUint KLocaleDateSeparator3 = KLocaleDateSeparatorBase + 3 ;
    48 
    49 // 4 Time separators
    50 const TUint KLocaleTimeSeparatorBase = KLocaleTimeAndDateSettingsBase + 7 ;
    51 const TUint KLocaleTimeSeparator0 = KLocaleTimeSeparatorBase ;
    52 const TUint KLocaleTimeSeparator1 = KLocaleTimeSeparatorBase + 1 ;
    53 const TUint KLocaleTimeSeparator2 = KLocaleTimeSeparatorBase + 2 ;
    54 const TUint KLocaleTimeSeparator3 = KLocaleTimeSeparatorBase + 3 ;
    55 
    56 const TUint KLocaleAmPmSpaceBetween = KLocaleTimeAndDateSettingsBase + 11 ;
    57 const TUint KLocaleAmPmSymbolPosition = KLocaleTimeAndDateSettingsBase + 12 ;
    58 const TUint KLocaleWorkDays = KLocaleTimeAndDateSettingsBase + 15 ;
    59 const TUint KLocaleStartOfWeek = KLocaleTimeAndDateSettingsBase + 16 ;
    60 const TUint KLocaleClockFormat = KLocaleTimeAndDateSettingsBase + 17 ;
    61 const TUint KLocaleDeviceTimeState = KLocaleTimeAndDateSettingsBase +18 ;
    62 
    63 
    64 // ===================================================================
    65 // Currency Settings
    66 const TUint KLocaleCurrencySettingsBase = KLocaleTLocaleBase +20;
    67 const TUint KLocaleCurrencySymbolPosition = KLocaleCurrencySettingsBase ;
    68 const TUint KLocaleCurrencySpaceBetween = KLocaleCurrencySettingsBase + 1 ;
    69 const TUint KLocaleCurrencyDecimalPlaces = KLocaleCurrencySettingsBase + 2 ;
    70 const TUint KLocaleCurrencyNegativeInBrackets = KLocaleCurrencySettingsBase + 3 ;
    71 const TUint KLocaleCurrencyTriadsAllowed = KLocaleCurrencySettingsBase + 4 ;
    72 const TUint KLocaleCurrencyNegativeFormat = KLocaleCurrencySettingsBase + 5 ;
    73 const TUint KLocaleCurrencyNegativeLoseSpace = KLocaleCurrencySettingsBase + 6 ;
    74 const TUint KLocaleCurrencySymbolOpposite = KLocaleCurrencySettingsBase + 7 ;
    75 const TUint KLocaleCurrencySymbol = KLocaleCurrencySettingsBase + 8 ;
    76 
    77 
    78 // ==================================================================
    79 // Units Settings
    80 const TUint KLocaleUnitsSettingsBase = KLocaleTLocaleBase +40;
    81 const TUint KLocaleUnitsGeneral = KLocaleUnitsSettingsBase ;
    82 const TUint KLocaleUnitsDistanceShort = KLocaleUnitsSettingsBase + 1 ;
    83 const TUint KLocaleUnitsDistanceLong = KLocaleUnitsSettingsBase + 2 ;
    84 
    85 
    86 
    87 // ====================================================================
    88 // Numeric Settings
    89 const TUint KLocaleNumericSettingsBase = KLocaleTLocaleBase +50;
    90 const TUint KLocaleDigitType = KLocaleNumericSettingsBase ;
    91 const TUint KLocaleThousandsSeparator = KLocaleNumericSettingsBase + 1 ;
    92 const TUint KLocaleDecimalSeparator = KLocaleNumericSettingsBase + 2 ;
    93 
    94 
    95 // ====================================================================
    96 // Language related settings
    97 const TUint KLocaleLanguageSettingsBase = KLocaleTLocaleBase +60;
    98 // 3 language downgrade path entries
    99 const TUint KLocaleCountryCode = KLocaleLanguageSettingsBase ;
   100 const TUint KLocaleLanguageDowngradeBase = KLocaleLanguageSettingsBase + 1 ;
   101 const TUint KLocaleLanguageDowngrade0 = KLocaleLanguageDowngradeBase ;
   102 const TUint KLocaleLanguageDowngrade1 = KLocaleLanguageDowngradeBase + 1 ;
   103 const TUint KLocaleLanguageDowngrade2 = KLocaleLanguageDowngradeBase + 2 ;
   104 
   105 
   106 
   107 #endif  // _LOCALE_REPOSITORY