#include <mw/siprefresh.h>
Link against: sipclient.lib
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.
SIP refresh states
Enumerator | Value | Description |
---|---|---|
EInactive |
SIP refresh is inactive | |
EActive |
SIP refresh active | |
ETerminated |
SIP refresh is terminated | |
EConstructing |
Object is being constructed and is not yet ready for use |
void | AddTransaction | ( | CSIPClientTransaction & | aTransaction | ) |
void | ChangeState | ( | CSIPRefresh::TState | aNextState | ) |
IMPORT_C TUint | IntervalL | ( | ) | const |
Leave Codes | |
---|---|
KErrSIPResourceNotAvailable | if SIP server can't be contacted because a required resource has been deleted. |
IMPORT_C TBool | IsStandAlone | ( | ) | const |
Tests if the refresh is a stand-alone refresh
IMPORT_C CSIPRefresh * | NewL | ( | ) | [static] |
Two-phased constructor
IMPORT_C CSIPRefresh * | NewLC | ( | ) | [static] |
Two-phased constructor
TUint32 | RefreshId | ( | ) | const |
void | RemoveRefreshOwner | ( | const MSIPRefreshAssociation & | aAssoc | ) |
void | RemoveTransaction | ( | ) |
RStringF | RequestType | ( | ) | const |
IMPORT_C const CSIPClientTransaction * | SIPTransaction | ( | ) | const |
Gets the associated SIP transaction with this refresh.
IMPORT_C void | SetIntervalL | ( | TUint | aInterval | ) |
aInterval > 0
Parameters | |
---|---|
aInterval | a new interval in seconds |
Leave Codes | |
---|---|
KErrArgument | if aInterval == 0 |
KErrSIPInvalidTransactionState | if |
KErrSIPResourceNotAvailable | if SIP server can't be contacted because a required resource has been deleted. |
void | SetRefreshIdIfEmpty | ( | TUint32 | aRefreshId | ) |
void | SetRefreshOwner | ( | MSIPRefreshAssociation & | aAssoc | ) |
Associate the CSIPRefresh with another object.
Parameters | |
---|---|
aAssoc | Object associated with the CSIPRefresh |
void | SetRequestType | ( | RStringF | aType | ) |
IMPORT_C CSIPClientTransaction * | TerminateL | ( | CSIPMessageElements * | aElements = 0 | ) |
IsStandAlone()==ETrue
Parameters | |
---|---|
aElements | contains optional SIP message headers and body. Ownership is transferred. |
Leave Codes | |
---|---|
KErrSIPInvalidTransactionState | if |
Capability | |
---|---|
NetworkServices |
CSIPClientTransaction * | Transaction | ( | ) |
IMPORT_C CSIPClientTransaction * | UpdateL | ( | CSIPMessageElements * | aElements = 0 | ) |
IsStandAlone()==ETrue
Parameters | |
---|---|
aElements | contains optional SIP message headers and body. Ownership is transferred. |
Leave Codes | |
---|---|
KErrSIPInvalidTransactionState | if |
Capability | |
---|---|
NetworkServices |
void | UpdateRefreshState | ( | TUint | aStatusCode | ) |
IMPORT_C TBool | operator== | ( | const CSIPRefresh & | aRefresh | ) | const |
Compares this object to another object
Parameters | |
---|---|
aRefresh | a CSIPRefresh type object to compare |