multimediacommsengine/mmcesrv/mmceserver/inc/mcenatstatecreateoffer.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 CMCENATSTATECREATEOFFER_H
       
    21 #define CMCENATSTATECREATEOFFER_H
       
    22 
       
    23 #include "mcenatstate.h"
       
    24 
       
    25 /**
       
    26 * CREATEOFFER
       
    27 *
       
    28 *
       
    29 */
       
    30 class CMceNatStateCreateOffer : public CMceNatState,
       
    31                                 public MMceNatStateTransitionHandler
       
    32 	{	
       
    33 public: // Constructors and destructor
       
    34 
       
    35 	/**
       
    36 	* Consructor
       
    37 	*/
       
    38 	CMceNatStateCreateOffer();
       
    39     
       
    40 	/**
       
    41 	* Destructor.
       
    42 	*/
       
    43 	~CMceNatStateCreateOffer();
       
    44 
       
    45 public: // from CMceNatState
       
    46 
       
    47 	/**
       
    48 	* Checks if state accepts event
       
    49 	* @param aEvent atransition event
       
    50 	*/
       
    51     TBool Accept( TMceNatStateTransitionEvent& aEvent );
       
    52     
       
    53 	/**
       
    54 	* Reruns transition handler
       
    55 	* @return transition handler
       
    56 	*/
       
    57     inline MMceNatStateTransitionHandler& TransitionHandler() 
       
    58         {
       
    59         return *this;
       
    60         }
       
    61 
       
    62 public: // from MMCEStateTransitionHandler
       
    63 
       
    64 	/**
       
    65 	* Handles 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 ExitDefaultL( TMceNatStateTransitionEvent& aEvent );
       
    82 
       
    83 	};
       
    84 
       
    85 #endif // CMCENATSTATECREATEOFFER_H
       
    86 
       
    87 // End of File