iaupdate/IAD/ui/inc/iaupdatestatuspanehandler.h
branchRCL_3
changeset 26 8b7f4e561641
parent 0 ba25891c3a9e
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:   Header file of CIAUpdateStatusPaneHandler class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IAUPDATESTATUSPANEHANDLER_H
       
    21 #define IAUPDATESTATUSPANEHANDLER_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <aknappui.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CIAUpdateNaviPaneHandler;
       
    30 
       
    31 
       
    32 
       
    33 /**
       
    34 * CIAUpdateStatusPaneHandler
       
    35 * 
       
    36 * This class is used for changing dialog title and image.
       
    37 */
       
    38 class CIAUpdateStatusPaneHandler : public CBase
       
    39 	{
       
    40     public:
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44 		static CIAUpdateStatusPaneHandler* NewL(CAknAppUi* aAppUi);
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49 		virtual ~CIAUpdateStatusPaneHandler();
       
    50 
       
    51     private:
       
    52         /**
       
    53         * By default Symbian OS constructor is private.
       
    54         */
       
    55 		void ConstructL();
       
    56 
       
    57         /**
       
    58         * C++ default constructor.
       
    59         */
       
    60 		CIAUpdateStatusPaneHandler(CAknAppUi* aAppUi);
       
    61 
       
    62 	public:
       
    63 		/**
       
    64 		* Stores original title so it can be restored when dialog closes.
       
    65 		* @param  None.
       
    66 		* @return None.
       
    67 		*/
       
    68         void StoreOriginalTitleL();
       
    69 
       
    70 		/**
       
    71 		* Restores original title.
       
    72 		* @param  None.
       
    73 		* @return None.
       
    74 		*/
       
    75 		void RestoreOriginalTitleL();
       
    76 
       
    77 		/**
       
    78 		* Sets dialog title.
       
    79 		* @param  aText.
       
    80 		* @return None.
       
    81 		*/
       
    82 		void SetTitleL(const TDesC& aText);
       
    83 
       
    84 		/**
       
    85 		* Sets dialog title.
       
    86 		* @param  aResourceId.
       
    87 		* @return None.
       
    88 		*/
       
    89 		void SetTitleL(TInt aResourceId);
       
    90 
       
    91 	public:
       
    92 		/**
       
    93 		* Sets dialog title.
       
    94 		* @param aAppUi.
       
    95 		* @param aText.
       
    96 		* @return Return code.
       
    97 		*/
       
    98 		static TBool SetTitleL(CAknAppUi* aAppUi, const TDesC& aText);
       
    99 
       
   100 		/**
       
   101 		* Gets dialog title.
       
   102 		* @param aAppUi.
       
   103 		* @param aText.
       
   104 		* @return Return code.
       
   105 		*/
       
   106 		static TBool GetTitleL(CAknAppUi* aAppUi, HBufC*& aText);
       
   107 		
       
   108 		/**
       
   109 		* Sets navi pane title.
       
   110 		* @param aTitle.
       
   111 		* @return None.
       
   112 		*/
       
   113 		void SetNaviPaneTitleL(const TDesC& aTitle);
       
   114 		
       
   115 	private:
       
   116 		// access to app ui
       
   117 		CAknAppUi* iAppUi;
       
   118 
       
   119 		// original status pane title
       
   120 		HBufC* iOriginalTitle;
       
   121 		
       
   122 		// is original status pane title stored
       
   123 		TBool iOriginalTitleStored;
       
   124 
       
   125 		// original context pane image
       
   126 		CEikImage* iOriginalImage;
       
   127 		
       
   128    	    CIAUpdateNaviPaneHandler* iNaviPaneHandler;
       
   129 	};
       
   130 
       
   131 
       
   132 
       
   133 
       
   134 #endif      // IAUPDATESTATUSPANEHANDLER_H
       
   135             
       
   136 // End of File