Location:
siprefresh.h
Link against: sipclient.lib
class CSIPRefresh : public CBase;
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.
sipclient.lib
CBase
- Base class for all classes to be instantiated on the heap
CSIPRefresh
- Class for managing SIP refresh
Defined in CSIPRefresh
:
EActive
, EConstructing
, EInactive
, ETerminated
, IntervalL()
, IsStandAlone()
, NewL()
, NewLC()
, SIPTransaction()
, SetIntervalL()
, State()
, TState
, TerminateL()
, UpdateL()
, operator==()
, ~CSIPRefresh()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CSIPRefresh *NewL();
Two-phased constructor
|
static IMPORT_C CSIPRefresh *NewLC();
Two-phased constructor
|
IMPORT_C CSIPRefresh::TState State() const;
Gets the state of the refresh
|
IMPORT_C TBool IsStandAlone() const;
Tests if the refresh is a stand-alone refresh
|
IMPORT_C const CSIPClientTransaction *SIPTransaction() const;
Gets the associated SIP transaction with this refresh.
|
Capability: | NetworkServices |
IMPORT_C CSIPClientTransaction *TerminateL(CSIPMessageElements *aElements=0);
State()
==EActive
IsStandAlone()
==ETrue
Terminates the refresh by sending SIP request to the remote destination. The new client transactation will be of the same type as the first transaction associated with this request.
|
|
|
Capability: | NetworkServices |
IMPORT_C CSIPClientTransaction *UpdateL(CSIPMessageElements *aElements=0);
State()
==EActive
IsStandAlone()
==ETrue
Updates the refresh by sending SIP request to the remote destination. The new client transactation will be of the same type as the first transaction associated with this request.
|
|
|
IMPORT_C TBool operator==(const CSIPRefresh &aRefresh) const;
Compares this object to another object
|
|
IMPORT_C TUint IntervalL() const;
State()
==CSIPRefresh::EActive
Gets current refresh interval
|
|
IMPORT_C void SetIntervalL(TUint aInterval);
State()
==CSIPRefresh::EActive
aInterval > 0
Sets refresh interval. Note that SIP server choses the refresh interval. This function should be used only if SIP server has indicated new refresh interval using SIP messages that are not associated to the refresh needing the update.
|
|
TState
SIP refresh states
|