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