Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: mchfdiscoveryservice.h
Link against: chf.lib

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

Class MCHFDiscoveryService

class MCHFDiscoveryService;

Description

Base interface used for the CHF discovery service.

This is also the interface that must be provided by applications that use the discovery service. This allows applications to hook into the discovery service and provide CCHFDataSupplier and CCHFContentHandler objects directly.

Members

Defined in MCHFDiscoveryService:
ContentHandlerL(), DataSupplierL(), MCHFDiscoveryService_Reserved_1(), MCHFDiscoveryService_Reserved_2(), MCHFDiscoveryService_Reserved_3(), MCHFDiscoveryService_Reserved_4()


Member functions


DataSupplierL()

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

Description

Finds a data supplier for a given URI.

Parameters

const TDesC8 &aUri

A URI of the resource that you wish the data supplier to retrieve.

TUint aBufferSizeInBytes

The size of the buffer that the data supplier should use when retrieving data

Return value

CCHFDataSupplier *

A pointer to the data supplier that was found. NULL is returned if no data supplier could be found


ContentHandlerL()

virtual CCHFContentHandler *ContentHandlerL(const TCHFContentHandlerParams &aContentHandlerParams)=0;

Description

Finds a content handler based on the Content Type part of passed in parameters.

Parameters

const TCHFContentHandlerParams &aContentHandlerParams

A class encapsulating the initial parameters of a content handler. The data supplier is passed across so that the new content handler owns it. It should only do this if it sucessfully creates the content handler. If a content handler could not be found or the function leaves, then the data supplier is still owned by the caller.

Return value

CCHFContentHandler *

A pointer to the content handler that was found. NULL is returned if no content handler could be found.


MCHFDiscoveryService_Reserved_1()

private: virtual IMPORT_C void MCHFDiscoveryService_Reserved_1();

Description


MCHFDiscoveryService_Reserved_2()

private: virtual IMPORT_C void MCHFDiscoveryService_Reserved_2();

Description


MCHFDiscoveryService_Reserved_3()

private: virtual IMPORT_C void MCHFDiscoveryService_Reserved_3();

Description


MCHFDiscoveryService_Reserved_4()

private: virtual IMPORT_C void MCHFDiscoveryService_Reserved_4();

Description