CSIPTransactionBase Class Reference
#include
<mw/siptransactionbase.h>
class CSIPTransactionBase : public CBase |
Detailed Description
Base class for managing SIP transactions. It provides services for querying transaction type and its state.
This class is an abstract class and cannot be instantiated.
Member Attribute Documentation
iRequestId
RequestId received from SIP client
Member Enumeration Documentation
Enum TState
Enumerator | Value | Description |
---|
ETrying | |
Trying state
|
ECalling | |
Calling state
|
EProceeding | |
Proceeding state
|
ECompleted | |
Completed state
|
EConfirmed | |
Confirmed state
|
ETerminated | |
Terminated state
|
EConstructing | |
Object is being constructed and is not yet ready for use
|
Constructor & Destructor Documentation
CSIPTransactionBase ( TBool, TUint32, MTransactionAssociation & )
~CSIPTransactionBase ( )
~CSIPTransactionBase | ( | ) | [virtual] |
Member Function Documentation
AffectsDialogState ( )
TBool
| AffectsDialogState | ( | ) | const |
Determines whether this transaction has an effect on the associated dialog's state.
Returns: ETrue if transaction has an effect on the dialog's state, EFalse otherwise.
ChangeState ( CSIPTransactionBase::TState )
Changes the transaction state.
Parameter | Description | aNextState | State into which transaction moves |
CheckAssociationL ( )
void | CheckAssociationL | ( | ) | const [protected] |
Checks that iAssociation is available (not NULL). If iAssociation is NULL, it means user has deleted a resource needed by CSIPTransactionBase, and this function leaves.
ConstructL ( RStringF )
void | ConstructL | ( | RStringF | aType | ) | [protected] |
Detach ( const MTransactionAssociation & )
Clears the MTransactionAssociation. After this the object can't be used anymore and it is expected that user will delete it soon.
Parameter | Description | aAssociation | Object requesting the detach |
IsSIPClientTransaction ( )
IMPORT_C TBool | IsSIPClientTransaction | ( | ) | const |
Returns: ETrue if object is of type CSIPClientTransaction and EFalse otherwise
IsTargetRefresh ( RStringF )
Determines whether the transaction type is a target refresh request.
Parameter | Description | aType | Type of transaction |
Returns: ETrue If the transaction is a target refresh request, EFalse otherwise.
RequestId ( )
Obtains the RequestId of the transaction.
ResponseElements ( )
Returns: Response elements. Ownership isn't transferred.
SetAffectsDialogState ( )
void | SetAffectsDialogState | ( | ) | |
Sets this transaction to affect the dialog state.
SetResponseElements ( CSIPResponseElements * )
Stores response elements. Depending on the status code, transaction may enter another state.
Parameter | Description | aElements | Response elements, ownership is transferred. |
StateL ( )
Gets SIP transaction state
- leave
- KErrSIPResourceNotAvailable if a required SIP Client API object has been deleted
Returns: SIP transaction state
Type ( )
Gets the SIP transaction type
Returns: SIP transaction type
operator== ( const CSIPTransactionBase & )
Compares this object to another object also having CSIPTransactionBase base class The function has to be implemented in each of the sub-classes.
Parameter | Description | aTransaction | a CSIPTransactionBase object to compare |
Returns: ETrue if the objects are equal otherwise EFalse