fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepIndicatorAvkon.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     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:           
       
    15 *       Provides the CAknFepIndicatorAvkon definition.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 #ifndef AknFepAvkonIND_H
       
    31 #define AknFepAvkonIND_H
       
    32 
       
    33 #include <AknFepIndicator.h>
       
    34 #include <aknEditStateIndicator.h>  //MAknEditingStateIndicator
       
    35 
       
    36 class CAknNavigationDecorator;
       
    37 class CAknNavigationControlContainer;
       
    38 class CEikonEnv;
       
    39 
       
    40 class CAknFepIndicatorAvkon : public CAknFepIndicator
       
    41     {
       
    42 public:
       
    43     static CAknFepIndicator* NewL();
       
    44     ~CAknFepIndicatorAvkon();
       
    45     virtual void SetState(TAknEditingState aState); 
       
    46     virtual CAknIndicatorContainer* IndicatorContainer();
       
    47 
       
    48 public: // new functions    
       
    49     /**
       
    50      * Sets flag that copy mode is ON
       
    51      */    
       
    52     void SetCopyMode(TBool aCopyMode); 
       
    53 
       
    54 private:
       
    55     CAknFepIndicatorAvkon();
       
    56     void AddContainerL(CAknNavigationControlContainer* aNaviPane);
       
    57     void RemoveContainer();
       
    58     void SetIndicator(TInt aIndicator, TInt aMode, TBool aDrawNow = ETrue);
       
    59     CAknNavigationControlContainer* NaviPaneL();
       
    60     
       
    61      /** Since 3.2
       
    62  	  * 	 Returns True if Predictive Mode is On so that - the appropriate indicator is set
       
    63  	  */
       
    64     TBool QueryPredictiveState(TAknEditingState aState);
       
    65     
       
    66 #ifndef RD_INTELLIGENT_TEXT_INPUT
       
    67      /** Since 5.0
       
    68  	  * 	 Returns True if AutoCompletion Mode is On so that - the appropriate indicator is set
       
    69  	  */
       
    70     
       
    71     TBool QueryPredictiveAutoCompleteState(TAknEditingState aState);
       
    72     
       
    73 #endif     // RD_PRED_AW_COMPLETION
       
    74      /** Since 3.2
       
    75       * 	 Returns the indicator to be displayed based on the Editor state 
       
    76       */
       
    77     TInt EvaluateState(TAknEditingState aState);
       
    78 private:
       
    79     CAknIndicatorContainer*     iIndicatorContainer;
       
    80     CAknNavigationDecorator*    iNaviDecorator;
       
    81     TAknEditingState            iPreviousState;
       
    82     CEikonEnv& iEikEnv;
       
    83     CAknNavigationControlContainer* iNaviPane;
       
    84     TBool iNaviPaneChanged;
       
    85     };
       
    86 
       
    87 #endif // AknFepIND_H
       
    88 
       
    89 // End of file