MBrCtlWindowObserver Class Reference

#include <mw/brctlwindowobserver.h>

class MBrCtlWindowObserver
Public Member Functions
pure virtual CBrCtlInterface *FindWindowL(const TDesC &)
pure virtual voidHandleWindowCommandL(const TDesC &, TBrCtlWindowCommand)
pure virtual CBrCtlInterface *OpenWindowL(TDesC &, TDesC *, TBool, TAny *)

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
 @lib BrowserEngine.lib
 @since 3.0
 @file brctlwindowobserver.h
*

Member Function Documentation

FindWindowL ( const TDesC & )

CBrCtlInterface *FindWindowL(const TDesC &aTargetName)const [pure virtual]
Find a window by target name
Since
3.0
Parameters
aTargetNamename of the window to find
Return Value
Return Value is the browser control associated with the window name

HandleWindowCommandL ( const TDesC &, TBrCtlWindowCommand )

voidHandleWindowCommandL(const TDesC &aTargetName,
TBrCtlWindowCommandaCommand
)[pure virtual]
Handle window events such as close/focus etc
Since
3.0
Parameters
aTargetNamename of the window to send the event to
aCommandCommand to pass to the window
Return Value
void

OpenWindowL ( TDesC &, TDesC *, TBool, TAny * )

CBrCtlInterface *OpenWindowL(TDesC &aUrl,
TDesC *aTargetName,
TBoolaUserInitiated,
TAny *aReserved
)[pure virtual]
Request the host applicaion to open the URL in a new window
Since
3.0
Parameters
aUrlThe Url of the request to be done in the new window
aTargetNameThe name of the new window
aUserInitiatedETrue if the new window is initiated by a user event (click)
aReservedFor future use
Return Value
Return Value is the new browser control associated with the new window