2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Handle softkeys updates
19 #ifndef BRCTLSOFTKEYSOBSERVER_H
20 #define BRCTLSOFTKEYSOBSERVER_H
27 * Identifies which softkey is to be used
31 EKeyRight, ///< Use the right softkey
32 EKeyLeft ///< Use the left softkey
35 enum TBrCtlSoftkeyChangeReason
37 EChangeReasonElementType,
43 * The MBrCtlSoftkeysObserver class handles requests to change the softkeys.
48 * #include <brctlsoftkeysobserver.h>
51 * @see S60 Platform: Browser Control API Developer's Guide Version 2.0
52 * @lib BrowserEngine.lib
53 * @file brctlsoftkeysobserver.h
56 class MBrCtlSoftkeysObserver
58 public: // New functions
61 * Requests the host application to change a softkey.
62 * The host application may or may not change the softkey.
64 * @param aKeySoftkey Determines whether to update the left softkey or the right softkey.
66 * EKeyRight to update the right softkey
67 * EKeyLeft to update the left softkey
68 * @param aLabel The label associated with the softkey update
69 * @param aCommandId The command to use if the softkey is selected by the user
70 * @param aBrCtlSoftkeyChangeReason Reason for the softkey change
71 * Value: EChangeReasonIdle (The other values are reserved for future use.)
74 virtual void UpdateSoftkeyL(TBrCtlKeySoftkey aKeySoftkey,
77 TBrCtlSoftkeyChangeReason aBrCtlSoftkeyChangeReason) = 0;
80 #endif // BRCTLSOFTKEYSOBSERVER_H