fepstub/inc/AknFepManager.h
changeset 24 fc42a86c98e3
equal deleted inserted replaced
15:806570e85b3d 24:fc42a86c98e3
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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 CAknFepManager definition.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 #ifndef __AKN_FEP_MANAGER_H__
       
    31 #define __AKN_FEP_MANAGER_H__
       
    32 
       
    33 #include <gulicon.h>  
       
    34 #include <fepbase.h>                    //CCoeFep
       
    35 #include <aknedstsobs.h>                //MAknEdStateObserver
       
    36 #include <uikon.hrh>                    //TAknEditorNumericKeymap
       
    37 #include <aknEditStateIndicator.h>      //TAknEditingState
       
    38 
       
    39 class CAknEdwinState;
       
    40 /**
       
    41  * The CCoeFep derived class of AknFep
       
    42  * Controls mode in the Fep. Handles all interaction with the editor
       
    43  * Creates and owns the UI Manger, the Key Catcher and the edit state indicators
       
    44  */
       
    45 class CAknFepManager :
       
    46     public CCoeFep,
       
    47     private MAknEdStateObserver
       
    48     {
       
    49 
       
    50 public:
       
    51 
       
    52 public:
       
    53     /**
       
    54      * C++ Constructor
       
    55      */
       
    56     CAknFepManager(CCoeEnv& aConeEnvironment);
       
    57 
       
    58     /**
       
    59      *  Second phase construction
       
    60      */
       
    61     void ConstructL(const CCoeFepParameters& aFepParameters);
       
    62 
       
    63     /**
       
    64      * destructor
       
    65      */
       
    66     virtual ~CAknFepManager();
       
    67 public: // from MAknEdStateObserver
       
    68     /**
       
    69      * from MAknEdStateObserver - not used
       
    70      */
       
    71     virtual void HandleAknEdwinStateEventL(CAknEdwinState* aAknEdwinState, 
       
    72                                            EAknEdwinStateEvent aEventType);
       
    73 //private:        //from MFepInlineTextFormatRetriever
       
    74 //    /**
       
    75 //     * from MFepInlineTextFormatRetriever - not needed, has to be implemented for MCoeFepAwareTextEditor interface
       
    76 //     */
       
    77 //    virtual void GetFormatOfFepInlineText(TCharFormat& aFormat, 
       
    78 //                                          TInt& aNumberOfCharactersWithSameFormat, 
       
    79 //                                          TInt aPositionOfCharacter) const;
       
    80 private:        // from MCoeFocusObserver (via CCoeFep)
       
    81 
       
    82     virtual void HandleChangeInFocus();
       
    83 
       
    84     /**
       
    85      * in queries the editor is destroyed before the call to HandleChangeInFocus
       
    86      * so NULL the iInputCapabilities variables to prevent trying to save to an unreferenced object
       
    87      */
       
    88     virtual void HandleDestructionOfFocusedItem();
       
    89 
       
    90 private:    // from MCoeForegroundObserver (via CCoeFep)
       
    91     /**
       
    92      * from MCoeForegroundObserver (via CCoeFep) - not used
       
    93      */
       
    94     virtual void HandleGainingForeground();
       
    95 
       
    96     /**
       
    97      * from MCoeForegroundObserver (via CCoeFep) - not used
       
    98      */
       
    99     virtual void HandleLosingForeground();
       
   100 
       
   101 private:    // from MFepAttributeStorer (via CCoeFep)
       
   102     /**
       
   103      * from MFepAttributeStorer (via CCoeFep) - not used
       
   104      */
       
   105     virtual TInt NumberOfAttributes() const;
       
   106 
       
   107     /**
       
   108      * from MFepAttributeStorer (via CCoeFep) - not used
       
   109      */
       
   110     virtual TUid AttributeAtIndex(TInt aIndex) const;
       
   111 
       
   112     /**
       
   113      * from MFepAttributeStorer (via CCoeFep) - not used
       
   114      */
       
   115     virtual void WriteAttributeDataToStreamL(TUid aAttributeUid, RWriteStream& aStream) const;
       
   116 
       
   117     /**
       
   118      * from MFepAttributeStorer (via CCoeFep) - not used
       
   119      */
       
   120     virtual void ReadAttributeDataFromStreamL(TUid aAttributeUid, RReadStream& aStream);
       
   121 
       
   122 private: // from CCoeFep
       
   123     /**
       
   124      * from CCoeFep - not used
       
   125      */
       
   126     virtual void CancelTransaction();
       
   127 
       
   128     /**
       
   129      * from CCoeFep - not used
       
   130      */
       
   131     virtual void IsOnHasChangedState();
       
   132 
       
   133     /**
       
   134      * from CCoeFep - not used
       
   135      */
       
   136     virtual void OfferKeyEventL(TEventResponse& aEventResponse, const TKeyEvent& aKeyEvent, 
       
   137                                 TEventCode aEventCode);
       
   138 
       
   139     /**
       
   140      * from CCoeFep - not used
       
   141      */
       
   142     virtual void OfferPointerEventL(TEventResponse& aEventResponse, 
       
   143                                     const TPointerEvent& aPointerEvent, 
       
   144                                     const CCoeControl* aWindowOwningControl);
       
   145 
       
   146     /**
       
   147      * from CCoeFep - not used
       
   148      */
       
   149     virtual void OfferPointerBufferReadyEventL(TEventResponse& aEventResponse, 
       
   150                                                const CCoeControl* aWindowOwningControl);
       
   151 
       
   152     
       
   153 private:
       
   154   
       
   155     };
       
   156 #endif //__AKN_FEP_MANAGER_H__    
       
   157 // End of file