wlan_bearer/wlanldd/wlan_common/umac_common/inc/umacdot11infrastructurenormalmode.h
changeset 0 c40eb8fe8501
child 25 a0fdcd0e4c56
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 the License "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:   Declaration of the WlanDot11InfrastructureNormalMode class.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 10 %
       
    20 */
       
    21 
       
    22 #ifndef C_WLANDOT11INFRASTRUCTURENORMALMODE_H
       
    23 #define C_WLANDOT11INFRASTRUCTURENORMALMODE_H
       
    24 
       
    25 #include "UmacDot11InfrastructureMode.h"
       
    26 
       
    27 /**
       
    28  *  Normal infrastructure mode operation state
       
    29  *
       
    30  *  @lib wlanumac.lib
       
    31  *  @since S60 v3.1
       
    32  */
       
    33 class WlanDot11InfrastructureNormalMode : public WlanDot11InfrastructureMode
       
    34     {
       
    35 public:  
       
    36 
       
    37     /**
       
    38     * C++ default constructor.
       
    39     */
       
    40     WlanDot11InfrastructureNormalMode() {};
       
    41 
       
    42     /**
       
    43     * Destructor.
       
    44     */
       
    45     virtual ~WlanDot11InfrastructureNormalMode() {};
       
    46     
       
    47     /**
       
    48     * Changes dot11 power management mode between active and PS mode
       
    49     * 
       
    50     * @param aCtxImpl statemachine context
       
    51     * @return ETrue if state change occurred, EFalse otherwise
       
    52     */
       
    53     virtual TBool ChangePowerMgmtMode( 
       
    54         WlanContextImpl& aCtxImpl );  
       
    55         
       
    56     /**
       
    57     * Active to Light PS timer timeout function
       
    58     *
       
    59     * @since S60 v5.1
       
    60     * @param aCtxImpl statemachine context
       
    61     * @return ETrue if a state change occurred in the state machine
       
    62     *         EFalse otherwise
       
    63     */
       
    64     virtual TBool OnActiveToLightPsTimerTimeout( WlanContextImpl& aCtxImpl );
       
    65 
       
    66     /**
       
    67     * Light PS to Active timer timeout function
       
    68     *
       
    69     * @since S60 v5.1
       
    70     * @param aCtxImpl statemachine context
       
    71     * @return ETrue if a state change occurred in the state machine
       
    72     *         EFalse otherwise
       
    73     */
       
    74     virtual TBool OnLightPsToActiveTimerTimeout( WlanContextImpl& aCtxImpl );
       
    75 
       
    76     /**
       
    77     * Light PS to Deep PS timer timeout function
       
    78     *
       
    79     * @since S60 v5.1
       
    80     * @param aCtxImpl statemachine context
       
    81     * @return ETrue if a state change occurred in the state machine
       
    82     *         EFalse otherwise
       
    83     */
       
    84     virtual TBool OnLightPsToDeepPsTimerTimeout( WlanContextImpl& aCtxImpl );
       
    85     
       
    86 private:
       
    87 
       
    88     // from base class WlanDot11Associated
       
    89         
       
    90     /**
       
    91      * From ?base_class1.
       
    92      * ?description
       
    93      *
       
    94      * @since S60 3.1
       
    95      * @param ?arg1 ?description
       
    96      */
       
    97     virtual void Entry( WlanContextImpl& aCtxImpl );
       
    98 
       
    99     /**
       
   100      * From ?base_class1.
       
   101      * ?description
       
   102      *
       
   103      * @since S60 3.1
       
   104      * @param ?arg1 ?description
       
   105      */
       
   106     virtual void Exit( WlanContextImpl& aCtxImpl);
       
   107 
       
   108     /**
       
   109      * From ?base_class1.
       
   110      * ?description
       
   111      *
       
   112      * @since S60 3.1
       
   113      * @param ?arg1 ?description
       
   114      */
       
   115 #ifndef NDEBUG 
       
   116         virtual const TInt8* GetStateName( TUint8& aLength ) const;
       
   117 #endif // !NDEBUG 
       
   118 
       
   119     virtual TBool OnDot11PwrMgmtTransitRequired( WlanContextImpl& aCtxImpl );
       
   120                 
       
   121     // Prohibit copy constructor.
       
   122     WlanDot11InfrastructureNormalMode( const WlanDot11InfrastructureNormalMode& );
       
   123     // Prohibit assigment operator.
       
   124     WlanDot11InfrastructureNormalMode& operator= ( const WlanDot11InfrastructureNormalMode& );
       
   125 
       
   126 private: // data
       
   127     
       
   128 #ifndef NDEBUG 
       
   129     /**
       
   130      * name of the state
       
   131      */
       
   132     static const TInt8  iName[];
       
   133 #endif // !NDEBUG 
       
   134     };
       
   135 
       
   136 #endif      // C_WLANDOT11INFRASTRUCTURENORMALMODE_H