S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SIPExSIPTerminatingState.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : CSIPExSIPTerminatingState.cpp
00004 *  Part of     : SIPExSIPEngine
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2004-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 // INCLUDE FILES
00017 #include        "SIPExSIPTerminatingState.h"
00018 #include        "SIPExSIPEngine.h"
00019 
00020 // ============================ MEMBER FUNCTIONS ===============================
00021 
00022 // -----------------------------------------------------------------------------
00023 // CSIPExSIPTerminatingState::CSIPExSIPTerminatingState
00024 // (other items were commented in a header).
00025 // -----------------------------------------------------------------------------
00026 //
00027 CSIPExSIPTerminatingState::CSIPExSIPTerminatingState()
00028         {
00029         }
00030 
00031 // -----------------------------------------------------------------------------
00032 // CSIPExSIPTerminatingState::~CSIPExSIPTerminatingState
00033 // (other items were commented in a header).
00034 // -----------------------------------------------------------------------------
00035 //
00036 EXPORT_C CSIPExSIPTerminatingState::~CSIPExSIPTerminatingState()
00037         {
00038         }
00039 
00040 // -----------------------------------------------------------------------------
00041 // CSIPExSIPTerminatingState::NewL()
00042 // (other items were commented in a header).
00043 // -----------------------------------------------------------------------------
00044 //
00045 EXPORT_C CSIPExSIPTerminatingState* CSIPExSIPTerminatingState::NewL()
00046         {
00047         CSIPExSIPTerminatingState* self =
00048                 new (ELeave) CSIPExSIPTerminatingState();
00049         return self;
00050         }
00051 
00052 // -----------------------------------------------------------------------------
00053 // CSIPExSIPTerminatingState::LinkStates()
00054 // (other items were commented in a header).
00055 // -----------------------------------------------------------------------------
00056 //
00057 void CSIPExSIPTerminatingState::LinkStates(
00058         CSIPExSIPStateBase& aIdleState )
00059         {
00060         iIdleState = &aIdleState;
00061         }
00062 
00063 
00064 // -----------------------------------------------------------------------------
00065 // CSIPExSIPTerminatingState::ResponseReceivedL()
00066 // (other items were commented in a header).
00067 // -----------------------------------------------------------------------------
00068 void CSIPExSIPTerminatingState::ResponseReceivedL(
00069         CSIPExSIPEngine& aEngine,
00070         CSIPClientTransaction& aTransaction )
00071         {
00072         const CSIPResponseElements* respElem = aTransaction.ResponseElements();
00073 
00074         if ( respElem->StatusCode() == 200 )
00075                 {
00076                 aEngine.Observer()->SessionEnded();
00077                 aEngine.ClearClientTx();
00078                 aEngine.SetCurrentState( iIdleState );
00079                 }
00080         else
00081                 {
00082                 // Hmmm...
00083                 }
00084         }
00085 
00086 // End of file

© Nokia 2006

Back to top