Location:
cchfdiscoveryservice.h
Link against: chf.lib
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
:
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()
virtual CCHFDataSupplier *DataSupplierL(const TDesC8 &aUri, TUint aBufferSizeInBytes);
Description
Finds a data supplier for a given URI.
Parameters
Return value
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
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
|
|
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.
|
|