fep/aknfep/inc/AknFepManagerInterface.h
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c) 2002 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:            Declaration of core part of CAknFepLanguageManager class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef __AKN_FEP_MANAGER_INTERFACE_H__
       
    30 #define __AKN_FEP_MANAGER_INTERFACE_H__
       
    31 
       
    32 // INCLUDES
       
    33 #include <e32std.h>
       
    34 #include <w32std.h>
       
    35 #include <badesca.h>
       
    36 #include <txtfrmat.h>
       
    37 #include <eikon.hrh>                    //TAknEditorNumericKeymap
       
    38 #include <peninputcmdparam.h>
       
    39 #include "AknFepGlobalEnums.h"
       
    40 
       
    41 #ifdef RD_INTELLIGENT_TEXT_INPUT
       
    42 #include <PtiDefs.h>
       
    43 #endif
       
    44 // CONSTANTS
       
    45 
       
    46 // CLASS DECLARATION
       
    47 
       
    48 /**
       
    49 * MAknFepManagerInterface is a part of Japanese FEP.
       
    50 * 
       
    51 * 
       
    52 * @see CAknFepManager, other application
       
    53 */
       
    54 class MAknFepManagerInterface
       
    55     {
       
    56     public: // Constructors and destructor
       
    57         virtual ~MAknFepManagerInterface(){}
       
    58 
       
    59 public: // New Functions
       
    60     /**
       
    61      * 
       
    62      * 
       
    63      * @since 2.6
       
    64      */
       
    65 #ifdef RD_INTELLIGENT_TEXT_INPUT          
       
    66     virtual void SetMode(TInt aMode, TBool aPredictive, TBool aQwertyInputMode, 
       
    67                          TInt aKeyboardType = EPtiKeyboardNone) = 0;
       
    68 #else
       
    69     virtual void SetMode(TInt aMode, TBool aPredictive, TBool aQwertyInputMode) = 0;
       
    70 #endif    
       
    71 
       
    72     /**
       
    73      * 
       
    74      * 
       
    75      * @since 2.6
       
    76      */
       
    77     virtual void SetCase(TCase aCase) = 0;
       
    78 
       
    79     /**
       
    80      * 
       
    81      * 
       
    82      * @since 2.6
       
    83      */
       
    84     virtual void SetNumberModeKeyMappingL(TAknEditorNumericKeymap aAknEditorNumericKeymap) = 0;
       
    85 
       
    86     /**
       
    87      * 
       
    88      * 
       
    89      * @since 2.6
       
    90      */
       
    91     virtual TBool HandleKeyL(TInt aKey, TKeyPressLength aLength, TEventCode aEventCode = EEventKey) = 0;
       
    92 
       
    93     /**
       
    94      * 
       
    95      * 
       
    96      * @since 2.6
       
    97      */
       
    98     virtual void HandleCommandL(TInt aCommandId) = 0;
       
    99     virtual void HandleCommandL(TInt aCommandId, TInt aParam) = 0;
       
   100 
       
   101     /**
       
   102      * 
       
   103      * 
       
   104      * @since 2.6
       
   105      */
       
   106     virtual void CloseUI() = 0;
       
   107 
       
   108     /**
       
   109      * 
       
   110      * 
       
   111      * @since 2.6
       
   112      */
       
   113     virtual void ExpireMultitapTimer() = 0;
       
   114 
       
   115     /**
       
   116      * 
       
   117      * 
       
   118      * @since 2.6
       
   119      */
       
   120     virtual TBool IsValidNumericLongKeyPress(TInt aKey) const = 0;
       
   121 
       
   122     /**
       
   123      * 
       
   124      * 
       
   125      * @since 2.6
       
   126      */
       
   127     virtual void AddTextToUserDictionaryL(const TDesC& aText) = 0;
       
   128 
       
   129     /**
       
   130      * 
       
   131      * 
       
   132      * @since 2.6
       
   133      */
       
   134     virtual void GetFormatOfFepInlineText(TCharFormat& aFormat, 
       
   135                                           TInt& aNumberOfCharactersWithSameFormat, 
       
   136                                           TInt aPositionOfCharacter) const = 0;
       
   137 
       
   138     /**
       
   139      * 
       
   140      * 
       
   141      * @since 2.6
       
   142      */
       
   143     virtual TInt SupportLanguage(TInt aMode) const = 0;
       
   144 
       
   145     /**
       
   146      * 
       
   147      * 
       
   148      * @since 2.6
       
   149      */
       
   150     virtual void SetInputLanguageL(TLanguage aLanguage) = 0;
       
   151 
       
   152     /**
       
   153      * 
       
   154      * 
       
   155      * @since 2.6
       
   156      */
       
   157     virtual TBool IsValidShiftKeyPress() const = 0;
       
   158 #ifdef RD_INTELLIGENT_TEXT_INPUT
       
   159     virtual TBool IsValidFnKeyPress() const = 0;
       
   160     virtual TBool IsValidLongChrKeyPress() const = 0;
       
   161 #endif
       
   162 
       
   163     /**
       
   164      * 
       
   165      * 
       
   166      * @since 2.6
       
   167      */
       
   168     virtual void SetEditorContext(TInt aContext) = 0;
       
   169 
       
   170     /**
       
   171      * 
       
   172      * 
       
   173      * @since 2.6
       
   174      */
       
   175     virtual void ActivateUI() = 0;
       
   176 
       
   177     /**
       
   178      * Set text to Fep aware editor
       
   179      * 
       
   180      * @since 3.2
       
   181      */
       
   182     virtual void SetFepAwareEditorText(const TFepInputContextFieldData& /*aIcfData*/) = 0;
       
   183 
       
   184     /**
       
   185      * Get max text length that Fep aware editor can contain
       
   186      * 
       
   187      * @since 3.2
       
   188      */
       
   189     virtual TInt EditorMaxLength() = 0;
       
   190     
       
   191     /**
       
   192      * Screen resolution or layout change notification
       
   193      * 
       
   194      * @since 3.2
       
   195      */
       
   196     virtual void ResourceChanged(TInt aType) = 0;
       
   197         
       
   198     /**
       
   199      * Set underlining FepUI interface
       
   200      * 
       
   201      * @since 3.2
       
   202      */
       
   203     virtual void SetNextFepUI(MAknFepManagerInterface* /*aNextUi*/) = 0;
       
   204 
       
   205 	/**
       
   206 	 * Set the Star key flag
       
   207 	 *
       
   208      * @param aSet TBool.
       
   209      * @return None
       
   210 	 */
       
   211 	virtual void SetStarKeyFlag( TBool aSet ) = 0;
       
   212 
       
   213     };
       
   214 #endif // __AKN_FEP_MANAGER_INTERFACE_H__
       
   215 // End of file