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.
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.
|
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.
|