controlpanelplugins/langandregplugin/src/extendedlocaleutil.h
changeset 41 ab0490982943
equal deleted inserted replaced
36:2fee987ebaff 41:ab0490982943
       
     1 /*
       
     2  * Copyright (c) 2010 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:  Language plugin view class
       
    15  *
       
    16  */
       
    17 
       
    18 /*
       
    19  * extendedlocaleutil.h
       
    20  *
       
    21  *  Created on: 24.8.2010
       
    22  *      Author: mhujanen
       
    23  */
       
    24 
       
    25 #ifndef EXTENDEDLOCALEUTIL_H_
       
    26 #define EXTENDEDLOCALEUTIL_H_
       
    27 
       
    28 #include <hblocaleutil.h>
       
    29 #include <hbinputlanguage.h>
       
    30 
       
    31 /*
       
    32  *  Temporary class. 
       
    33  *  will be replaced by function added in HbLocaleUtil in future.
       
    34  *  
       
    35  *  */
       
    36 
       
    37 struct LanguageRegionMapping
       
    38     {
       
    39     QString languageId;
       
    40     QString regionId;
       
    41     QString collationId;
       
    42     HbInputLanguage primaryWritingLan;
       
    43     HbInputLanguage secondaryWritingLan;
       
    44     };
       
    45 
       
    46 class ExtendedLocaleUtil : public HbLocaleUtil
       
    47     {
       
    48    public:
       
    49         static QList<LanguageRegionMapping> localeMappings(bool onlySupported);
       
    50    private:
       
    51         static QList<LanguageRegionMapping> allLocaleMappings();
       
    52     };
       
    53 
       
    54 #endif /* EXTENDEDLOCALEUTIL_H_ */