localisation/localesupport/new_locale_dll/language/share/locl_language.h
author John Imhofe
Mon, 19 Oct 2009 15:55:17 +0100
changeset 0 a41df078684a
child 15 4122176ea935
permissions -rw-r--r--
Convert Kernelhwsrv package from SFL to EPL kernel\eka\compsupp is subject to the ARM EABI LICENSE userlibandfileserver\fatfilenameconversionplugins\unicodeTables is subject to the Unicode license kernel\eka\kernel\zlib is subject to the zlib license

// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#if !defined __LOCL_LANGUAGE_H__
#define __LOCL_LANGUAGE_H__

#if !defined(__E32STD_H__)
#include <E32std.h>
#endif

#ifdef _UNICODE
#define TLocaleText TText16
#else
#define TLocaleText TText8
#endif

class LanguageAspect
	{
	public:
	static const TLanguage Language;
	static const TLanguage LanguageDowngrade[3];
	static const TDigitType DigitType;
	static const TFatUtilityFunctions* const FatUtilityFunctions;
	static const TLocaleText * const MsgTable[ELocaleMessages_LastMsg];
	static const TLocaleText * const DateSuffixTable[KMaxSuffixes];
	static const TLocaleText * const DayTable[KMaxDays];
	static const TLocaleText * const DayAbbTable[KMaxDays];
	static const TLocaleText * const MonthTable[KMaxMonths];
	static const TLocaleText * const MonthAbbTable[KMaxMonths];
	static const TLocaleText * const AmPmTable[KMaxAmPms];
	};


class LoclLanguage
	{
public:
	IMPORT_C static TLanguage Language();
	IMPORT_C static const TLanguage* LanguageDowngrade();
	IMPORT_C static TDigitType DigitType();	
	IMPORT_C static const TFatUtilityFunctions* FatUtilityFunctions();
	IMPORT_C static const TLocaleText* const *DateSuffixTable();
	IMPORT_C static const TLocaleText* const *DayTable();
	IMPORT_C static const TLocaleText* const *DayAbbTable();
	IMPORT_C static const TLocaleText* const *MonthTable();
	IMPORT_C static const TLocaleText* const *MonthAbbTable();
	IMPORT_C static const TLocaleText* const *AmPmTable();
	IMPORT_C static const TLocaleText* const *MsgTable();
	};

#endif  /* __LOCL_LANGUAGE_H__ */