Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: cchfdiscoveryservice.h
Link against: chf.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

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:
AddProxySessionObjectL(), ContentHandlerL(), DataSupplierL(), ProxySessionObject()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from MCHFDiscoveryService:
MCHFDiscoveryService_Reserved_1(), MCHFDiscoveryService_Reserved_2(), MCHFDiscoveryService_Reserved_3(), MCHFDiscoveryService_Reserved_4()


Member functions


DataSupplierL()

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 *


ContentHandlerL()

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 *


AddProxySessionObjectL()

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()

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.