meetingrequest/mrgui/inc/cesmrtitlepanehandler.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 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:  MR titlepane handler header
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CESMRTITLEPANEHANDLER_H
       
    19 #define CESMRTITLEPANEHANDLER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CAknTitlePane;
       
    26 class CEikonEnv;
       
    27 
       
    28 // CLASS DECLARATIONS
       
    29 NONSHARABLE_CLASS( CESMRTitlePaneHandler ) : public CBase
       
    30     {
       
    31     public:
       
    32         static CESMRTitlePaneHandler* NewL( CEikonEnv& aEnv );
       
    33         ~CESMRTitlePaneHandler();
       
    34 
       
    35     public:
       
    36         /**
       
    37          * Restores the original titlepane text that was saved
       
    38          * before setting new one into titlepane. If called before
       
    39          * SetNewTitle() does nothing.
       
    40          */
       
    41         void Rollback();
       
    42 
       
    43         /**
       
    44          * Sets new title. If aNewTitle is NULL the titlepane
       
    45          * default is used.
       
    46          * @param aNewTitle New titlepane text as reference
       
    47          */
       
    48         void SetNewTitle( const TDesC* aNewTitle );
       
    49 
       
    50     private:
       
    51         CESMRTitlePaneHandler( CEikonEnv& aEnv );
       
    52         void ConstructL();
       
    53         void SetTitlePaneTextL( const TDesC* aNewTitle );
       
    54 
       
    55     private:
       
    56         // Own: Original title pane text before change
       
    57         HBufC* iSaveTitlePaneText;
       
    58         // Ref:
       
    59         CEikonEnv& iEikEnv;
       
    60         // Ref:
       
    61         CAknTitlePane* iTitlePane;
       
    62     };
       
    63 
       
    64 #endif // CESMRTITLEPANEHANDLER_H
       
    65 
       
    66 // End of file
       
    67