emailuis/emailui/inc/FreestyleEmailUiAknStatusIndicator.h
branchRCL_3
changeset 22 d620048b4810
parent 10 f5907b1a1053
equal deleted inserted replaced
20:efd4f1afd43e 22:d620048b4810
    40     // The status indicator is display for aDuration millisecond if aDuration is not negative;
    40     // The status indicator is display for aDuration millisecond if aDuration is not negative;
    41     // otherwise, it is diplayed forever until it is manually hidden.
    41     // otherwise, it is diplayed forever until it is manually hidden.
    42     void ShowIndicatorL( CFbsBitmap* aBitmap, 
    42     void ShowIndicatorL( CFbsBitmap* aBitmap, 
    43                          CFbsBitmap* aMaskBitmap,
    43                          CFbsBitmap* aMaskBitmap,
    44                          TDesC* aText,
    44                          TDesC* aText,
    45                          TInt aDuration );
    45                          TInt aDuration,
       
    46                          const TBool aAnimate = EFalse );
    46 
    47 
    47     void HideIndicator( TInt aDelayBeforeHidingInMs = 0 );
    48     void HideIndicator( TInt aDelayBeforeHidingInMs = 0 );
       
    49     void StartTimer( const TInt aTimeOut );
    48     
    50     
    49     // The ownship of aText is transferred in.
    51     // The ownship of aText is transferred in.
    50     void SetTextL( TDesC* aText );
    52     void SetTextL( TDesC* aText );
    51     
    53     
    52     // CCoeControl
    54     // CCoeControl
    75     void ConstructL( const TRect& aRect, const CCoeControl* aParent );
    77     void ConstructL( const TRect& aRect, const CCoeControl* aParent );
    76 
    78 
    77     void TimerEventL( CFSEmailUiGenericTimer* aTriggeredTimer );
    79     void TimerEventL( CFSEmailUiGenericTimer* aTriggeredTimer );
    78 
    80 
    79 private:
    81 private:
       
    82     TRect ImageRect( const TRect& aRect ) const;
       
    83     TRect TextRect( const TRect& aRect ) const;
    80     void CalculateLayout( const TRect& aRect ) const;
    84     void CalculateLayout( const TRect& aRect ) const;
    81     
    85     
    82     void SetTextFont() const;
    86     void SetTextFont() const;
    83     void CalculateVisualText() const;
    87     void CalculateVisualText() const;
       
    88 
       
    89     TRgb BackgroundColor() const;
       
    90     TRgb BorderColor() const;
       
    91     TRgb FontColor() const;
    84 
    92 
    85     void DrawBoundary( const TRect& aRect ) const;
    93     void DrawBoundary( const TRect& aRect ) const;
    86     void DrawImage( const TRect& aRect ) const;
    94     void DrawImage( const TRect& aRect ) const;
    87     void DrawText( const TRect& aRect ) const;
    95     void DrawText( const TRect& aRect ) const;
    88     
    96     
   102     mutable TRect               iImageRect;
   110     mutable TRect               iImageRect;
   103     mutable TRect               iTextRect;
   111     mutable TRect               iTextRect;
   104     
   112     
   105     mutable HBufC*              iVisualText;
   113     mutable HBufC*              iVisualText;
   106     mutable CFont*              iTextFont;
   114     mutable CFont*              iTextFont;
       
   115     mutable TInt                iVisualTextWidth;            
       
   116     
       
   117     TInt iHideTimeout;
       
   118     TInt iAngle;
       
   119     TBool iAnimate;
   107     };
   120     };
   108 
   121 
   109 #endif // __FREESTYLEEMAILUI_AKN_STATUS_INDICATOR_H__
   122 #endif // __FREESTYLEEMAILUI_AKN_STATUS_INDICATOR_H__