multimediacommsengine/mmcesrv/mmceserver/inc/mcenatstatecreateanswer.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 #ifndef CMCENATSTATECREATEANSWER_H
       
    21 #define CMCENATSTATECREATEANSWER_H
       
    22 
       
    23 #include "mcenatstate.h"
       
    24 #include "mcestate.h"
       
    25 /**
       
    26 * CREATEANSWER
       
    27 *
       
    28 *
       
    29 */
       
    30 class CMceNatStateCreateAnswer : public CMceNatState,
       
    31                                  public MMceNatStateTransitionHandler
       
    32 	{	
       
    33 public: // Constructors and destructor
       
    34 
       
    35 	/**
       
    36 	* Consructor
       
    37 	*/
       
    38 	CMceNatStateCreateAnswer();
       
    39     
       
    40 	/**
       
    41 	* Destructor.
       
    42 	*/
       
    43 	~CMceNatStateCreateAnswer();
       
    44 
       
    45 public: // from CMceState
       
    46 
       
    47 	/**
       
    48 	* Checks if state accepts event
       
    49 	* @param aEvent atransition event
       
    50 	*/
       
    51     TBool Accept( TMceNatStateTransitionEvent& aEvent );
       
    52     
       
    53 	/**
       
    54 	* Returns transition handler
       
    55 	* @return transition handler
       
    56 	*/
       
    57     inline MMceNatStateTransitionHandler& TransitionHandler() 
       
    58         {
       
    59         return *this;
       
    60         }
       
    61 
       
    62 public: // from MMCEStateTransitionHandler
       
    63 
       
    64 	/**
       
    65 	* Hanldes state transition message and executes
       
    66 	* necessary actions
       
    67 	* @param aEvent atransition event
       
    68 	*/
       
    69     void EntryL( TMceNatStateTransitionEvent& aEvent );
       
    70 
       
    71 	/**
       
    72 	* Resolves state to which current state exit
       
    73 	* @param aEvent atransition event
       
    74 	*/
       
    75     void ExitL( TMceNatStateTransitionEvent& aEvent );
       
    76 
       
    77 private: // New functions
       
    78 
       
    79     void ExitErrorL( TMceNatStateTransitionEvent& aEvent );
       
    80 
       
    81     void ExitHandleInviteL( TMceNatStateTransitionEvent& aEvent );
       
    82     
       
    83     void ExitDefaultL( TMceNatStateTransitionEvent& aEvent );
       
    84 
       
    85 	};
       
    86 
       
    87 #endif // CMCENATSTATECREATEANSWER_H
       
    88 
       
    89 // End of File