#include <mw/siprefresh.h>
class CSIPRefresh : public CBase |
Public Member Enumerations | |
---|---|
enum | TState { EInactive, EActive, ETerminated, EConstructing } |
Public Member Functions | |
---|---|
~CSIPRefresh() | |
void | AddTransaction(CSIPClientTransaction &) |
void | ChangeState(CSIPRefresh::TState) |
TBool | DoesMatch(TUint32) |
IMPORT_C TUint | IntervalL() |
IMPORT_C TBool | IsStandAlone() |
IMPORT_C CSIPRefresh * | NewL() |
IMPORT_C CSIPRefresh * | NewLC() |
TUint32 | RefreshId() |
void | RemoveRefreshOwner(const MSIPRefreshAssociation &) |
void | RemoveTransaction() |
RStringF | RequestType() |
IMPORT_C const CSIPClientTransaction * | SIPTransaction() |
IMPORT_C void | SetIntervalL(TUint) |
void | SetRefreshIdIfEmpty(TUint32) |
void | SetRefreshOwner(MSIPRefreshAssociation &) |
void | SetRequestType(RStringF) |
IMPORT_C CSIPRefresh::TState | State() |
IMPORT_C CSIPClientTransaction * | TerminateL(CSIPMessageElements *) |
CSIPClientTransaction * | Transaction() |
IMPORT_C CSIPClientTransaction * | UpdateL(CSIPMessageElements *) |
void | UpdateRefreshState(TUint) |
IMPORT_C TBool | operator==(const CSIPRefresh &) |
Class for managing SIP refresh. It provides functions for getting associated sip transaction and state. Class also provides functions for updating and terminating stand-alone refreshes.
Note that only stand-alone refreshes (i.e. refreshes that are not associated with registration binding or dialog associations) can be terminated or updated using functions defined in this class.
IMPORT_C TBool | IsStandAlone | ( | ) | const |
Tests if the refresh is a stand-alone refresh
Returns: ETrue if refresh is a stand-alone; EFalse otherwise
IMPORT_C CSIPRefresh * | NewL | ( | ) | [static] |
Two-phased constructor
Returns: New object. Ownership is transferred.
IMPORT_C CSIPRefresh * | NewLC | ( | ) | [static] |
Two-phased constructor
Returns: New object. Ownership is transferred.
void | RemoveRefreshOwner | ( | const MSIPRefreshAssociation & | aAssoc | ) |
IMPORT_C const CSIPClientTransaction * | SIPTransaction | ( | ) | const |
Gets the associated SIP transaction with this refresh.
Returns: Associated SIP transaction or 0-pointer. Ownership is not transferred.
IMPORT_C void | SetIntervalL | ( | TUint | aInterval | ) |
aInterval > 0
Parameter | Description |
---|---|
aInterval | a new interval in seconds |
void | SetRefreshOwner | ( | MSIPRefreshAssociation & | aAssoc | ) |
Associate the CSIPRefresh with another object.
Parameter | Description |
---|---|
aAssoc | Object associated with the CSIPRefresh |
Returns: ETrue if the objects are equal otherwise EFalse
IMPORT_C CSIPClientTransaction * | TerminateL | ( | CSIPMessageElements * | aElements = 0 | ) |
IsStandAlone()==ETrue
Parameter | Description |
---|---|
aElements | contains optional SIP message headers and body. Ownership is transferred. |
Returns: SIP client transaction. Ownership is transferred.
IMPORT_C CSIPClientTransaction * | UpdateL | ( | CSIPMessageElements * | aElements = 0 | ) |
IsStandAlone()==ETrue
Parameter | Description |
---|---|
aElements | contains optional SIP message headers and body. Ownership is transferred. |
Returns: SIP client transaction. Ownership is transferred.
IMPORT_C TBool | operator== | ( | const CSIPRefresh & | aRefresh | ) | const |
Compares this object to another object
Parameter | Description |
---|---|
aRefresh | a CSIPRefresh type object to compare |
Returns: ETrue if the objects are equal otherwise EFalse