diff -r 12c456ceeff2 -r 5253a20d2a1e emailuis/emailui/inc/ncscomposeviewcontainer.h --- a/emailuis/emailui/inc/ncscomposeviewcontainer.h Thu Jan 07 12:38:38 2010 +0200 +++ b/emailuis/emailui/inc/ncscomposeviewcontainer.h Mon Jan 18 20:08:26 2010 +0200 @@ -29,10 +29,7 @@ #include "ncsconstants.h" #include "FreestyleEmailUiContactHandlerObserver.h" #include "FreestyleEmailUi.hrh" - -// #include -// class CAknPhysics; class CNcsEditor; @@ -76,7 +73,7 @@ /** * Two-phased constructor. - * Create a CNcsComposeViewContainer object, which will draw itself to aRect + * Create a CNcsComposeViewContainer object, that draws itself to aRect * @param aView The parent view of this container. * @param aRect The rectangle this view will be drawn to. * @param aMailBox reference to current mailbox item. @@ -105,21 +102,24 @@ * Get addresses in TO-field. * @return Array of address objects. */ - const RPointerArray& GetToFieldAddressesL( TBool aParseNow=ETrue ); + const RPointerArray& + GetToFieldAddressesL( TBool aParseNow=ETrue ); /** * GetCcFieldAddressesL * Get addresses in CC-field. * @return Array of address objects. */ - const RPointerArray& GetCcFieldAddressesL( TBool aParseNow=ETrue ); + const RPointerArray& + GetCcFieldAddressesL( TBool aParseNow=ETrue ); /** * GetBccFieldAddressesL * Get addresses in BCC-field. * @return Array of address objects. */ - const RPointerArray& GetBccFieldAddressesL( TBool aParseNow=ETrue ); + const RPointerArray& + GetBccFieldAddressesL( TBool aParseNow=ETrue ); /** * GetSubjectLC @@ -210,42 +210,48 @@ * Set TO-field addresses. * @param aAddress Array of address objects. */ - void SetToFieldAddressesL( RPointerArray& aAddress ); + void SetToFieldAddressesL( + RPointerArray& aAddress ); /** * SetCcFieldAddressesL * Set CC-field addresses. * @param aAddress Array of address objects. */ - void SetCcFieldAddressesL( RPointerArray& aAddress ); + void SetCcFieldAddressesL( + RPointerArray& aAddress ); /** * SetBccFieldAddressesL * Set BCC-field addresses. * @param aAddress Array of address objects. */ - void SetBccFieldAddressesL( RPointerArray& aAddress ); + void SetBccFieldAddressesL( + RPointerArray& aAddress ); /** * AppendToFieldAddressesL * Append TO-field addresses. * @param aAddress Array of address objects. */ - void AppendToFieldAddressesL( RPointerArray& aAddress ); + void AppendToFieldAddressesL( + RPointerArray& aAddress ); /** * AppendCcFieldAddressesL * Append CC-field addresses. * @param aAddress Array of address objects. */ - void AppendCcFieldAddressesL( RPointerArray& aAddress ); + void AppendCcFieldAddressesL( + RPointerArray& aAddress ); /** * AppendBccFieldAddressesL * Append BCC-field addresses. * @param aAddress Array of address objects. */ - void AppendBccFieldAddressesL( RPointerArray& aAddress ); + void AppendBccFieldAddressesL( + RPointerArray& aAddress ); /** * SetSubjectL @@ -278,24 +284,32 @@ void SetMenuBar( CEikButtonGroupContainer* aMenuBar ); /** - * SetAttachmentLabelTextL - * Set attachments label information. - * @param aText The text to be shown in the attachments label. - */ - void SetAttachmentLabelTextL( const TDesC& aText ); + * SetAttachmentLabelTextsL + * Set attachment label informations from arrays of file name and + * size informations. Some decorations may be added. + * The file name will be truncated autoamtically if needed. + * The method takes ownership of the passed arrays. + * @param aAttachmentNames Descriptor array containing file names. + * @param aAttachmentSizes Descriptor array containing file sizes. + */ + void SetAttachmentLabelTextsLD( CDesCArray* aAttachmentNames, + CDesCArray* aAttachmentSizes ); /** - * SetAttachmentLabelTextL - * Set attachments label information from file name and size information. - * Some decorations may be added. The file name will be truncated autoamtically if needed. - * @param aAttachmentName The name of the attachment to be shown - * @param aAttachmentSizeDesc Descriptor containing size information about the file - */ - void SetAttachmentLabelTextL( const TDesC& aAttachmentName, const TDesC& aAttachmentSizeDesc ); - + * FocusedAttachmentLabelIndex + * Returns the index of the attachment label that is currently focused + * @return Index of the focused attachment label. + */ + TInt FocusedAttachmentLabelIndex(); + + /** + * FixSemicolonL + * Fixes possibly missing semicolon in message header address fields. + */ void FixSemicolonL(); void HideAttachmentLabel(); + /** * IsCcFieldVisible * Test if CC-field is visible. @@ -310,9 +324,6 @@ */ TBool IsBccFieldVisible() const; -// Removed unneeded IsFocusAif -// - /** * IsFocusTo * Test if TO-field is focused. @@ -384,15 +395,6 @@ CRichText& BodyText(); /** - * SetApplicationRect - * Sets the container rectangle. - * @param aRect The rectangle. - */ - // - // void SetApplicationRect( TRect aRect ); - // - - /** * SetFocusToToField * Focuses the TO-field. */ @@ -464,10 +466,10 @@ void HandleAttachmentsOpenCommandL(); /** - * LaunchAttachmentActionMenuL + * LaunchStylusPopupMenu * */ - void LaunchAttachmentActionMenuL(); + void LaunchStylusPopupMenu( const TPoint& aPenEventScreenLocation ); /** * AreAddressFieldsEmpty @@ -488,10 +490,12 @@ */ void CommitL( TFieldToCommit aFieldToCommit = EAllFields ); - // - //sets up iSwitchChangeMskOff falg, which disables changes of MSK label if any popup dialog is open + /** + * SwitchChangeMskOff + * Sets up iSwitchChangeMskOff falg, which disables changes of MSK label + * if any popup dialog is open + */ void SwitchChangeMskOff(TBool aTag); - // /** * ScrollL @@ -501,22 +505,20 @@ public: // from CoeControl - /** - * Draw - * Draw this CNcsComposeViewContainer to the screen. - * @param aRect the rectangle of this view that needs updating - */ + /** + * Draw + * Draw this CNcsComposeViewContainer to the screen. + * @param aRect the rectangle of this view that needs updating + */ void Draw( const TRect& aRect ) const; void SetMskL(); - // /** * Handle pointer event * */ void HandlePointerEventL( const TPointerEvent& aPointerEvent ); - // /** * OfferKeyEventL @@ -553,10 +555,11 @@ public: // from MEikScrollBarObserver - /** - * HandleScrollEventL - */ - void HandleScrollEventL( CEikScrollBar* aScrollBar, TEikScrollEvent aEventType ); + /** + * HandleScrollEventL + */ + void HandleScrollEventL( + CEikScrollBar* aScrollBar, TEikScrollEvent aEventType ); public: // from MFSEmailUiContactHandlerObserver @@ -570,17 +573,17 @@ public: // from base class MEikEdwinSizeObserver - TBool HandleEdwinSizeEventL( CEikEdwin* aEdwin, TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize ); + TBool HandleEdwinSizeEventL( CEikEdwin* aEdwin, + TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize ); public: // from MNcsFieldSizeObserver TBool UpdateFieldSizeL(); void UpdateFieldPosition( CCoeControl* aAnchor ); - // private: //From MAknLongTapDetectorCallBack - void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation ); - // + void HandleLongTapEventL( const TPoint& aPenEventLocation, + const TPoint& aPenEventScreenLocation ); private: @@ -612,9 +615,13 @@ * in moving of display. */ void UpdateScreenPositionL( const TUint& aKeyCode = EKeyNull ); - // + + /** + * CalculateSeparatorLineSecondaryColor + * @return Separator line secondary color + */ TRgb CalculateSeparatorLineSecondaryColor(); - // + void UpdatePhysicsL(); private: // from MAknPhysicsObserver @@ -622,7 +629,8 @@ /** * @see MAknPhysicsObserver::ViewPositionChanged */ - virtual void ViewPositionChanged( const TPoint& aNewPosition, TBool aDrawNow, TUint aFlags ); + virtual void ViewPositionChanged( const TPoint& aNewPosition, + TBool aDrawNow, TUint aFlags ); /** * @see MAknPhysicsObserver::PhysicEmulationEnded @@ -656,9 +664,11 @@ */ CCoeControl* iFocused; - // + /** + * Long tap detector. + * Owned. + */ CAknLongTapDetector* iLongTapDetector; - // /** * @@ -700,9 +710,8 @@ CFSMailBox& iMailBox; TAppendAddresses iAppendAddresses; - // + TInt iSeparatorLineYPos; - // // panning related CAknPhysics* iPhysics;