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