#include <mw/sipdialog.h>
class CSIPDialog : public CBase |
Public Member Enumerations | |
---|---|
enum | TState { EInit, EEarly, EConfirmed, ETerminated } |
Public Member Functions | |
---|---|
~CSIPDialog() | |
IMPORT_C const CSIPCallIDHeader & | CallIdL() |
IMPORT_C CSIPConnection * | Connection() |
IMPORT_C const CSIPConnection * | Connection() |
IMPORT_C const CSIPFromHeader & | FromHeader() |
CSIPDialogImplementation & | Implementation() |
IMPORT_C TBool | IsAssociated(const CSIPDialogAssocBase &) |
CSIPDialog * | NewL(CSIPConnectionImplementation &) |
CSIPDialog * | NewL(CSIPConnectionImplementation &, const MSIPRegistrationContext &) |
CSIPDialog * | NewLC(CSIPConnectionImplementation &) |
CSIPDialog * | NewLC(CSIPConnectionImplementation &, const MSIPRegistrationContext &) |
IMPORT_C const MSIPRegistrationContext * | RegistrationContext() |
IMPORT_C const CUri8 & | RemoteURI() |
IMPORT_C TInt | ReuseInitialRequestData() |
IMPORT_C const RPointerArray< CSIPDialogAssocBase > & | SIPDialogAssociations() |
IMPORT_C CSIPDialog::TState | State() |
IMPORT_C const CSIPToHeader & | ToHeader() |
IMPORT_C TBool | operator==(const CSIPDialog &) |
Class for managing SIP dialogs. It provides services querying dialog state, obtaining the dialog related SIP headers and getting all dialog associations.
The user of the class cannot instantiate this class.
IMPORT_C CSIPConnection * | Connection | ( | ) |
Gets the SIP connection used for this dialog
Returns: SIP connection used for the dialog, or 0-pointer if the connection has been deleted. Ownership isn't transferred.
IMPORT_C const CSIPConnection * | Connection | ( | ) | const |
Gets the SIP connection used for this dialog.
Returns: SIP connection used for the dialog, or 0-pointer if the connection has been deleted. Ownership isn't transferred.
IMPORT_C const CSIPFromHeader & | FromHeader | ( | ) | const |
Gets originator's address
Returns: originator's address (From-header)
CSIPDialogImplementation & | Implementation | ( | ) |
Returns the CSIPDialogImplementation.
Returns: CSIPDialogImplementation
IMPORT_C TBool | IsAssociated | ( | const CSIPDialogAssocBase & | aDialogAssoc | ) | const |
Checks if the dialog association belongs to this dialog
Parameter | Description |
---|---|
aDialogAssoc | a dialog association |
Returns: ETrue if belongs, EFalse otherwise
CSIPDialog * | NewL | ( | CSIPConnectionImplementation & | aConnImplementation | ) | [static] |
Two-phased constructor. This constructor should be used if the user has received SIP request that creates a SIP dialog association.
Parameter | Description |
---|---|
aConnImplementation | Implementation of the used SIP connection |
Returns: New object, ownership is transferred.
CSIPDialog * | NewL | ( | CSIPConnectionImplementation & | aConnImplementation, |
const MSIPRegistrationContext & | aContext | |||
) | [static] |
Two-phased constructor This constructor should be used if the user has received SIP request that creates a SIP dialog association.
Parameter | Description |
---|---|
aConnImplementation | Implementation of the used SIP connection |
aContext | Registration context whose outbound proxy and other parameters are to be used. |
Returns: New object, ownership is transferred.
CSIPDialog * | NewLC | ( | CSIPConnectionImplementation & | aConnImplementation | ) | [static] |
Two-phased constructor This constructor should be used if the user has received SIP request that creates a SIP dialog association.
Parameter | Description |
---|---|
aConnImplementation | Implementation of the used SIP connection |
Returns: New object, ownership is transferred.
CSIPDialog * | NewLC | ( | CSIPConnectionImplementation & | aConnImplementation, |
const MSIPRegistrationContext & | aContext | |||
) | [static] |
Two-phased constructor This constructor should be used if the user has received SIP request that creates a SIP dialog association.
Parameter | Description |
---|---|
aConnImplementation | Implementation of the used SIP connection |
aContext | Registration context whose outbound proxy and other parameters are to be used. |
Returns: New object, ownership is transferred.
IMPORT_C const MSIPRegistrationContext * | RegistrationContext | ( | ) | const |
Gets used registration context for this dialog
Returns: associated registration or 0-pointer otherwise. Ownership is not transferred.
IMPORT_C const CUri8 & | RemoteURI | ( | ) | const |
Gets remote-uri used during dialog creation
Returns: Remote target uri
IMPORT_C TInt | ReuseInitialRequestData | ( | ) |
Returns: KErrNone if succesful and KErrNoMemory if the memory is low.
IMPORT_C const RPointerArray< CSIPDialogAssocBase > & | SIPDialogAssociations | ( | ) | const |
Gets all dialog associations.
Returns: All dialog associations. Ownership of the array or the items inside it, is not transferred.
IMPORT_C const CSIPToHeader & | ToHeader | ( | ) | const |
Gets recipient's address
Returns: recipient's address (To-header)
IMPORT_C TBool | operator== | ( | const CSIPDialog & | aDialog | ) | const |
Compares this object to another object
Parameter | Description |
---|---|
aDialog | CSIPDialog object to compare |
Returns: ETrue if the objects are equal, otherwise EFalse