sysstatemgmt/syslangutil/ssmlangselcmd/inc/ssmlanguageloader.h
changeset 0 4e1aa6a622a0
child 21 ccb4f6b3db21
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Declaration of SsmLanguageLoader class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SSMLANGUAGELOADER_H
       
    20 #define SSMLANGUAGELOADER_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 /**
       
    25 *  Static function managing operations related to loading locale based on
       
    26 *  language code.
       
    27 *
       
    28 *  @lib None
       
    29 *  @since S60 3.2
       
    30 */
       
    31 class SsmLanguageLoader
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37     * Store language code to HAL and load corresponding locale DLL.
       
    38     *
       
    39     * @since S60 3.2
       
    40     * @param aLanguage Language code identifying which locale DLL to load.
       
    41     * @return KErrNone if loading was successful, one of Symbian error codes
       
    42     * otherwise.
       
    43     */
       
    44     static TInt LoadLanguage( const TInt aLanguage );
       
    45 
       
    46 private:
       
    47 
       
    48     /**
       
    49     * Store language code to HAL and load corresponding locale DLL.
       
    50     *
       
    51     * @since S60 3.2
       
    52     * @param aLanguage Language code identifying which locale DLL to load.
       
    53     * @return KErrNone if successful, one of Symbian error codes otherwise.
       
    54     */
       
    55     static TInt StoreLanguageToHal( const TInt aLanguage );
       
    56 
       
    57     /**
       
    58     * Find the correct locale DLL to use by language code and take it to
       
    59     * use.
       
    60     *
       
    61     * @param aLanguageCode The language code to find a locale dll for.
       
    62     * @return KErrNone if successful, one of Symbian error codes otherwise.
       
    63     */
       
    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 
       
    74     };
       
    75 
       
    76 
       
    77 #endif // SSMLANGUAGELOADER_H