williamr@2: /* williamr@2: * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Enum Definition of the Browser Control API williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef BRCTLDEFS_H williamr@2: #define BRCTLDEFS_H williamr@2: williamr@2: // INCLUDES williamr@2: williamr@2: // DATA TYPES williamr@2: williamr@2: // FORWARD DECLARATIONS williamr@2: williamr@2: // EXPORTED FUNCTION williamr@2: williamr@2: /** williamr@2: * The TBrCtlDefs class contains definitions of custom data types for the Browser Control API. williamr@2: * williamr@2: * Usage: williamr@2: * williamr@2: * @code williamr@4: * #include williamr@2: * williamr@2: * @see S60 Platform: Browser Control API Developer's Guide Version 2.0 williamr@2: * @lib BrowserEngine.lib williamr@2: * @since 3.0 williamr@4: * @file brctldefs.h williamr@2: * @endcode * williamr@2: */ williamr@2: class TBrCtlDefs williamr@2: { williamr@2: public: williamr@2: /** williamr@2: * The Browser Control uses 600 command IDs, whose default williamr@2: * range is from 15000 - 15600. The host application can specify williamr@2: * any desired range through the API. williamr@2: */ williamr@2: enum TBrCtlCommandId williamr@2: { williamr@2: ECommandIdBrowserBase = 0, ///< The base Browser ID. williamr@2: ECommandIdSubscribeToBase = 90, ///< The SubscribeToBase ID. williamr@2: ECommandIdPluginBase = 100, ///< The base plug-in ID. williamr@2: ECommandIdWMLBase = 300, ///< The base WML ID. williamr@2: ECommandIdRange = 600, ///< The maximum number of command IDs. williamr@2: ECommandIdBase = 15000 ///< The base value for the command IDs. williamr@2: williamr@2: }; williamr@2: /** williamr@2: * Rules that determine in which mode the cache operates. williamr@2: */ williamr@2: enum TBrCtlCacheMode williamr@2: { williamr@2: /** williamr@2: * Normal caching operation. williamr@2: * If the requested entity is in the cache and it has not expired, williamr@2: * get it from the cache. If the requested entity is not in the cache, williamr@2: * or if it has expired, the browser should request it from the server. williamr@2: */ williamr@2: ECacheModeNormal = 0, williamr@2: /** williamr@2: * If the requested entity is in the cache, get it from the cache williamr@2: * even if it has expired. If the requested entity is not in the cache, williamr@2: * the browser should request it from the server. williamr@2: */ williamr@2: ECacheModeHistory, williamr@2: /** williamr@2: * The browser should request the content from the server even if it is in the cache. williamr@2: */ williamr@2: ECacheModeNoCache, williamr@2: /** williamr@2: * If the requested entity is in the cache, get it from the cache williamr@2: * even if it has expired. If the requested entity is not in the cache, williamr@2: * return an error. williamr@2: */ williamr@2: ECacheModeOnlyCache williamr@2: }; williamr@2: /** williamr@2: * The host application can send these commands williamr@2: * to the Browser Control by calling the HandleCommandL function. williamr@2: * @attention The host application should define the base for the command williamr@2: * IDs and add that base to the enum value of each command. williamr@2: */ williamr@2: enum TBrCtlCommands williamr@2: { williamr@2: ECommandDisconnect = 0, ///< Unloads the HTTP Framework williamr@2: ECommandCancelFetch, ///< Cancels all outstanding requests williamr@2: ECommandOpen, ///< Activates the focused element williamr@2: ECommandReload, ///< Reloads the current page williamr@2: ECommandBack, ///< Loads the previous page, if available williamr@2: /** williamr@2: * Loads the next page. This command is used only to return williamr@2: * to the next page after going back to a previous page. williamr@2: */ williamr@2: ECommandForward, williamr@2: ECommandClearHistory, ///< Clears the history stack williamr@2: /** williamr@2: * Shows a list of history entries. Do not use this parameter if williamr@2: * LoadDataL or InitLoadDataL are used. williamr@2: */ williamr@2: ECommandShowHistory, williamr@2: ECommandAccept, ///< Accepts the input data in the editor. williamr@2: /** williamr@2: * Cancels the input data in the editor. Sets the focus back williamr@2: * on the browser after the focus is shifted to a plug-in. williamr@2: */ williamr@2: ECommandCancel, williamr@2: ECommandOpenToViewer, ///< Opens object data in an external viewer williamr@2: /** williamr@2: * Adds the contact information of the link currently selected to williamr@2: * the phone book williamr@2: */ williamr@2: ECommandAddToPhoneBook, williamr@2: /** williamr@2: *Makes a phone call using the phone number in the link currently selected williamr@2: */ williamr@2: ECommandMakeCall, williamr@2: ECommandRemoveFileName, ///< Removes the file name from a file selection box williamr@2: ECommandShowImages, ///< Shows a list of the images in the current page williamr@2: ECommandLoadImages, ///< Loads images when automatic image loading is turned off williamr@2: ECommandGainFocus, ///< Called when the Browser Control returns from background williamr@2: ECommandLoseFocus, ///< Called when the Browser Control goes to the background williamr@2: /** williamr@2: * Do not call this parameter. It is a base for the next three commands. williamr@2: */ williamr@2: ECommandFindItem, williamr@2: /** williamr@2: * Displays the FindItem dialog and highlights all of the williamr@2: * phone numbers in the current page. Use this parameter only williamr@2: * if you specified the ECapabilityFindItem capability. williamr@2: */ williamr@2: ECommandFindItemPhoneNumber, williamr@2: /** williamr@2: * Displays the FindItem dialog and highlights all of the e-mail williamr@2: * addresses in the current page. Use this parameter only if you williamr@2: * specified the ECapabilityFindItem capability. williamr@2: */ williamr@2: ECommandFindItemEMail, williamr@2: /** williamr@2: * Displays the FindItem dialog and highlights all of the URLs in williamr@2: * the current page. Use this parameter only if you specified williamr@2: * the ECapabilityFindItem capability. williamr@2: */ williamr@2: ECommandFindItemAddress, williamr@2: ECommandFindKeyword, ///< Reserved for future use. williamr@2: ECommandClearFind, ///< Reserved for future use. williamr@2: ECommandShowThumbnailView, ///< Reserved for future use. williamr@2: ECommandShowDownloads, ///< Tells the Download Manager to display the list of downloads. williamr@2: /** williamr@2: * Saves the following launch parameters when the application williamr@2: * unexpectedly shuts down. These parameters all have the prefix ESettingsLaunch: williamr@2: * AppUid, ViewId, CustomMessageId williamr@2: * When the phone reboots, it uses these parameters to restart williamr@2: * the host application and resume the interrupted downloads. williamr@2: * NOTE: These parameters must be set before calling this command. williamr@2: */ williamr@2: ECommandSaveLaunchParams, williamr@2: ECommandOneStepBack, ///< Reserved for future use. williamr@2: ECommandAppForeground, ///< williamr@2: ECommandAppBackground, ///< williamr@2: ECommandOpenNewWindow, ///< williamr@2: ECommandClearAutoFormFillData, ///< williamr@2: ECommandClearAutoFormFillPasswordData, ///< williamr@2: ECommandFreeMemory, ///< williamr@2: ECommandMemoryGood, ///< williamr@2: ECommandDumpRenderTree, ///< williamr@2: ECommandUnloadWMLEngine, ///< williamr@2: ECommandSmartLinkMakeCall, ///< williamr@2: ECommandSmartLinkSendMessage, ///< williamr@2: ECommandSmartLinkAddToPhoneBook, ///< williamr@2: ECommandShowToolBar, /// element williamr@2: * 4. Detected from HTTP headers williamr@2: * 5. Variant-specific default character set for automatic detection. williamr@2: * Possible character codings are: williamr@2: * Latin williamr@2: * Simplified Chinese williamr@2: * Traditional Chinese williamr@2: * Unicode (UTF-8) williamr@2: * Unicode (ucs-2) williamr@2: * ISO 8859 - 2,4,5,7,or 9 williamr@2: * Hebrew (ISO-Logical) williamr@2: * Hebrew (ISO-Visual) williamr@2: * Hebrew (Windows) williamr@2: * Arabic (ISO) williamr@2: * Arabic (Windows) williamr@2: * Windows - 1250, 1251, 1253, 1254, or 1257 williamr@2: * Thai williamr@2: * Thai (Windows 874) williamr@2: * Shift_jis williamr@2: * Euc-jp williamr@2: * ISO-2022-jp williamr@2: * The default value is variant-specific. williamr@2: */ williamr@2: ESettingsCharacterset, williamr@2: /** williamr@2: * URL of the initial page. Tells the williamr@2: * Browser Control to send the referrer header in the request. williamr@2: */ williamr@2: ESettingsSendRefererHeader, williamr@2: /** williamr@2: * One of the following: williamr@2: * Certificate not valid yet williamr@2: * Server certificate expired williamr@2: * Server certificate not received williamr@2: * Invalid server certificate williamr@2: * Authority certificate not valid yet williamr@2: * Authority certificate expired williamr@2: * Authority certificate not found williamr@2: * Authority certificate corrupted williamr@2: */ williamr@2: ESettingsSecurityWarnings, williamr@2: /** williamr@2: * Default access point for the Browser Control to use when williamr@2: * connecting to the network. williamr@2: */ williamr@2: ESettingsApId, williamr@2: ESettingsCurrentZoomLevelIndex, ///< Reserved for future use. williamr@2: ESettingsPageOverview, ///< Reserved for future use. williamr@2: ESettingsNumOfDownloads, ///< Number of downloads in progress. williamr@2: /** williamr@2: * UID of the application to williamr@2: * restart after a reboot in order to continue an interrupted download. williamr@2: */ williamr@2: ESettingsLaunchAppUid, williamr@2: /** williamr@2: * View ID of the application to williamr@2: * restart after a reboot in order to continue an interrupted download. williamr@2: */ williamr@2: ESettingsLaunchViewId, williamr@2: /** williamr@2: * Message that asks the user whether to resume the download. williamr@2: */ williamr@2: ESettingsLaunchCustomMessageId, ///< Reserved for future use. williamr@2: ESettingsBackList, ///< Reserved for future use. williamr@2: ESettingsAutoRefresh, ///< Reserved for future use. williamr@2: /** williamr@2: * If set, the browser encodes URLs using UTF-8 instead of williamr@2: * the original content encoding. williamr@2: * @attention This is recommended only for the APAC region. williamr@2: */ williamr@2: ESettingsBrowserUtf8Encoding, williamr@2: ESettingsAutoFormFillEnabled, ///< For enabling the auto fill williamr@2: ESettingsSavedPage, ///< Save the page williamr@2: ESettingsSmartLink, williamr@2: ESettingsAutoOpenDownloads, // For automatically open the downloaded files williamr@2: ESettingsDisableFlash, ///