API published in: S60 2nd Ed FP 3
Link against: browserengine.lib
Required Capabilities
None
Exceptions
NetworkServices capability is required for any operation that results in loading content from the network. For example, calling LoadUrlL() with a url parameter that refers to a network location requires NetworkServices capability if the content is not available from the cache or if the specified cache mode prevents loading the cached version.
#include <brctlinterface.h>
All clients of browser control must use this class. The functions defined in the CBrCtlInterface class implement basic Browser Control functionality. You can customize the Browser Control to extend its functionality by implementing additional interface classes in the host application. Examples of such classes are MBrCtlDataLoadSupplier, MBrCtlDialogsProvider, MBrCtlDialogsProvider etc.
Usage:
#include <BrCtlInterface.h> // Interface that provides dialogs used by the Browser Control. #include <BrCtlDialogsProvider.h> // Interface used to receive scrolling events. #include <BrCtlLayoutObserver.h> //Interface that provides a callback mechanism for receiving the //content of an embedded link or the content of a user-initiated //load request. #include <BrCtlLinkResolver.h> //Interface that handles requests to change the softkeys. #include <BrCtlSoftkeysObserver.h> //Interface that handles special load needs. #include <BrCtlSpecialLoadObserver.h> //Reserved for future use. #include <BrCtlWindowObserver.h> //Interface that passes download events from the //Download Manager through the Browser Control to the //host application. #include <BrCtlDownloadObserver.h> Enum Definition of the Browser Control API. #include <BrCtlDefs.h> The following types of things you can do with the Browser Control API. Creating a basic Browser Control Creating a Browser Control with observer interfaces Loading content Passing content incrementally Receiving load progress events Handling special load requests Customizing dialogs Specifying the softkeys Resolving links Customizing scroll bars Receiving change-of-state events @see S60 Platform: Browser Control API Developer's Guide Version 2.0 @file BrCtlInterface.h
Public Member Functions |
|
virtual | ~CBrCtlInterface () |
Destructor. |
|
virtual IMPORT_C void | HandleCommandL (TInt aCommand)=0 |
Passes a command to the Browser Control. |
|
virtual IMPORT_C TSize | ContentSize ()=0 |
Return the display size that would be needed to see all the content. |
|
virtual IMPORT_C void | SetBrowserSettingL (TUint aSetting, TUint aValue)=0 |
Update a Browser Control setting. |
|
virtual IMPORT_C TUint | BrowserSettingL (TUint aSetting)=0 |
Get a setting from the Browser Control. |
|
virtual IMPORT_C void | LoadDataL (const TDesC &aUrl, const TDesC8 &aData, const TDataType &aDataType, TUid aCharsetUid)=0 |
Request the Browser Control to display the content of a buffer. |
|
virtual IMPORT_C void | InitLoadDataL (const TDesC &aUrl, const TDataType &aDataType, TUid aCharsetUid, TUint aContentLength, MBrCtlDataLoadSupplier *aBrCtlDataLoadSupplier, MBrCtlDataLoadConsumer **aBrCtlDataLoadConsumer)=0 |
Request the Browser Control to display content incrementaly. |
|
virtual IMPORT_C void | LoadUrlL (const TDesC &aUrl, TInt aApId=-1, TBrCtlDefs::TBrCtlCacheMode aBrCtlCacheMode=TBrCtlDefs::ECacheModeNormal)=0 |
Request the Browser Control to load a url. |
|
virtual IMPORT_C void | LoadFileL (const TDesC &aFileName)=0 |
Request the Browser Control to load and display a file from the file system. |
|
virtual IMPORT_C void | LoadFileL (RFile &aFileHandle)=0 |
Request the Browser Control to load and display a file from the file system. |
|
virtual IMPORT_C RPointerArray< TBrCtlWmlServiceOption > * |
WMLOptionMenuItemsL ()=0 |
Return the WML Options for the current page. |
|
virtual IMPORT_C void | AddOptionMenuItemsL (CEikMenuPane &aMenuPane, TInt aResourceId, TInt aAfter=-1)=0 |
Request the Browser Control to add its own options to the option menu. |
|
virtual IMPORT_C TUint | ClearCache ()=0 |
Request the Browser Control to clear the cache. |
|
virtual IMPORT_C TBool | IsUrlInCache (TDesC &aUrl)=0 |
Ask the Browser Control if a URL is in cache. |
|
virtual IMPORT_C TInt | ClearItemInCache (TDesC &aUrl)=0 |
Ask the Browser Control to clear a URL from the cache. |
|
virtual IMPORT_C HBufC * | PageInfoLC (TBrCtlDefs::TBrCtlPageInfo aBrCtlPageInfo)=0 |
Request the Browser Control to return info about the page. |
|
virtual IMPORT_C TBool | NavigationAvailable (TBrCtlDefs::TBrCtlNavigationDirection aDirection)=0 |
From CBrCtlInterface Query the Browser Control if there is a previous or next (depending on aDirection) element in history
stack. |
|
virtual IMPORT_C TUint16 | SaveToFileL (const TDesC &aFileName)=0 |
Request the Browser Control to save the current content to a file. |
|
virtual IMPORT_C const TCertInfo * | CertInfo ()=0 |
Request the Browser Control to pass the server's certificate info for the current page. |
|
virtual IMPORT_C void | AddLoadEventObserverL (MBrCtlLoadEventObserver *aBrCtlLoadEventObserver)=0 |
Request the Browser Control to register for load events. |
|
virtual IMPORT_C void | RemoveLoadEventObserver (MBrCtlLoadEventObserver *aBrCtlLoadEventObserver)=0 |
Request the Browser Control to unregister for load events. |
|
virtual IMPORT_C TInt | ImageCountL ()=0 |
Return the number of images in the current page. |
|
virtual IMPORT_C TBrCtlDefs::TBrCtlElementType | FocusedElementType ()=0 |
Returns the focused element. |
|
virtual IMPORT_C void | AddStateChangeObserverL (MBrCtlStateChangeObserver *aBrCtlStateChangeObserver)=0 |
Register an observer for state changes. |
|
virtual IMPORT_C void | RemoveStateChangeObserver (MBrCtlStateChangeObserver *aBrCtlStateChangeObserver)=0 |
Unregister an observer for state changes. |
|
virtual IMPORT_C HBufC * | VersionInfoLC (TBrCtlDefs::TBrCtlVersionInfo aVersionInfo)=0 |
Request the Browser Control to return info about the Browser Control version. |
|
virtual IMPORT_C void | SetSelfDownloadContentTypesL (TDesC &aContentTypes)=0 |
Pass a list of content types to the Browser Control. |
|
virtual IMPORT_C void | SetParamL (TBrCtlDefs::TBrCtlParams aParam, const TDesC &aValue)=0 |
Update a Browser Control parameter. |
|
virtual IMPORT_C void | LoadSavedPageL (const TDesC &aUid, TDesC &aSavedPageBuffer)=0 |
Request the Browser Control to load a saved page. |
|
virtual IMPORT_C RArray< TUint > * | ZoomLevels () const =0 |
Return the zoom levels index. |
|
virtual IMPORT_C int | FindKeyword (const TDesC &aKeyword)=0 |
Perform the incremental find operation. |
|
virtual IMPORT_C TBrCtlDefs::TBrCtlFindResponse | FindKeywordAgain (TBool aFowardDirection)=0 |
Continue the incremental find operation. |
|
virtual IMPORT_C const RPointerArray< TBrCtlSubscribeTo > & |
SubscribeToMenuItemsL ()=0 |
Return information about the linked feeds in the current page - used to build a "Subscribe to" submenu. |
|
virtual IMPORT_C TSize | MinimumSize ()=0 |
From CCoeControl Return the minimum size the Browser Control can use. |
|
virtual IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)=0 |
From CCoeControl Pass key events to the Browser Control. |
|
virtual IMPORT_C void | SetFocus (TBool aFocus, TDrawNow aDrawNow=ENoDrawNow)=0 |
From CCoeControl Sets that the Browser Control has keyboard focus. |
|
virtual IMPORT_C TBool | OkToExit ()=0 |
virtual IMPORT_C void | HandleDownloadCommandL (TUint16 aTransId, TBrCtlDefs::TBrCtlDownloadCmd aCommand)=0 |
This method calls to download manager in order to send the commands (EDownloadCmdPause,DownloadCmdResume, EDownloadCmdCancel,
EDownloadCmdMarkAsProgressive, EDownloadCmdMarkAsNotProgressive ). |
|
virtual IMPORT_C CGulIcon * | GetBitmapData (const TDesC &aUrl, TBrCtlDefs::TBrCtlBitmapInfo aBitmapInfo)=0 |
Request icon for the given url. |
|
virtual IMPORT_C void | AddCommandObserverL (MBrCtlCommandObserver *aBrCtlCommandObserver)=0 |
Register a client command interface for the browser engine. |
|
virtual IMPORT_C void | RemoveCommandObserver (MBrCtlCommandObserver *aBrCtlCommandObserver)=0 |
Unregister a client command interface for the browser engine. |
|
virtual IMPORT_C MWidgetExtension * | CreateWidgetExtensionL (MWidgetCallback &aWidgetCallback)=0 |
Unregister a client command interface for the browser engine. |
|
virtual IMPORT_C TBrCtlImageCarrier * | FocusedImageLC ()=0 |
Get information about the focused image. |
|
Destructor. |
|
Register a client command interface for the browser engine.
|
|
Request the Browser Control to register for load events.
|
|
Request the Browser Control to add its own options to the option menu.
|
|
Register an observer for state changes.
|
|
Get a setting from the Browser Control.
|
|
Request the Browser Control to pass the server's certificate info for the current page.
|
|
Request the Browser Control to clear the cache.
|
|
Ask the Browser Control to clear a URL from the cache.
|
|
Return the display size that would be needed to see all the content.
|
|
Unregister a client command interface for the browser engine.
|
|
Perform the incremental find operation.
|
|
Continue the incremental find operation.
|
|
Returns the focused element.
|
|
Get information about the focused image. The function leaves if the focus is not on an image
|
|
Request icon for the given url.
|
|
Passes a command to the Browser Control.
|
|
This method calls to download manager in order to send the commands (EDownloadCmdPause,DownloadCmdResume, EDownloadCmdCancel, EDownloadCmdMarkAsProgressive, EDownloadCmdMarkAsNotProgressive ).
|
|
Return the number of images in the current page.
|
|
Request the Browser Control to display content incrementaly.
|
|
Ask the Browser Control if a URL is in cache.
|
|
Request the Browser Control to display the content of a buffer.
|
|
Request the Browser Control to load and display a file from the file system.
|
|
Request the Browser Control to load and display a file from the file system.
|
|
Request the Browser Control to load a saved page.
|
|
Request the Browser Control to load a url.
|
|
From CCoeControl Return the minimum size the Browser Control can use.
|
|
From CBrCtlInterface Query the Browser Control if there is a previous or next (depending on aDirection) element in history stack.
|
|
From CCoeControl Pass key events to the Browser Control.
|
|
|
Request the Browser Control to return info about the page. The info is returned on the Cleanup Stack.
|
|
Unregister a client command interface for the browser engine.
|
|
Request the Browser Control to unregister for load events.
|
|
Unregister an observer for state changes.
|
|
Request the Browser Control to save the current content to a file.
|
|
Update a Browser Control setting.
|
|
From CCoeControl Sets that the Browser Control has keyboard focus.
|
|
Update a Browser Control parameter. consequent calls with the same aParam will replace the value, and not append to it.
|
|
Pass a list of content types to the Browser Control. These content types will not be using the download manager. The list must be separated by ';' e.g. "text/html;text/wml"
|
|
Return information about the linked feeds in the current page - used to build a "Subscribe to" submenu.
|
|
Request the Browser Control to return info about the Browser Control version. The info is returned on the Cleanup Stack.
|
|
Return the WML Options for the current page.
|
|
Return the zoom levels index.
|