CSIPRequestElements Class Reference

#include <mw/siprequestelements.h>

Link against: sipclient.lib

class CSIPRequestElements : public CBase

Inherits from

  • CSIPRequestElements

    Detailed Description

    Class provides functions for creation and manipulation of originator's and recipient's addresses in a SIP request. It also provide functions for manipulation of SIP method for unknown SIP requests.

    Constructor & Destructor Documentation

    ~CSIPRequestElements ( )

    IMPORT_C~CSIPRequestElements()

    Destructor.

    Member Function Documentation

    CSeqHeader ( )

    IMPORT_C const CSIPCSeqHeader *CSeqHeader()const

    Gets CSeq-header. Available for only incoming requests.

    Returns: a CSeq-header or a 0-pointer if not present. Ownership is not transferred.

    ExternalizeL ( RWriteStream & )

    voidExternalizeL(RWriteStream &aWriteStream)const

    FromHeader ( )

    IMPORT_C const CSIPFromHeader *FromHeader()const

    Gets the originator's From-header

    Returns: From-header or a 0-pointer if not present. Ownership is not transferred.

    InternalizeL ( RReadStream & )

    CSIPRequestElements *InternalizeL(RReadStream &aReadStream)[static]

    MessageElements ( )

    IMPORT_C const CSIPMessageElements &MessageElements()const

    Gets message elements (contains all SIP user headers and content)

    Returns: message elements

    MessageElements ( )

    IMPORT_C CSIPMessageElements &MessageElements()

    Gets message elements (contains all SIP user headers and content) The response elements can be populated with SIP user headers and content using returned reference to the message elements.

    Returns: message elements

    Method ( )

    IMPORT_C RStringFMethod()const

    Gets the SIP Method for a request

    Returns: a SIP method name or a an empty string if the method is not defined

    NewL ( CUri8 * )

    IMPORT_C CSIPRequestElements *NewL(CUri8 *aRemoteUri)[static]
    Two-phased constructor. If the URI is SIP URI, no SIP URI headers are allowed.
    Pre-condition
    aRemoteURi != 0
    ParameterDescription
    aRemoteUriRemote target URI that identifies a resource that the request is addressed to. The ownership is transferred.

    NewLC ( CUri8 * )

    IMPORT_C CSIPRequestElements *NewLC(CUri8 *aRemoteUri)[static]
    Two-phased constructor. If the URI is SIP URI, no SIP URI headers are allowed.
    Pre-condition
    aRemoteURi != 0
    ParameterDescription
    aRemoteUriRemote target URI that identifies a resource that the request is addressed to. The ownership is transferred.

    RemoteUri ( )

    IMPORT_C const CUri8 &RemoteUri()const

    Gets the remote target URI

    Returns: remote target URI

    SetFromHeaderL ( CSIPFromHeader * )

    IMPORT_C voidSetFromHeaderL(CSIPFromHeader *aFrom)
    Sets/resets the originator's From-header. From-header must not contain tag-parameter.
    Pre-condition
    aFrom != 0
    leave
    KErrArgument if aFrom == 0
    ParameterDescription
    aFroma From-header to be set, the ownership is transferred.

    SetMethodL ( RStringF )

    IMPORT_C voidSetMethodL(RStringFaMethod)
    Sets the SIP request method
    leave
    KErrArgument if method name given is syntactically incorrect
    ParameterDescription
    aMethoda SIP method name.

    SetRemoteUriL ( CUri8 * )

    IMPORT_C voidSetRemoteUriL(CUri8 *aRemoteUri)
    Sets the remote URI. If the URI is a SIP URI, no SIP URI headers are allowed.
    Pre-condition
    aRemoteUri != 0
    leave
    KErrArgument if aRemoteUri==0

    SetToHeaderL ( CSIPToHeader * )

    IMPORT_C voidSetToHeaderL(CSIPToHeader *aTo)
    Sets/resets the recipient's To-header To-header must not contain tag-parameter.
    Pre-condition
    aTo != 0
    ParameterDescription
    aToa To-header to be set, the ownership is transferred.

    ToHeader ( )

    IMPORT_C const CSIPToHeader *ToHeader()const

    Gets the recipient's To-header

    Returns: To-header or a 0-pointer if not present. Ownership is not transferred.