CSenHostletConnection Class Reference

Link against: senhostconn.lib


#include <
SenHostletConnection.h>

Public Member Functions

virtual TInt RespondL (MSenHostletResponse &aResponse)=0
 Method for responding to incoming message.
virtual TInt Identifier ()=0
 Getter for the identifier of this connection.

Static Public Member Functions

static IMPORT_C CSenHostletConnectionNewL (MSenHostlet &aProvider)
 Constructs a new hostlet connection, utilizing the service description provided by MSenHostlet::ServiceDescriptionL() callback implementation.
static IMPORT_C CSenHostletConnectionNewLC (MSenHostlet &aProvider)
 Constructs a new hostlet connection, utilizing the service description provided by MSenHostlet::ServiceDescriptionL() callback implementation.

Protected Member Functions

 CSenHostletConnection ()
 C++ default constructor.

Constructor & Destructor Documentation

CSenHostletConnection::CSenHostletConnection  )  [protected]
 

C++ default constructor.


Member Function Documentation

virtual TInt CSenHostletConnection::Identifier  )  [pure virtual]
 

Getter for the identifier of this connection.

Returns:
the identifier as integer.
static IMPORT_C CSenHostletConnection* CSenHostletConnection::NewL MSenHostlet aProvider  )  [static]
 

Constructs a new hostlet connection, utilizing the service description provided by MSenHostlet::ServiceDescriptionL() callback implementation.

Leave codes:

  • KErrSenEndpointReserved if the endpoint specified in hostlet implementation already exists and is reserved for some other use (hostlet).
    Returns:
    a pointer to a newly created hostlet connection
static IMPORT_C CSenHostletConnection* CSenHostletConnection::NewLC MSenHostlet aProvider  )  [static]
 

Constructs a new hostlet connection, utilizing the service description provided by MSenHostlet::ServiceDescriptionL() callback implementation.

Leave codes:

  • KErrSenEndpointReserved if the endpoint specified in hostlet implementation already exists and is reserved for some other use (hostlet).
    Returns:
    a pointer to a newly created hostlet connection, which is also left on the cleanup stack.
virtual TInt CSenHostletConnection::RespondL MSenHostletResponse aResponse  )  [pure virtual]
 

Method for responding to incoming message.

This asynchronous method will send a response for the request that was received by the hostlet implementation in the ServiceL callback. After the response has been delivered to service consumer who made the request, the following callback will be invoked: MSenHostlet::OnServiceCompleteL

Returns:
KErrNone, if response was successfully pre-processed by the hostlet connection - it does not mean, that it was yet received by the consumer, as this method is asynchronous. If the response cannot be processed, some system-wide error code is returned. KErrAlreadyExists, if response was already provided for this request

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2007
Back to top