#include <mw/sipclienttransaction.h>
class CSIPClientTransaction : public CSIPTransactionBase |
Public Member Functions | |
---|---|
~CSIPClientTransaction() | |
virtual IMPORT_C TBool | CancelAllowed() |
IMPORT_C CSIPClientTransaction * | CancelL() |
CSIPClientTransaction * | NewL(RStringF, MTransactionAssociation &, CSIPRefresh *) |
CSIPClientTransaction * | NewLC(RStringF, MTransactionAssociation &, CSIPRefresh *) |
IMPORT_C const CSIPRefresh * | Refresh() |
CSIPRefresh * | Refresh() |
void | RemoveRefresh() |
IMPORT_C const CSIPResponseElements * | ResponseElements() |
void | SetRequestId(TUint32) |
Protected Member Functions | |
---|---|
CSIPClientTransaction(MTransactionAssociation &, CSIPRefresh *) |
Inherited Attributes | |
---|---|
CSIPTransactionBase::iAssociation | |
CSIPTransactionBase::iRequestId |
Inherited Enumerations | |
---|---|
CSIPTransactionBase:TState |
Class for managing SIP client transactions. It provides services for ending and getting the SIP client transaction parameters. Some client transactions can also be canceled.
The user of the class cannot instante this class.
CSIPClientTransaction | ( | MTransactionAssociation & | aAssociation, |
CSIPRefresh * | aRefresh | ||
) | [protected] |
IMPORT_C TBool | CancelAllowed | ( | ) | const [virtual] |
Checks if the client transaction is such that it can be cancelled. This does no check whether the transaction is currently in such a state that the canceling can be done now.
Returns: ETrue if client transaction can be cancelled; EFalse otherwise
IMPORT_C CSIPClientTransaction * | CancelL | ( | ) |
CancelAllowed()==ETrue Connection().State()==EActive
Returns: SIP CANCEL transaction, ownership is transferred.
CSIPClientTransaction * | NewL | ( | RStringF | aType, |
MTransactionAssociation & | aAssociation, | |||
CSIPRefresh * | aRefresh = 0 | |||
) | [static] |
Instantiates a CSIPClientTransaction object, leaves on failure.
Parameter | Description |
---|---|
aType | Identifies the transaction type |
aAssociation | Object to which the transaction is associated with. |
aRefresh | If transaction is refreshed, this points to a CSIPRefresh, otherwise this is NULL. Ownership is not transferred. |
Returns: SIP client transaction, ownership is transferred.
CSIPClientTransaction * | NewLC | ( | RStringF | aType, |
MTransactionAssociation & | aAssociation, | |||
CSIPRefresh * | aRefresh = 0 | |||
) | [static] |
Instantiates a CSIPClientTransaction object and pushes it into CleanupStack, leaves on failure.
Parameter | Description |
---|---|
aType | Identifies the transaction type |
aAssociation | Object to which the transaction is associated with. |
aRefresh | If transaction is refreshed, this points to a CSIPRefresh, otherwise this is NULL. Ownership is not transferred. |
Returns: SIP client transaction, ownership is transferred.
IMPORT_C const CSIPRefresh * | Refresh | ( | ) | const |
Gets the associated refresh with the transaction. If the refresh is associated with the transaction, transaction will be refreshed at defined interval.
Returns: associated refresh or 0-pointer if there's no associated refresh. Ownership isn't transferred.
CSIPRefresh * | Refresh | ( | ) |
Gets the associated refresh with the transaction and allows modification fo the refresh. This method is for internal use only.
Returns: associated refresh or 0-pointer if there's no associated refresh. Ownership isn't transferred.
IMPORT_C const CSIPResponseElements * | ResponseElements | ( | ) | const |
Reimplemented from CSIPTransactionBase::ResponseElements()const
Gets response elements of the most recent response.
Returns: Response elements. Ownership isn't transferred.
void | SetRequestId | ( | TUint32 | aRequestId | ) |
Sets the RequestId.
aRequestId != 0
Parameter | Description |
---|---|
aRequestId | RequestId obtained from SIP client |