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