textinput/GSLangPlugin/inc/DualLanguageDialog.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     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 __DUALLANGUAGE_DIALOG_H
       
    18 #define __DUALLANGUAGE_DIALOG_H
       
    19 
       
    20 #include <AknDialog.h>
       
    21 #include "DualLanguageList.h"
       
    22 #include "DualLanguageData.h"
       
    23 
       
    24 class CGSLangModel;
       
    25 
       
    26 class CGSDualLanguageDialog : public CAknDialog
       
    27 {
       
    28     public:
       
    29         static CGSDualLanguageDialog* NewL(TInt aMenuResId, CGSLangModel* aModel);
       
    30         static CGSDualLanguageDialog* NewLC(TInt aMenuResId, CGSLangModel* aModel);
       
    31         virtual ~CGSDualLanguageDialog();
       
    32         
       
    33         virtual SEikControlInfo CreateCustomControlL(TInt aControlType);
       
    34         virtual CGSDualLanguageDialog::TFormControlTypes ConvertCustomControlTypeToBaseControlType(TInt aControlType) const;
       
    35 
       
    36         virtual TBool OkToExitL(TInt aButtonId);
       
    37         virtual void ProcessCommandL(TInt aCommandId);
       
    38         void EditItemL(TBool aCalledFromMenu);
       
    39         
       
    40     private:
       
    41         CGSDualLanguageDialog(CGSLangModel* aModel);
       
    42         void ReadSettingsDataL();
       
    43         void SaveSettingsDataL() const;
       
    44         
       
    45         TInt  iPredictiveTextFlag;
       
    46         
       
    47     protected:
       
    48     CGSDualLanguageList*   iSettingsList;
       
    49     CGSDualLanguageData*   iLangData;
       
    50     CGSLangModel*          iModel;
       
    51     CArrayFixFlat<TInt>*   iLanguages;
       
    52     CArrayFixFlat<TInt>*   iSecondaryLanguages;
       
    53 };
       
    54 #endif //__DUALLANGUAGE_DIALOG_H