emailuis/emailui/inc/cmailcustomstatuspaneindicators.h
changeset 0 8466d47a6819
child 12 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2008 - 2009 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: Defines class CCustomStatuspaneIndicators.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CCUSTOMSTATUSPANEINDICATORS_H_
       
    19 #define CCUSTOMSTATUSPANEINDICATORS_H_
       
    20 
       
    21 // INCLUDES
       
    22 #include <coecntrl.h>
       
    23 #include <eikspane.h>  		// CEikStatusPane
       
    24 #include "ncsconstants.h" 	// TMsgPriority
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CFbsBitmap;
       
    28 class CEikImage;
       
    29 
       
    30 /**
       
    31  * Navi pane handler for the email.
       
    32  */
       
    33 class CCustomStatuspaneIndicators : public CCoeControl
       
    34 	{
       
    35 public:
       
    36 	CCustomStatuspaneIndicators( );
       
    37 	virtual ~CCustomStatuspaneIndicators();
       
    38 	
       
    39     /**
       
    40      * Creates new CCustomStatuspaneIndicators object. Ownership
       
    41      * is transferred to caller.
       
    42      * @param aStatusPane pointer to aplications status pane
       
    43      * @return Pointer to created object,
       
    44      */
       
    45     static CCustomStatuspaneIndicators* NewL( CEikStatusPane* aStatusPane );
       
    46     
       
    47     /**
       
    48      * Set priority flag given as parameter into status pane
       
    49      */
       
    50     void SetPriorityFlag( TMsgPriority aFlagType );
       
    51     
       
    52     /**
       
    53      * Set followup flag ON or OFF in status pane
       
    54      */
       
    55     enum TFollowUpFlagType { EFollowUp, EFollowUpComplete, EFollowUpNone };
       
    56     void SetFollowUpFlag( TFollowUpFlagType aFlagType );
       
    57     
       
    58     /**
       
    59      * Hide all status pane flags
       
    60      */
       
    61     void HideStatusPaneIndicators();
       
    62     
       
    63     /**
       
    64      * Show status pane flags, whan called flags are sett OFF
       
    65      */
       
    66     void ShowStatusPaneIndicators();
       
    67             
       
    68 private:
       
    69     /**
       
    70      * Construction
       
    71      * @param aStatusPane pointer to aplications status pane
       
    72      */
       
    73     void ConstructL( CEikStatusPane* aStatusPane );
       
    74 
       
    75     /**
       
    76      * Read icon graphic controls from the texture manager
       
    77      */     
       
    78 	void ConstructControlsL();
       
    79 	
       
    80     /**
       
    81      * Get topmost navi pane decorator and check if scroll buttons are visible
       
    82      */     
       
    83 	TBool CheckScrollButtonState();
       
    84 
       
    85 	/**
       
    86 	 * Sets this control's window rect
       
    87 	 */
       
    88 	void DoSetRectL();
       
    89 	
       
    90 public:  // From CCoeControl
       
    91     TSize MinimumSize();
       
    92     TInt CountComponentControls() const;
       
    93     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    94     
       
    95 private:  // From CCoeControl
       
    96     void SizeChanged();
       
    97     void HandleResourceChange( TInt aType );
       
    98 
       
    99 private: // Data
       
   100 	CEikStatusPane* iStatusPane;
       
   101 	// Icons which are shown in navi pane
       
   102     CEikImage* iPriorityIconLow;
       
   103     CEikImage* iPriorityIconHigh;
       
   104   	CEikImage* iFollowUpIcon;
       
   105     /// Own: Pointers to the bitmaps. Icons are created using these bitmaps
       
   106     CFbsBitmap* iBitmapPriorityLow;
       
   107     CFbsBitmap* iBitmapMaskPriorityLow;
       
   108     CFbsBitmap* iBitmapPriorityHigh;
       
   109     CFbsBitmap* iBitmapMaskPriorityHigh;
       
   110     CFbsBitmap* iBitmapFollowUp;
       
   111     CFbsBitmap* iBitmapFollowUpMask;
       
   112     CFbsBitmap* iBitmapFollowUpComplete;
       
   113     CFbsBitmap* iBitmapFollowUpCompleteMask;
       
   114 	};
       
   115 
       
   116 #endif /* CCUSTOMSTATUSPANEINDICATORS_H_ */