MBrCtlDialogsProvider Class Reference

class MBrCtlDialogsProvider

The MBrDialogsProvider class provides functions implemented by the Browser Control to display dialogs, such as error notifications, authentication requests, and selection lists.

Usage:

  #include <brctldialogsprovider.h>


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

Member Functions Documentation

CancelAll()

voidCancelAll()[pure virtual]
Cancels the dialog displayed due to browser exit or destroyed pages.
Since
2.8

DialogAlertL(const TDesC &, const TDesC &)

voidDialogAlertL(const TDesC &aTitle,
const TDesC &aMessage
)[pure virtual]
Display a note to the user with ok softkey only
Since
2.8
Attention:

The OK softkey is supported. The message displays until the user presses OK.

Parameters

const TDesC & aTitleThe title, could be empty
const TDesC & aMessageThe message to display

DialogConfirmL(const TDesC &, const TDesC &, const TDesC &, const TDesC &)

TBool DialogConfirmL(const TDesC &aTitle,
const TDesC &aMessage,
const TDesC &aYesMessage,
const TDesC &aNoMessage
)[pure virtual]
Display confirmation message to the user. For example, Are you sure you want to delete this?
Since
2.8

Parameters

const TDesC & aTitleThe title, could be empty
const TDesC & aMessageThe message to display
const TDesC & aYesMessageThe text to display on left softkey
const TDesC & aNoMessageThe text to display on right softkey

DialogDisplayPageImagesL(CArrayFixFlat< TBrCtlImageCarrier > &)

voidDialogDisplayPageImagesL(CArrayFixFlat< TBrCtlImageCarrier > &aPageImages)[pure virtual]
Display the images that appear in the current page
Since
2.8

Parameters

CArrayFixFlat< TBrCtlImageCarrier > & aPageImagesArray describing the images that appear in the current page. The array contains the following elements for each image: Image data URL of the image Title for the image Image type If the image type is WBMP or OTA, it must be specified. Symbian can detect any other image type.

DialogDownloadObjectL(CBrCtlObjectInfo *)

TBool DialogDownloadObjectL(CBrCtlObjectInfo *aBrCtlObjectInfo)[pure virtual]
Displays information about the Netscape plug-in object and requests confirmation before downloading the object.
Since
2.8

Parameters

CBrCtlObjectInfo * aBrCtlObjectInfoInformation about the object to be downloaded. The following information is passes as part of this object: Content type Size Flag to indicate whether a viewer application exists for this content Flag to indicate whether a Netscape plug-in exists that supports this content Name of the application or Netscape plug-in with which the content can be viewed on the mobile phone

DialogFileSelectLC(const TDesC &, const TDesC &, HBufC *&)

TBool DialogFileSelectLC(const TDesC &aStartPath,
const TDesC &aRootPath,
HBufC *&aSelectedFileName
)[pure virtual]
Navigates through your file system and selects a file; analogous to the Browse command in Windows.
Since
2.8

Parameters

const TDesC & aStartPathThe initial displayed directory
const TDesC & aRootPathThe top most directory that the user can go up to
HBufC *& aSelectedFileNameThe selected file name.

DialogFindL()

voidDialogFindL()[pure virtual]
Displays a dialog for searching on the page.
Since
3.0

DialogNoteL(const TDesC &)

voidDialogNoteL(const TDesC &aMessage)[pure virtual]
Displays a message to the user. For example, the message may inform the user about an error encountered while processing a request.
Since
2.8
Attention:

Softkeys are not supported. The message disappears after a time out.

Parameters

const TDesC & aMessageThe message to display

DialogNotifyErrorL(TInt)

voidDialogNotifyErrorL(TIntaErrCode)[pure virtual]
Notifies the user of an error encountered during a download. Some examples are: insufficient memory, unrecognized URL, and DNS not found.
Since
2.8

Parameters

TInt aErrCodeThe error that occured

DialogNotifyHttpErrorL(TInt, const TDesC &)

voidDialogNotifyHttpErrorL(TIntaErrCode,
const TDesC &aUri
)[pure virtual]
Notifies the user of an error from the HTTP server during a download. Some examples are: file not found, redirect error.
Since
2.8

Parameters

TInt aErrCodeThe error that occured
const TDesC & aUriThe uri of the request that failed

DialogPromptLC(const TDesC &, const TDesC &, const TDesC &, HBufC *&)

TBool DialogPromptLC(const TDesC &aTitle,
const TDesC &aMessage,
const TDesC &aDefaultInput,
HBufC *&aReturnedInput
)[pure virtual]
Displays an input dialog to the user. Asks the user to input data.
Since
2.8
Attention:

Returned on the cleanup stack.

Parameters

const TDesC & aTitleThe title, could be empty
const TDesC & aMessageThe message to display
const TDesC & aDefaultInputThe default input if available
HBufC *& aReturnedInputThe input entered by the user.

DialogSelectOptionL(const TDesC &, TBrCtlSelectOptionType, CArrayFix< TBrCtlSelectOptionData > &)

TBool DialogSelectOptionL(const TDesC &aTitle,
TBrCtlSelectOptionTypeaBrCtlSelectOptionType,
CArrayFix< TBrCtlSelectOptionData > &aOptions
)[pure virtual]
List selection dialog
Since
2.8

Parameters

const TDesC & aTitle
TBrCtlSelectOptionType aBrCtlSelectOptionTypeThe type of the list box. Values: One of the following: Check boxes (multiple selections allowed) Radio buttons (single selection only). For example, highlight a URL listed in the session History. No buttons (single selection only) No buttons (single selection only), OK softkey available For example, if you are about to download a plug-in, you can choose to display the content in the Web page or in a viewer application.
CArrayFix< TBrCtlSelectOptionData > & aOptionsA list of options to display

DialogUserAuthenticationLC(const TDesC &, const TDesC &, const TDesC &, HBufC *&, HBufC *&, TBool)

TBool DialogUserAuthenticationLC(const TDesC &aUrl,
const TDesC &aRealm,
const TDesC &aDefaultUserName,
HBufC *&aReturnedUserName,
HBufC *&aReturnedPasswd,
TBoolaBasicAuthentication = EFalse
)[pure virtual]
User Authentication dialog.
Since
2.8

Parameters

const TDesC & aUrlThe url requiring authentication
const TDesC & aRealmThe realm requiring authentication
const TDesC & aDefaultUserNameThe user name that was used before for this realm and path, if any
HBufC *& aReturnedUserNameThe user name entered by the user
HBufC *& aReturnedPasswdThe password entered by the user
TBool aBasicAuthentication = EFalseETrue if basic authentication is required. EFalse if another type of authentication is required; for example, Digest. Default: EFalse