multimediacommsengine/mmcesrv/mmceserver/src/mcestateserverinitializing.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include "mcestateserverinitializing.h"
       
    22 #include "mcedefs.h"
       
    23 #include "mcesipsession.h"
       
    24 #include "mceactionset.h"
       
    25 #include "mcefcactionset.h"
       
    26 
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CMceStateServerInitializing::CMceStateServerInitializing
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 CMceStateServerInitializing::CMceStateServerInitializing()
       
    33     : CMceState( KMceStateServerInitializing )
       
    34 	{
       
    35 	}
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CMceStateServerInitializing::~CMceStateServerInitializing
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CMceStateServerInitializing::~CMceStateServerInitializing()
       
    42 	{
       
    43 	}
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CMceStateServerInitializing::DoAcceptL
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 TBool
       
    50 CMceStateServerInitializing::DoAcceptL( TMceStateTransitionEvent& aEvent )
       
    51 	{
       
    52 	return aEvent.Code() == EMceServerInitialized;
       
    53 	}
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // CMceStateServerInitializing::EntryL
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 void CMceStateServerInitializing::EntryL( TMceStateTransitionEvent& aEvent )
       
    60 	{
       
    61 	aEvent.Session().ContinueHandlingIncomingSessionL();
       
    62 	}
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CMceStateServerInitializing::ExitL
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 void CMceStateServerInitializing::ExitL( TMceStateTransitionEvent& aEvent )
       
    69 	{
       
    70 	TMceStateIndex nextState( KMceStateTerminated );
       
    71 
       
    72 	if ( aEvent.ParamStatus() == KErrNone )
       
    73         {
       
    74         nextState = KMceStateServerEstablishing;
       
    75         }
       
    76 
       
    77     aEvent.Session().Actions().StateChanged( nextState );
       
    78 	}