multimediacommsengine/mmcesrv/mmceserver/inc/mcestateconfirming.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 CMCESTATECONFIRMING_H
       
    22 #define CMCESTATECONFIRMING_H
       
    23 
       
    24 #include "mcestate.h"
       
    25 
       
    26 
       
    27 /**
       
    28 *  Represents MCE server state Confirming
       
    29 *  State transition is performed beacuse of following
       
    30 *  trigger events:
       
    31 *    - EMceResponse
       
    32 *    - EMceProvisionalResponse
       
    33 *    - EMceErrorResponse
       
    34 *    - EMceItcCancel
       
    35 */
       
    36 class CMceStateConfirming : public CMceState,
       
    37                             public MMCEStateTransitionHandler
       
    38 	{
       
    39 	
       
    40 public: // Constructors and destructor
       
    41 
       
    42 	/**
       
    43 	* Consructor
       
    44 	*/
       
    45 	CMceStateConfirming ();
       
    46 
       
    47 	/**
       
    48 	* Destructor.
       
    49 	*/
       
    50 	~CMceStateConfirming();
       
    51 
       
    52 public: // from CMceState
       
    53 
       
    54 	/**
       
    55 	* Checks if state accepts event
       
    56 	* @param aEvent atransition event
       
    57 	*/
       
    58     TBool DoAcceptL( TMceStateTransitionEvent& aEvent );
       
    59     
       
    60 	/**
       
    61 	* Reruns transition handler
       
    62 	* @return transition handler
       
    63 	*/
       
    64     inline MMCEStateTransitionHandler& TransitionHandler() 
       
    65         {
       
    66         return *this;
       
    67         }
       
    68 
       
    69 public: // from MMCEStateTransitionHandler
       
    70 
       
    71 	/**
       
    72 	* Hanldes state transition message and executes
       
    73 	* necessary actions
       
    74 	* @param aEvent atransition event
       
    75 	*/
       
    76     void EntryL( TMceStateTransitionEvent& aEvent );
       
    77 
       
    78 	/**
       
    79 	* Resolves state to which current state exit
       
    80 	* @param aEvent atransition event
       
    81 	*/
       
    82     void ExitL( TMceStateTransitionEvent& aEvent );
       
    83 
       
    84 private: //handler routines
       
    85     
       
    86     /**
       
    87     * Handles entry of EMceResponse
       
    88     * @param aEvent atransition event
       
    89     */
       
    90     void EntryResponseL( TMceStateTransitionEvent& aEvent );
       
    91     
       
    92     /**
       
    93     * Handles entry of EMceProvisionalResponse
       
    94     * @param aEvent atransition event
       
    95     */
       
    96     void EntryProvisionalResponseL( TMceStateTransitionEvent& aEvent );
       
    97     
       
    98     /**
       
    99     * Handles entry of EMceRedirectionResponse and EMceErrorResponse
       
   100     * @param aEvent atransition event
       
   101     */
       
   102     void EntryErrorResponseL( TMceStateTransitionEvent& aEvent );
       
   103     
       
   104     /**
       
   105     * Handles entry of EMceItcCancel
       
   106     * @param aEvent atransition event
       
   107     */
       
   108     void EntryCancelL( TMceStateTransitionEvent& aEvent );
       
   109     
       
   110     /**
       
   111     * Handles entry of EMceMediaUpdated
       
   112     * @param aEvent atransition event
       
   113     */
       
   114     void EntryMediaUpdatedL( TMceStateTransitionEvent& aEvent );
       
   115     
       
   116     /**
       
   117     * Handles exit of EMceMediaUpdated
       
   118     * @param aEvent atransition event
       
   119     */
       
   120     void ExitMediaUpdatedL( TMceStateTransitionEvent& aEvent );
       
   121     
       
   122     };
       
   123 
       
   124 #endif
       
   125 
       
   126 // End of File