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