multimediacommsengine/mmcesrv/mmceserver/inc/mcestateserverestablishing.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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 #ifndef CMCESTATESERVERESTABLISHING_H
       
    22 #define CMCESTATESERVERESTABLISHING_H
       
    23 
       
    24 #include "mcestate.h"
       
    25 
       
    26 /**
       
    27 *  Represents MCE server state Server Establishing
       
    28 *  State transition is performed beacuse of following
       
    29 *  trigger events:
       
    30 *    - EMceItcUpdate
       
    31 *    - EMceItcRejectSession
       
    32 *
       
    33 */
       
    34 class CMceStateServerEstablishing : public CMceState,
       
    35                                     public MMCEStateTransitionHandler
       
    36 	{
       
    37 	
       
    38 public: // Constructors and destructor
       
    39 
       
    40 	/**
       
    41 	* Consructor
       
    42 	*/
       
    43 	CMceStateServerEstablishing ();
       
    44 
       
    45 	/**
       
    46 	* Destructor.
       
    47 	*/
       
    48 	~CMceStateServerEstablishing();
       
    49 
       
    50 public: // from CMceState
       
    51 
       
    52 
       
    53 	/**
       
    54 	* Checks if state accepts event
       
    55 	* @param aEvent atransition event
       
    56 	*/
       
    57     TBool DoAcceptL( TMceStateTransitionEvent& aEvent );
       
    58     
       
    59 	/**
       
    60 	* Reruns transition handler
       
    61 	* @return transition handler
       
    62 	*/
       
    63     inline MMCEStateTransitionHandler& TransitionHandler() 
       
    64         {
       
    65         return *this;
       
    66         }
       
    67 
       
    68 public: // from MMCEStateTransitionHandler
       
    69 
       
    70 	/**
       
    71 	* Hanldes state transition message and executes
       
    72 	* necessary actions
       
    73 	* @param aEvent atransition event
       
    74 	*/
       
    75     void EntryL( TMceStateTransitionEvent& aEvent );
       
    76 
       
    77 	/**
       
    78 	* Resolves state to which current state exit
       
    79 	* @param aEvent atransition event
       
    80 	*/
       
    81     void ExitL( TMceStateTransitionEvent& aEvent );
       
    82     
       
    83 
       
    84 private://handler routines
       
    85 
       
    86 	/**
       
    87 	* Handles entry of EMceItcUpdate
       
    88 	* @param aEvent transition event
       
    89 	*/
       
    90     void EntryUpdateL( TMceStateTransitionEvent& aEvent );
       
    91     
       
    92 
       
    93 	};
       
    94 
       
    95 #endif
       
    96 
       
    97 // End of File