CSenHostletConnection Class Reference

#include <mw/SenHostletConnection.h>

Link against: SenHostConn.lib

class CSenHostletConnection : public CActive

Inherits from

  • CSenHostletConnection

    Constructor & Destructor Documentation

    CSenHostletConnection ( )

    CSenHostletConnection()[protected]

    C++ default constructor.

    Member Function Documentation

    Identifier ( )

    TInt Identifier()[pure virtual]

    Getter for the identifier of this connection.

    Returns: the identifier as integer.

    NewL ( MSenHostlet & )

    IMPORT_C 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

    NewLC ( MSenHostlet & )

    IMPORT_C 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.

    RespondL ( MSenHostletResponse & )

    TInt 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