diff -r 1ddbe54d0645 -r ccb4f6b3db21 sysstatemgmt/inc/ssmcommonlocale.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysstatemgmt/inc/ssmcommonlocale.h Tue Aug 31 16:29:05 2010 +0300 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: Declaration of TLanguageRegion structure. +* +*/ +#ifndef __SSMCOMMONLOCALE_H__ +#define __SSMCOMMONLOCALE_H__ +#include + +_LIT( KLanguageDllNameBase, "elocl_lan" ); +_LIT( KRegionDllNameBase, "elocl_reg" ); +_LIT( KCollationDllNameBase, "elocl_col" ); +_LIT( KDllExtensionFormat, ".%u" ); +_LIT( KDllExtensionPadding, "0" ); +const TInt KMaxDllNameLength = 16; +const TInt KMaxDllExtensionLength = 6; +const TInt KMinDllExtensionLength = 4; +const TInt KDllExtensionPaddingPosition = 1; + +/** +* Used for mapping associated regions for the languages +*/ +class TLanguageRegion + { +public: + + /** + * Default constructor. + */ + TLanguageRegion () : iLanguage( 0 ), iRegion ( 0 ) + { + } + + /** + * Overloaded constructor. + */ + TLanguageRegion ( const TInt aLanguage ) + : iLanguage( aLanguage ), iRegion ( 0 ) + { + } + + /** + * Overloaded constructor. + */ + TLanguageRegion (const TInt aLanguage, const TInt aRegion) + : iLanguage( aLanguage ), iRegion ( aRegion ) + { + } + +public: + /** Mapped language code */ + TInt iLanguage; + + /** Mapped region code */ + TInt iRegion; +}; + +#endif // __SSMCOMMONLOCALE_H__