wvuing/IMPSServiceSettingsUI/Src/CWVSettingsUIDialogTitlePaneHandler.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Title pane handler
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CWVSETTINGSUIDIALOGTITLEPANEHANDLER_H
       
    19 #define CWVSETTINGSUIDIALOGTITLEPANEHANDLER_H
       
    20 
       
    21 //  INCLUDES
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 class CAknTitlePane;
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29 *  Contains titlepane handling features, that are needed
       
    30 *  in all settingpages.
       
    31 *
       
    32 *  @lib WVServiceSettingsUi.dll
       
    33 *  @since 2.1
       
    34 */
       
    35 NONSHARABLE_CLASS( CWVSettingsUIDialogTitlePaneHandler ) : public CBase
       
    36     {
       
    37 public:  // Constructors and destructor
       
    38 
       
    39     /**
       
    40     * C++ default constructor.
       
    41     */
       
    42     CWVSettingsUIDialogTitlePaneHandler();
       
    43 
       
    44     /**
       
    45     * Destructor.
       
    46     */
       
    47     virtual ~CWVSettingsUIDialogTitlePaneHandler();
       
    48 
       
    49 
       
    50 public:  // New functions - titlepane related
       
    51 
       
    52     /**
       
    53      * Set title pane text from given text.
       
    54      * @since 2.1
       
    55      * @param aTitleText Text to set to title pane,
       
    56      */
       
    57     void SetTitlePaneTextL( const TDesC& aTitleText ) const;
       
    58 
       
    59     void SetTitlePaneDefaultTextL() const;
       
    60 
       
    61     /**
       
    62      * Stores current titlepanetext, so it can be later restored.
       
    63      * Can be called several times, but restoring is done to lastly
       
    64      * stored text.
       
    65      * @since 2.1
       
    66      */
       
    67     void StoreTitlePaneTextL();
       
    68 
       
    69     /**
       
    70      * Restores titlepanetext to previously stored one.
       
    71      * If there isn't any stored title, restores to aplication default.
       
    72      * @since 2.1
       
    73      */
       
    74     void RestoreTitlePaneText() const;
       
    75 
       
    76 private:  // New functions
       
    77 
       
    78     /**
       
    79      * Gets titlepane instance from CEikonEnv
       
    80      * @since 2.1
       
    81      * @return The CAknTitlePane instance.
       
    82      */
       
    83     CAknTitlePane* GetTitlePaneInstanceL() const;
       
    84 
       
    85     /**
       
    86      * Does actual restoring.
       
    87      * @since 2.1
       
    88      */
       
    89     void DoRestoreTitlePaneTextL() const;
       
    90 
       
    91 private:  //data
       
    92     HBufC* iOldTitleText;  //stored title text
       
    93     };
       
    94 
       
    95 #endif      // CWVSettingsUIDIALOGTITLEPANEHANDLER_H
       
    96 
       
    97 
       
    98 //  End of File
       
    99