#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
MCHFDiscoveryService
- Base interface used for the CHF discovery service.
CBase
-
Base class for all classes to be instantiated on the heap.
CCHFDiscoveryService
- The interface for the CHF discovery service.
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
Return value
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
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
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.
|
|