MBrCtlLinkResolver Class Reference

#include <mw/brctllinkresolver.h>

class MBrCtlLinkResolver
Public Member Functions
pure virtual voidCancelAll()
pure virtual TBool ResolveEmbeddedLinkL(const TDesC &, const TDesC &, TBrCtlLoadContentType, MBrCtlLinkContent &)
pure virtual TBool ResolveLinkL(const TDesC &, const TDesC &, MBrCtlLinkContent &)

Detailed Description

The MBrCtlLinkResolver class provides the content of an embedded link or the content of a load request that was initiated by the user. This class is used when the host application stores markup text or other information in a private store. For example, this class could be used for e-mail applications.

Usage:

  #include <brctllinkresolver.h>

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

Member Function Documentation

CancelAll ( )

voidCancelAll()[pure virtual]
Cancel all outstanding resolving operations
Since
2.8
Return Value
void

ResolveEmbeddedLinkL ( const TDesC &, const TDesC &, TBrCtlLoadContentType, MBrCtlLinkContent & )

TBool ResolveEmbeddedLinkL(const TDesC &aEmbeddedUrl,
const TDesC &aCurrentUrl,
TBrCtlLoadContentTypeaLoadContentType,
MBrCtlLinkContent &aEmbeddedLinkContent
)[pure virtual]
Browser plug-in calls this method when embedded link is found. Used with ECapabilityClientResolveEmbeddedURL
Since
2.8
Attention:

The host application makes this request by setting the ECapabilityClientResolveEmbeddedURL function.

Parameters
aEmbeddedUrlThe url of the embedded content
aCurrentUrlThe url of the current page
aLoadContentTypeType of the embedded content Values: One of the following: ELoadContentTypeAny, ELoadContentTypeMarkup, ELoadContentTypeImage ELoadContentTypeCss, ELoadContentTypeJavascript, ELoadContentTypePlug-in
aEmbeddedLinkContenta callback interface to return the embedded content
Return Value
ETrue if the host application resolves the link. EFalse if the host application does not resolve the link.

ResolveLinkL ( const TDesC &, const TDesC &, MBrCtlLinkContent & )

TBool ResolveLinkL(const TDesC &aUrl,
const TDesC &aCurrentUrl,
MBrCtlLinkContent &aBrCtlLinkContent
)[pure virtual]
Browser plug-in calls this method when the user requests to load content via selecting a link, or any other way. Used with ECapabilityClientNotifyURL
Since
2.8
Attention:

The host application requests that the browser plug-in call this function to load new content by setting the ECapabilityClientNotifyURL function.

Parameters
aUrlThe requested url
aCurrentUrlThe url of the current page
aBrCtlLinkContenta callback interface to return the embedded content
Return Value
ETrue if the host application resolves the link. EFalse if the host application does not resolve the link.