MBrCtlWindowObserver Class Reference

API published in: S60 2nd Ed FP 3

Link against: browserengine.lib

Capability Information

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

Detailed Description

The MBrCtlWindowObserver class handles window events such open/close/etc.

Usage:

  #include <BrCtlWindowObserver.h>

 @see S60 Platform: Browser Control API Developer's Guide Version 2.0
 
 
 @file BrCtlWindowObserver.h
*

Public Member Functions

virtual CBrCtlInterface OpenWindowL (TDesC &aUrl, TDesC *aTargetName, TBool aUserInitiated, TAny *aReserved)=0
  Request the host applicaion to open the URL in a new window.
virtual CBrCtlInterface FindWindowL (const TDesC &aTargetName) const =0
  Find a window by target name.
virtual void  HandleWindowCommandL (const TDesC &aTargetName, TBrCtlWindowCommand aCommand)=0
  Handle window events such as close/focus etc.

Member Function Documentation

virtual CBrCtlInterface* MBrCtlWindowObserver::FindWindowL const TDesC &  aTargetName  )  const [pure virtual]
 

Find a window by target name.

Parameters:
aTargetName  name of the window to find
Returns:
Return Value is the browser control associated with the window name
virtual void MBrCtlWindowObserver::HandleWindowCommandL const TDesC &  aTargetName,
TBrCtlWindowCommand  aCommand
[pure virtual]
 

Handle window events such as close/focus etc.

Parameters:
aTargetName  name of the window to send the event to
aCommand  Command to pass to the window
Returns:
void
virtual CBrCtlInterface* MBrCtlWindowObserver::OpenWindowL TDesC &  aUrl,
TDesC *  aTargetName,
TBool  aUserInitiated,
TAny *  aReserved
[pure virtual]
 

Request the host applicaion to open the URL in a new window.

Parameters:
aUrl  The Url of the request to be done in the new window
aTargetName  The name of the new window
aUserInitiated  ETrue if the new window is initiated by a user event (click)
aMethod  The method to be used for fetching the supplied url
aContentType  If the method is POST, this is the content type of the data to be posted
aPostData  If the method is POST, this is the data to be posted
aBoundary  The boundary used if the content is multipart/form-data
aReserved  For future use
Returns:
Return Value is the new browser control associated with the new window

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top