browserui/browser/BrowserAppInc/BrowserSoftkeysObserver.h
branchRCL_3
changeset 65 8e6fa1719340
equal deleted inserted replaced
64:6385c4c93049 65:8e6fa1719340
       
     1 /*
       
     2 * Copyright (c) 2004 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 the License "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:  Handle softkeys updates
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef BROWSERSOFTKEYSOBSERVER_H
       
    21 #define BROWSERSOFTKEYSOBSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <brctlsoftkeysobserver.h>
       
    25 #include "WmlBrowserBuild.h"
       
    26 
       
    27 class CBrowserWindow;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  This observer is notified when the browser requests softkeys changes
       
    33 *
       
    34 *  @lib BrowserEngine.lib
       
    35 *  @since 2.8
       
    36 */
       
    37 class CBrowserSoftkeysObserver : public CBase, public MBrCtlSoftkeysObserver
       
    38     {
       
    39     public: // Constructors and destructors
       
    40 
       
    41         /**
       
    42         * Constructor.
       
    43         * @since 2.8
       
    44         * @param aView Owner AppUi.
       
    45         */
       
    46         static CBrowserSoftkeysObserver* NewL(
       
    47             CBrowserWindow& aWindow );
       
    48             
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CBrowserSoftkeysObserver();
       
    53 
       
    54     public: // From MBrCtlSoftkeysObserver
       
    55         
       
    56         /**
       
    57         * Browser Control requests to update a softkey
       
    58         * @since 2.8
       
    59         * @param aKeySoftkey Update the left softkey or the right softkey
       
    60         * @param aLabel The label associated with the softkey update
       
    61         * @param aCommandId The command to use if the softkey is selected by the user
       
    62         * @param aBrCtlSoftkeyChangeReason The reason for the softkey change
       
    63         * @return void
       
    64         */
       
    65         virtual void UpdateSoftkeyL( TBrCtlKeySoftkey aKeySoftkey,
       
    66                                      const TDesC& aLabel,
       
    67                                      TUint32 aCommandId,
       
    68                                      TBrCtlSoftkeyChangeReason aReason );
       
    69 
       
    70     protected: // new functions
       
    71 
       
    72         /**
       
    73         * Default C++ constructor.
       
    74         */
       
    75         CBrowserSoftkeysObserver(
       
    76             CBrowserWindow& aWindow  );
       
    77 
       
    78         /**
       
    79         * 2nd phase constructor. Leaves on failure.
       
    80         */
       
    81         void ConstructL();
       
    82 
       
    83     private: // data members
       
    84 
       
    85         CBrowserWindow* iWindow;     // not owned
       
    86 
       
    87     };
       
    88 
       
    89 #endif      // BROWSERSOFTKEYSOBSERVER_H
       
    90 
       
    91 // End of File