multimediacommsengine/mmcesrv/mmceserver/inc/mcestateidle.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 CMCESTATEIDLE_H
       
    22 #define CMCESTATEIDLE_H
       
    23 
       
    24 #include "mcestate.h"
       
    25 
       
    26 
       
    27 /**
       
    28 *  Represents MCE server state Idle
       
    29 *  State transition is performed beacuse of following
       
    30 *  trigger events:
       
    31 *    - EMceInvite
       
    32 *    - EMceItcEstablishSession
       
    33 *
       
    34 */
       
    35 class CMceStateIdle : public CMceState,
       
    36                       public MMCEStateTransitionHandler
       
    37 	{
       
    38 	
       
    39 public: // Constructors and destructor
       
    40 
       
    41 	/**
       
    42 	* Consructor
       
    43 	*/
       
    44 	CMceStateIdle ();
       
    45 
       
    46 	/**
       
    47 	* Destructor.
       
    48 	*/
       
    49 	~CMceStateIdle();
       
    50 
       
    51 public: // from CMceState
       
    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 private://handler routines
       
    84 
       
    85 	/**
       
    86 	* Handles entry of EMceItcEstablishSession
       
    87 	* @param aEvent transition event
       
    88 	*/
       
    89     void EntryEstablishL( TMceStateTransitionEvent& aEvent );
       
    90 
       
    91 	/**
       
    92 	* Handles entry of EMceInvite
       
    93 	* @param aEvent transition event
       
    94 	*/
       
    95     void EntryInviteL( TMceStateTransitionEvent& aEvent );
       
    96 			 
       
    97 	};
       
    98 
       
    99 #endif
       
   100 
       
   101 // End of File