#include <mw/sipclienttransaction.h>
Link against: sipclient
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.
IMPORT_C CSIPClientTransaction * | CancelL | ( | ) |
CancelAllowed()==ETrue Connection().State()==EActive
Leave Codes | |
---|---|
KErrSIPInvalidTransactionState | if canceling is not possible at all, or because the transaction is not in a proper state or the transaction is not related to a dialog. |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
Capability | |
---|---|
NetworkServices |
CSIPClientTransaction * | NewL | ( | RStringF | aType, |
MTransactionAssociation & | aAssociation, | |||
CSIPRefresh * | aRefresh = 0 | |||
) | [static] |
Instantiates a CSIPClientTransaction object, leaves on failure.
Parameters | |
---|---|
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. |
CSIPClientTransaction * | NewLC | ( | RStringF | aType, |
MTransactionAssociation & | aAssociation, | |||
CSIPRefresh * | aRefresh = 0 | |||
) | [static] |
Instantiates a CSIPClientTransaction object and pushes it into CleanupStack, leaves on failure.
Parameters | |
---|---|
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. |
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.
CSIPRefresh * | Refresh | ( | ) |
Gets the associated refresh with the transaction and allows modification fo the refresh. This method is for internal use only.
IMPORT_C const CSIPResponseElements * | ResponseElements | ( | ) | const |
Reimplemented from CSIPTransactionBase::ResponseElements()const
Gets response elements of the most recent response.
void | SetRequestId | ( | TUint32 | aRequestId | ) |
Sets the RequestId.
aRequestId != 0
Parameters | |
---|---|
aRequestId | RequestId obtained from SIP client |