Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

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:


Member functions


DataSupplierL(const TDesC8 &,TUint)

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(const TCHFContentHandlerParams &)

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: IMPORT_C virtual void MCHFDiscoveryService_Reserved_1();

Description


MCHFDiscoveryService_Reserved_2()

private: IMPORT_C virtual void MCHFDiscoveryService_Reserved_2();

Description


MCHFDiscoveryService_Reserved_3()

private: IMPORT_C virtual void MCHFDiscoveryService_Reserved_3();

Description


MCHFDiscoveryService_Reserved_4()

private: IMPORT_C virtual void MCHFDiscoveryService_Reserved_4();

Description