natplugins/natpnatfwsdpprovider/inc/nspstateactivating.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Activating state description.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef NSPSTATEACTIVATING_H
       
    19 #define NSPSTATEACTIVATING_H
       
    20 
       
    21 #include "nspstatebase.h"
       
    22 
       
    23 /**
       
    24  *  State where Send/Recv responses to async calls are waited from NAT FW.
       
    25  *
       
    26  *  NAT FW Responses are waited for each media stream component in
       
    27  *  this state.
       
    28  *
       
    29  *  @lib natfwsdpprovider.dll
       
    30  *  @since S60 3.2
       
    31  */
       
    32 class CNSPStateActivating : public CNSPStateBase
       
    33     {
       
    34 public: // Constructors and destructor
       
    35 
       
    36     /**
       
    37      * A two-phase constructor.
       
    38      */
       
    39     static CNSPStateActivating* NewL();
       
    40     
       
    41     /**
       
    42      * A two-phase constructor.
       
    43      */
       
    44     static CNSPStateActivating* NewLC();
       
    45     
       
    46     /**
       
    47      * Destructor.
       
    48      */
       
    49     virtual ~CNSPStateActivating();
       
    50 
       
    51 
       
    52 private: // Constructors and destructor
       
    53 
       
    54     CNSPStateActivating();
       
    55 
       
    56 
       
    57 protected: // From CNSPStateBase
       
    58 
       
    59     /**
       
    60      * Called to check if individual state accepts event, i.e.
       
    61      * whether to execute DoApplyL.
       
    62      * 
       
    63      * @since       S60 3.2
       
    64      * @param       aEvent          State machine event.
       
    65      * @return      ETrue if event is accepted, EFalse otherwise.
       
    66      */
       
    67     TBool DoAcceptL( TNSPStateMachineEvent& aEvent );
       
    68     
       
    69     /**
       
    70      * Called when the state is entered.
       
    71      * 
       
    72      * @since       S60 3.2
       
    73      * @param       aEvent          State machine event.
       
    74      */
       
    75     void DoStateEntryL( TNSPStateMachineEvent& aEvent );
       
    76     
       
    77     /**
       
    78      * Called when state entry to next state will leave, and return
       
    79      * into 'this' state must be done.
       
    80      * 
       
    81      * @since       S60 3.2
       
    82      * @param       aEvent          State machine event.
       
    83      */
       
    84     void DoReverse( TNSPStateMachineEvent& aEvent );
       
    85     
       
    86     /**
       
    87      * Current state is applied with this method.
       
    88      * 
       
    89      * @since       S60 3.2
       
    90      * @param       aEvent          State machine event.
       
    91      */
       
    92     void DoApplyL( TNSPStateMachineEvent& aEvent );
       
    93     
       
    94     /**
       
    95      * Current state is exited with this method.
       
    96      * 
       
    97      * @since       S60 3.2
       
    98      * @param       aEvent          State machine event.
       
    99      */
       
   100     void DoExitL( TNSPStateMachineEvent& aEvent );
       
   101 
       
   102 
       
   103 private:
       
   104 	
       
   105 	void ControlMediaL( TNSPStateMachineEvent& aEvent ) const;
       
   106 	
       
   107     void ApplyNatL( TNSPStateMachineEvent& aEvent ) const;
       
   108     
       
   109     void ApplyUpdateL( TNSPStateMachineEvent& aEvent ) const;
       
   110     
       
   111     };
       
   112 
       
   113 #endif // NSPSTATEACTIVATING_H
       
   114 
       
   115 // end of file