emailuis/emailui/inc/ncscomposeviewcontainer.h
branchRCL_3
changeset 17 67369d1b217f
parent 16 b5fbb9b25d57
equal deleted inserted replaced
16:b5fbb9b25d57 17:67369d1b217f
    28 #include "ncsfieldsizeobserver.h"
    28 #include "ncsfieldsizeobserver.h"
    29 #include "ncsconstants.h"
    29 #include "ncsconstants.h"
    30 #include "FreestyleEmailUiContactHandlerObserver.h"
    30 #include "FreestyleEmailUiContactHandlerObserver.h"
    31 #include "FreestyleEmailUi.hrh"
    31 #include "FreestyleEmailUi.hrh"
    32 #include <aknlongtapdetector.h>
    32 #include <aknlongtapdetector.h>
       
    33 #include "FSAsyncTextFormatter.h"
    33 
    34 
    34 class CAknPhysics;
    35 class CAknPhysics;
    35 class CNcsEditor;
    36 class CNcsEditor;
    36 class CNcsComposeView;
    37 class CNcsComposeView;
    37 class CNcsHeaderContainer;
    38 class CNcsHeaderContainer;
    57                                 public MEikScrollBarObserver,
    58                                 public MEikScrollBarObserver,
    58                                 public MFSEmailUiContactHandlerObserver,
    59                                 public MFSEmailUiContactHandlerObserver,
    59                                 public MAknLongTapDetectorCallBack,
    60                                 public MAknLongTapDetectorCallBack,
    60                                 public MEikEdwinObserver,
    61                                 public MEikEdwinObserver,
    61                                 public MEikEdwinSizeObserver,
    62                                 public MEikEdwinSizeObserver,
    62                                 public MAknPhysicsObserver
    63                                 public MAknPhysicsObserver,
       
    64                                 public MAsyncTextFormatterObserver
    63     {
    65     {
    64     
    66     
    65 public:
    67 public:
    66  
    68  
    67     /** Initialisation flags. */
    69     /** Initialisation flags. */
   378      * Set the contents of the message body.
   380      * Set the contents of the message body.
   379      * @param aMessage Contents of MESSAGE-field.
   381      * @param aMessage Contents of MESSAGE-field.
   380      * @parem aReadOnlyQuote Contents of read-only quote field.
   382      * @parem aReadOnlyQuote Contents of read-only quote field.
   381      */
   383      */
   382     void SetBodyContentL( const TDesC& aMessage, const TDesC& aReadOnlyQuote );
   384     void SetBodyContentL( const TDesC& aMessage, const TDesC& aReadOnlyQuote );
       
   385     
       
   386     /**
       
   387      * Set the contents of the message body in asnchronous way.
       
   388      * @param aMessage Contents of MESSAGE-field.
       
   389      * @param aReadOnlyQuote Contents of read-only quote field.
       
   390      */
       
   391     void SetBodyContentAsyncL( const TDesC& aMessage, const TDesC& aReadOnlyQuote );
   383 
   392 
   384     /**
   393     /**
   385      * Get the contents of message body. The message body consists of
   394      * Get the contents of message body. The message body consists of
   386      * MESSAGE-field followed by optional read-only quote field.
   395      * MESSAGE-field followed by optional read-only quote field.
   387      * @return Message body.
   396      * @return Message body.
   500     /**
   509     /**
   501      * Scroll
   510      * Scroll
   502      * @param aTargetPos Scrolls display to given position
   511      * @param aTargetPos Scrolls display to given position
   503      */
   512      */
   504     void Scroll( TInt aTargetPos, TBool aDrawNow = ETrue );
   513     void Scroll( TInt aTargetPos, TBool aDrawNow = ETrue );
   505 
   514     
       
   515     /**
       
   516      * Stopping asynchronous text formatting of message body.
       
   517      */
       
   518     void StopAsyncTextFormatter();
       
   519     
       
   520 public: // from MAsyncTextFormatterObserver
       
   521     
       
   522     /**
       
   523      * Called when text formatting was cancelled.
       
   524      */
       
   525     void FormatAllTextCancelled();
       
   526     
       
   527     /**
       
   528      * Called when text formatting is complete. 
       
   529      */
       
   530 	void FormatAllTextComplete();
       
   531 	
   506 public: // from CoeControl
   532 public: // from CoeControl
   507 
   533 
   508     /**
   534     /**
   509     * Draw
   535     * Draw
   510     * Draw this CNcsComposeViewContainer to the screen.
   536     * Draw this CNcsComposeViewContainer to the screen.
   640    /**
   666    /**
   641     * @see MAknPhysicsObserver::ViewPosition
   667     * @see MAknPhysicsObserver::ViewPosition
   642     */
   668     */
   643    virtual TPoint ViewPosition() const;
   669    virtual TPoint ViewPosition() const;
   644 
   670 
   645 private:
       
   646 
       
   647    void DoUpdateSubjectL();
       
   648 
       
   649 private: // data
   671 private: // data
   650     
   672 
   651     /**
   673     /**
   652     * header container
   674     * header container
   653     */
   675     */
   654     CNcsHeaderContainer* iHeader;
   676     CNcsHeaderContainer* iHeader;
   655     
   677     
   738     TInt iTotalComposerHeight; 
   760     TInt iTotalComposerHeight; 
   739     TInt iVisibleAreaHeight;
   761     TInt iVisibleAreaHeight;
   740     TInt iTotalMoveY;
   762     TInt iTotalMoveY;
   741     TInt iSeparatorHeight;
   763     TInt iSeparatorHeight;
   742     TInt iHeaderHeight;
   764     TInt iHeaderHeight;
       
   765 
       
   766     /**
       
   767      * Flag for switching off text formatting.
       
   768      */
       
   769     TBool iSwitchOffFormattingText;
       
   770     
       
   771     /**
       
   772      * Currently processed field - needed by async text formatting.
       
   773      */
       
   774     CNcsEditor* iProcessedField;
       
   775     
       
   776     /**
       
   777      * Async text formatter.
       
   778      * Own.
       
   779      */
       
   780     CFSAsyncTextFormatter* iAsyncTextFormatter;
       
   781     
       
   782     /**
       
   783      * Pane rect calculated during ChangeSize.
       
   784      */
       
   785     TRect iCmailPaneRect;
   743     };
   786     };
   744 
   787 
   745 
   788 
   746 #endif
   789 #endif