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