os/ossrv/lowlevellibsandfws/apputils/initLocale/src/LocaleRepository.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/apputils/initLocale/src/LocaleRepository.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,107 @@
     1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef _LOCALE_REPOSITORY
    1.20 +#define _LOCALE_REPOSITORY
    1.21 +
    1.22 +#include <e32std.h>
    1.23 +
    1.24 +const TUint32 KLocalePersistRepositoryUid = 0x1020E4D3 ; 
    1.25 +
    1.26 +const TUint KLocaleDllBase = 10 ;
    1.27 +const TUint KLocaleLanguageDll = KLocaleDllBase ;
    1.28 +const TUint KLocaleCollationDll = KLocaleDllBase + 1 ;
    1.29 +const TUint KLocaleLocaleDll = KLocaleDllBase + 2 ;
    1.30 +const TUint KLocaleTimeDateDll = KLocaleDllBase + 3 ;
    1.31 +
    1.32 +
    1.33 +// ===============================================================
    1.34 +// Individually customisable settings
    1.35 +const TUint KLocaleTLocaleBase = 100 ;
    1.36 +
    1.37 +// ===============================================================
    1.38 +// Time and Date Settings
    1.39 +const TUint KLocaleTimeAndDateSettingsBase = KLocaleTLocaleBase ;
    1.40 +
    1.41 +const TUint KLocaleUtcOffset = KLocaleTimeAndDateSettingsBase ;
    1.42 +const TUint KLocaleDateFormat = KLocaleTimeAndDateSettingsBase + 1 ;
    1.43 +const TUint KLocaleTimeFormat = KLocaleTimeAndDateSettingsBase + 2 ;
    1.44 +
    1.45 +// 4 Date Separators
    1.46 +const TUint KLocaleDateSeparatorBase = KLocaleTimeAndDateSettingsBase + 3 ;
    1.47 +const TUint KLocaleDateSeparator0 = KLocaleDateSeparatorBase ;
    1.48 +const TUint KLocaleDateSeparator1 = KLocaleDateSeparatorBase + 1 ;
    1.49 +const TUint KLocaleDateSeparator2 = KLocaleDateSeparatorBase + 2 ;
    1.50 +const TUint KLocaleDateSeparator3 = KLocaleDateSeparatorBase + 3 ;
    1.51 +
    1.52 +// 4 Time separators
    1.53 +const TUint KLocaleTimeSeparatorBase = KLocaleTimeAndDateSettingsBase + 7 ;
    1.54 +const TUint KLocaleTimeSeparator0 = KLocaleTimeSeparatorBase ;
    1.55 +const TUint KLocaleTimeSeparator1 = KLocaleTimeSeparatorBase + 1 ;
    1.56 +const TUint KLocaleTimeSeparator2 = KLocaleTimeSeparatorBase + 2 ;
    1.57 +const TUint KLocaleTimeSeparator3 = KLocaleTimeSeparatorBase + 3 ;
    1.58 +
    1.59 +const TUint KLocaleAmPmSpaceBetween = KLocaleTimeAndDateSettingsBase + 11 ;
    1.60 +const TUint KLocaleAmPmSymbolPosition = KLocaleTimeAndDateSettingsBase + 12 ;
    1.61 +const TUint KLocaleWorkDays = KLocaleTimeAndDateSettingsBase + 15 ;
    1.62 +const TUint KLocaleStartOfWeek = KLocaleTimeAndDateSettingsBase + 16 ;
    1.63 +const TUint KLocaleClockFormat = KLocaleTimeAndDateSettingsBase + 17 ;
    1.64 +const TUint KLocaleDeviceTimeState = KLocaleTimeAndDateSettingsBase +18 ;
    1.65 +
    1.66 +
    1.67 +// ===================================================================
    1.68 +// Currency Settings
    1.69 +const TUint KLocaleCurrencySettingsBase = KLocaleTLocaleBase +20;
    1.70 +const TUint KLocaleCurrencySymbolPosition = KLocaleCurrencySettingsBase ;
    1.71 +const TUint KLocaleCurrencySpaceBetween = KLocaleCurrencySettingsBase + 1 ;
    1.72 +const TUint KLocaleCurrencyDecimalPlaces = KLocaleCurrencySettingsBase + 2 ;
    1.73 +const TUint KLocaleCurrencyNegativeInBrackets = KLocaleCurrencySettingsBase + 3 ;
    1.74 +const TUint KLocaleCurrencyTriadsAllowed = KLocaleCurrencySettingsBase + 4 ;
    1.75 +const TUint KLocaleCurrencyNegativeFormat = KLocaleCurrencySettingsBase + 5 ;
    1.76 +const TUint KLocaleCurrencyNegativeLoseSpace = KLocaleCurrencySettingsBase + 6 ;
    1.77 +const TUint KLocaleCurrencySymbolOpposite = KLocaleCurrencySettingsBase + 7 ;
    1.78 +const TUint KLocaleCurrencySymbol = KLocaleCurrencySettingsBase + 8 ;
    1.79 +
    1.80 +
    1.81 +// ==================================================================
    1.82 +// Units Settings
    1.83 +const TUint KLocaleUnitsSettingsBase = KLocaleTLocaleBase +40;
    1.84 +const TUint KLocaleUnitsGeneral = KLocaleUnitsSettingsBase ;
    1.85 +const TUint KLocaleUnitsDistanceShort = KLocaleUnitsSettingsBase + 1 ;
    1.86 +const TUint KLocaleUnitsDistanceLong = KLocaleUnitsSettingsBase + 2 ;
    1.87 +
    1.88 +
    1.89 +
    1.90 +// ====================================================================
    1.91 +// Numeric Settings
    1.92 +const TUint KLocaleNumericSettingsBase = KLocaleTLocaleBase +50;
    1.93 +const TUint KLocaleDigitType = KLocaleNumericSettingsBase ;
    1.94 +const TUint KLocaleThousandsSeparator = KLocaleNumericSettingsBase + 1 ;
    1.95 +const TUint KLocaleDecimalSeparator = KLocaleNumericSettingsBase + 2 ;
    1.96 +
    1.97 +
    1.98 +// ====================================================================
    1.99 +// Language related settings
   1.100 +const TUint KLocaleLanguageSettingsBase = KLocaleTLocaleBase +60;
   1.101 +// 3 language downgrade path entries
   1.102 +const TUint KLocaleCountryCode = KLocaleLanguageSettingsBase ;
   1.103 +const TUint KLocaleLanguageDowngradeBase = KLocaleLanguageSettingsBase + 1 ;
   1.104 +const TUint KLocaleLanguageDowngrade0 = KLocaleLanguageDowngradeBase ;
   1.105 +const TUint KLocaleLanguageDowngrade1 = KLocaleLanguageDowngradeBase + 1 ;
   1.106 +const TUint KLocaleLanguageDowngrade2 = KLocaleLanguageDowngradeBase + 2 ;
   1.107 +
   1.108 +
   1.109 +
   1.110 +#endif  // _LOCALE_REPOSITORY