sysstatemgmt/syslangutil/ssmlangselcmd/inc/ssmlanguageloader.h
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 /*
     1 /*
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: Declaration of SsmLanguageLoader class.
    14 * Description:
       
    15 * Declaration of SsmLanguageLoader class.
    15 *
    16 *
    16 */
    17 */
    17 
    18 
    18 #ifndef SSMLANGUAGELOADER_H
    19 #ifndef SSMLANGUAGELOADER_H
    19 #define SSMLANGUAGELOADER_H
    20 #define SSMLANGUAGELOADER_H
    31     {
    32     {
    32 
    33 
    33 public:
    34 public:
    34 
    35 
    35     /**
    36     /**
    36     * Store language code to HAL and load corresponding Language, Region and Collation DLLs.
    37     * Store language code to HAL and load corresponding locale DLL.
    37     *
    38     *
    38     * @param aLanguage Language code identifying which language DLL to load.
    39     * @since S60 3.2
    39     * @param aRegion Region code identifying which region DLL to load.
    40     * @param aLanguage Language code identifying which locale DLL to load.
    40     * @param aCollation Collation code identifying which collation DLL to load.
       
    41     * @return KErrNone if loading was successful, one of Symbian error codes
    41     * @return KErrNone if loading was successful, one of Symbian error codes
    42     * otherwise.
    42     * otherwise.
    43     */
    43     */
    44     static TInt LoadLocale( const TInt aLanguage, const TInt aRegion, const TInt aCollation);
    44     static TInt LoadLanguage( const TInt aLanguage );
       
    45 
    45 private:
    46 private:
    46 
    47 
    47     /**
    48     /**
    48     * Store language code to HAL and load corresponding locale DLL.
    49     * Store language code to HAL and load corresponding locale DLL.
    49     *
    50     *
    52     * @return KErrNone if successful, one of Symbian error codes otherwise.
    53     * @return KErrNone if successful, one of Symbian error codes otherwise.
    53     */
    54     */
    54     static TInt StoreLanguageToHal( const TInt aLanguage );
    55     static TInt StoreLanguageToHal( const TInt aLanguage );
    55 
    56 
    56     /**
    57     /**
    57     * Loads the given Language, Region and Collation DLLs and saves the settings
    58     * Find the correct locale DLL to use by language code and take it to
       
    59     * use.
    58     *
    60     *
    59     * @param aLanguageDllName The name of the Language DLL to load.
    61     * @param aLanguageCode The language code to find a locale dll for.
    60     * @param aRegionDllName The name of the Region DLL to load.
       
    61     * @param aCollationDllName The name of the Collation DLL to load.
       
    62     * @return KErrNone if successful, one of Symbian error codes otherwise.
    62     * @return KErrNone if successful, one of Symbian error codes otherwise.
    63     */
    63     */
    64     static TInt ChangeLocale( const TDesC& aLanguageDllName,  const TDesC& aRegionDllName, const TDesC& aCollationDllName );
    64     static TInt LoadLocaleDll( const TInt aLanguage );
       
    65 
       
    66     /**
       
    67     * Take a locale DLL to use by name.
       
    68     *
       
    69     * @param aLocaleDllName The name of the locale DLL to load.
       
    70     * @return KErrNone if successful, one of Symbian error codes otherwise.
       
    71     */
       
    72     static TInt ChangeLocale( const TDesC& aLocaleDllName );
       
    73 
    65     };
    74     };
       
    75 
       
    76 
    66 #endif // SSMLANGUAGELOADER_H
    77 #endif // SSMLANGUAGELOADER_H