idlehomescreen/inc/xntexteditor.h
branchRCL_3
changeset 9 f966699dea19
parent 0 f72a12da539e
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    52          * Returns the text contained in the underlying CEikEdvin
    52          * Returns the text contained in the underlying CEikEdvin
    53          * @return HBufC* The text
    53          * @return HBufC* The text
    54          */
    54          */
    55         virtual const HBufC* Text() = 0;
    55         virtual const HBufC* Text() = 0;
    56 
    56 
       
    57         /**
       
    58          * Handles editor events
       
    59          * 
       
    60          * @since S60 5.2
       
    61          * @param aReason, editor event       
       
    62          */
       
    63         virtual void HandleEditorEvent( TInt aReason ) = 0;
       
    64 
    57         private:
    65         private:
    58         };
    66         };
    59     }   
    67     }   
    60 
    68 
    61 /**
    69 /**
    63 *  @lib xntexteditorfactory.lib
    71 *  @lib xntexteditorfactory.lib
    64 *  @since S60
    72 *  @since S60
    65 */
    73 */
    66 class CXnTextEditor : public CXnComponent, public XnTextEditorInterface::MXnTextEditorInterface
    74 class CXnTextEditor : public CXnComponent, public XnTextEditorInterface::MXnTextEditorInterface
    67     {
    75     {
       
    76 public:
       
    77 
       
    78 /**
       
    79  * Editor events
       
    80  */
       
    81     enum TEditorEvent
       
    82                 {
       
    83                 KActivateTextEditor,
       
    84                 KDeactivateTextEditor,
       
    85                 KRemoveSplitInputFromStack,
       
    86                 KKeepSplitInputInStack
       
    87                 };
    68 public:
    88 public:
    69 
    89 
    70 	/**
    90 	/**
    71 	 * 2 phase construction.
    91 	 * 2 phase construction.
    72 	 */
    92 	 */
    89      * Returns the text contained in the underlying CEikEdvin
   109      * Returns the text contained in the underlying CEikEdvin
    90      * @return HBufC* The text
   110      * @return HBufC* The text
    91      */
   111      */
    92     const HBufC* Text();
   112     const HBufC* Text();
    93 
   113 
       
   114     /**
       
   115      * Handles editor events
       
   116      * 
       
   117      * @since S60 5.2
       
   118      * @param aReason, editor event       
       
   119      */
       
   120     void HandleEditorEvent( TInt aReason );
       
   121 
    94 public: // from CCoeControl
   122 public: // from CCoeControl
    95 
   123 
    96    	/**
   124    	/**
    97      * Create a component interface according to the given type.
   125      * Create a component interface according to the given type.
    98      * @param aType Type of the interface to create
   126      * @param aType Type of the interface to create