S60 3rd Edition SDK for Symbian OS
Example Applications Guide

TSIPExStateAcceptingSIP Class Reference

#include <SIPExStateAcceptingSIP.h>

Inheritance diagram for TSIPExStateAcceptingSIP:

TSIPExState List of all members.

Public Member Functions

virtual void SocketState (CSIPExEngine *, TInt)
virtual void EndGameL (CSIPExEngine *aContext)
virtual void InvitationCancelled (CSIPExEngine *aContext)

Detailed Description

The state is valid when we have recived the invitation and socket is listening the connection from remote peer.

Definition at line 27 of file SIPExStateAcceptingSIP.h.


Member Function Documentation

void TSIPExStateAcceptingSIP::SocketState (  CSIPExEngine *  ,
TInt 
)  [virtual]
 

SocketState From TSIPExState

Reimplemented from TSIPExState.

Definition at line 29 of file SIPExStateAcceptingSIP.cpp.

References TSIPExState::ChangeState(), CSIPExEngine::iStateRegistered, and CSIPExEngine::SetPeer().

00032     {
00033     aContext->SetPeer( CSIPExEngine::EServer );
00034     switch (aNewState)
00035         {
00036         case CSIPExSocketEngine::ENotConnected:
00037             ChangeState( aContext, aContext->iStateRegistered );
00038             aContext->InfoL( KNotConnected() );
00039             break;
00040         case CSIPExSocketEngine::EConnected:
00041             aContext->ResetGame();
00042             ChangeState( aContext, aContext->iStateRemote );
00043             aContext->StatusInfoL( KWaitingRemote() );
00044             aContext->InfoL( KConnected() );
00045             break;
00046 
00047         case CSIPExSocketEngine::ETimedOut:
00048             ChangeState( aContext, aContext->iStateRegistered );
00049             aContext->InfoL( KTimedOut() );
00050             break;
00051         default:
00052             break;
00053         }
00054     }

void TSIPExStateAcceptingSIP::EndGameL (  CSIPExEngine *  aContext  )  [virtual]
 

SocketState From TSIPExState

Reimplemented from TSIPExState.

Definition at line 62 of file SIPExStateAcceptingSIP.cpp.

References CSIPExSIPEngine::EndSessionL(), and CSIPExEngine::SIPEngine().

00063     {
00064     aContext->SIPEngine()->EndSessionL();
00065     }

void TSIPExStateAcceptingSIP::InvitationCancelled (  CSIPExEngine *  aContext  )  [virtual]
 

InvitationCancelled From TSIPExState

Reimplemented from TSIPExState.

Definition at line 73 of file SIPExStateAcceptingSIP.cpp.

References TSIPExState::ChangeState(), CSIPExEngine::DestroySocketEngine(), CSIPExEngine::iStateRegistered, CSIPExEngine::SocketEngineL(), and CSIPExSocketEngine::Stop().

00074     {
00075     ChangeState( aContext, aContext->iStateRegistered );
00076     TRAPD( ignore, aContext->SocketEngineL()->Stop() );
00077     aContext->DestroySocketEngine();
00078     }


© Nokia 2006

Back to top