Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <cchfdiscoveryservice.h>
Link against: chf.lib
This item is not part of the S60 5th Edition SDK

Class CCHFDiscoveryService

class CCHFDiscoveryService : public CBase, public MCHFDiscoveryService;

Description

The interface for the CHF discovery service.

This service is used to create CCHFContentHandlers and CCHFDataSuppliers. The interface uses a hook, MCHFDiscoveryService, that should be provided by the application to filter any requests before ECom is used to discovery an appropriate handler.

Derivation

Members

Defined in CCHFDiscoveryService:

Inherited from CBase:


Member functions


DataSupplierL(const TDesC8 &,TUint)

virtual CCHFDataSupplier* DataSupplierL(const TDesC8 &aUri, TUint aBufferSizeInBytes);

Description

Finds a data supplier for a given URI.

Parameters

const TDesC8 &aUri

TUint aBufferSizeInBytes

Return value

CCHFDataSupplier *

See also:


ContentHandlerL(const TCHFContentHandlerParams &)

virtual CCHFContentHandler* ContentHandlerL(const TCHFContentHandlerParams &aContentHandlerParams);

Description

Finds a content handler for a given data supplier.

Parameters

const TCHFContentHandlerParams &aContentHandlerParams

Structure containing the required parameters for a Content Handler

Return value

CCHFContentHandler *

See also:


AddProxySessionObjectL(CCHFProxySessionObject *)

IMPORT_C void AddProxySessionObjectL(CCHFProxySessionObject *aObject);

Description

Add a proxy session object. These are used to encapsulate a shared object that may be used by multiple data suppliers or content handlers.

Parameters

CCHFProxySessionObject *aObject

A shared object to store

Leave codes

KErrNoMemory

if no memory could be allocated to store the object.

KErrCHFProxyObjectAlreadyExists

if an object with the same identifier already exists


ProxySessionObject(const TUid &,CCHFProxySessionObject *&)const

IMPORT_C TInt ProxySessionObject(const TUid &aProxyObjectIdentifier, CCHFProxySessionObject *&aProxyObject) const;

Description

Gets a proxy session object.

Parameters

const TUid &aProxyObjectIdentifier

A UID that identifies the object being requested

CCHFProxySessionObject *&aProxyObject

The object requested

Return value

TInt

An error code. KErrNotFound if the object doesn't exist.