phonesrv_plat/phone_settings_ui_notes_api/inc/psuilocalisation.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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  *
       
    16  */
       
    17 #ifndef PSUILOCALISATION_H_
       
    18 #define PSUILOCALISATION_H_
       
    19 
       
    20 #include <QObject>
       
    21 #include <QList>
       
    22 
       
    23 // Forward declarations 
       
    24 class QTranslator; 
       
    25 
       
    26 #ifdef BUILD_PSUINOTES
       
    27 #define PSUINOTES_EXPORT Q_DECL_EXPORT
       
    28 #else
       
    29 #define PSUINOTES_EXPORT Q_DECL_IMPORT
       
    30 #endif
       
    31 
       
    32 class PSUINOTES_EXPORT PsUiLocalisation: public QObject
       
    33     {
       
    34     Q_OBJECT
       
    35     
       
    36 public: 
       
    37     
       
    38     enum TranslationFileId {
       
    39         TranslationFileCommon, 
       
    40         TranslationFileTelephoneCp
       
    41     }; 
       
    42         
       
    43 public:
       
    44     
       
    45     PsUiLocalisation(QObject *parent = NULL);
       
    46     ~PsUiLocalisation();
       
    47 
       
    48     /**
       
    49      * Installs specific translation file
       
    50      * @param translationFileId Id of file to be installed
       
    51      */
       
    52     bool installTranslator(TranslationFileId translationFileId);
       
    53     
       
    54     /**
       
    55      * Removes installed translators
       
    56      */
       
    57     void removeTranslators();
       
    58 
       
    59 private:     
       
    60     
       
    61     QList<QTranslator *> m_translators;
       
    62     };
       
    63 
       
    64 
       
    65 #endif /* PSUILOCALISATION_H_ */