|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <SIPExSIPServerEstablishingState.h>
Inheritance diagram for CSIPExSIPServerEstablishingState:

Public Member Functions | |
| virtual IMPORT_C | ~CSIPExSIPServerEstablishingState () |
| void | LinkStates (CSIPExSIPStateBase &aEstablishedState, CSIPExSIPStateBase &aTerminatedState) |
| void | AckReceivedL (CSIPExSIPEngine &aEngine, CSIPServerTransaction &aTransaction) |
| void | ByeReceivedL (CSIPExSIPEngine &aEngine, CSIPServerTransaction &aTransaction) |
| void | CancelReceivedL (CSIPExSIPEngine &aEngine, CSIPClientTransaction &aTransaction) |
Static Public Member Functions | |
| static IMPORT_C CSIPExSIPServerEstablishingState * | NewL () |
Private Member Functions | |
| CSIPExSIPServerEstablishingState () | |
Private Attributes | |
| CSIPExSIPStateBase * | iEstablishedState |
| CSIPExSIPStateBase * | iTerminatedState |
Definition at line 30 of file SIPExSIPServerEstablishingState.h.
|
|
Destructor Definition at line 39 of file SIPExSIPServerEstablishingState.cpp.
|
|
|
C++ default constructor. Definition at line 30 of file SIPExSIPServerEstablishingState.cpp.
|
|
|
Two-phased constructor. Definition at line 48 of file SIPExSIPServerEstablishingState.cpp. References CSIPExSIPServerEstablishingState(). 00049 { 00050 CSIPExSIPServerEstablishingState* self = 00051 new (ELeave) CSIPExSIPServerEstablishingState(); 00052 return self; 00053 }
|
|
||||||||||||
|
Links the states
Definition at line 60 of file SIPExSIPServerEstablishingState.cpp. References iEstablishedState, and iTerminatedState. 00063 { 00064 iEstablishedState = &aEstablishedState; 00065 iTerminatedState = &aTerminatedState; 00066 }
|
|
||||||||||||
|
AckReceivedL ACK has been received.
Reimplemented from CSIPExSIPStateBase. Definition at line 106 of file SIPExSIPServerEstablishingState.cpp. References iEstablishedState, MSIPExSIPEngineObserver::InviteAcceptedByUs(), CSIPExSIPEngine::Observer(), and CSIPExSIPEngine::SetCurrentState(). 00109 { 00110 aEngine.Observer()->InviteAcceptedByUs(); 00111 aEngine.SetCurrentState( iEstablishedState ); 00112 }
|
|
||||||||||||
|
ByeReceivedL BYE has been received.
Reimplemented from CSIPExSIPStateBase. Definition at line 72 of file SIPExSIPServerEstablishingState.cpp. References iTerminatedState, CSIPExSIPEngine::Observer(), MSIPExSIPEngineObserver::SessionEnded(), and CSIPExSIPEngine::SetCurrentState(). 00075 { 00076 // Create and send response 00077 CSIPResponseElements* elem = 00078 CSIPResponseElements::NewLC( 00079 200, SIPStrings::StringF( SipStrConsts::EPhraseOk ) ); 00080 aTransaction.SendResponseL( elem ); 00081 CleanupStack::Pop( elem ); 00082 00083 // Inform observer 00084 aEngine.Observer()->SessionEnded(); 00085 00086 // Set state 00087 aEngine.SetCurrentState( iTerminatedState ); 00088 }
|
|
||||||||||||
|
CancelReceivedL CANCEL has been received.
Reimplemented from CSIPExSIPStateBase. Definition at line 94 of file SIPExSIPServerEstablishingState.cpp. References iTerminatedState, CSIPExSIPEngine::Observer(), MSIPExSIPEngineObserver::SessionEnded(), and CSIPExSIPEngine::SetCurrentState(). 00097 { 00098 aEngine.Observer()->SessionEnded(); 00099 aEngine.SetCurrentState( iTerminatedState ); 00100 }
|
|
© Nokia 2006 |