wlan_bearer/wlanldd/wlan_common/umac_common/inc/UmacDot11OpenAuthPending.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-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 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 WlanDot11OpenAuthPending class
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 14 %
       
    20 */
       
    21 
       
    22 #ifndef WLANDOT11OPENAUTHPENDING_H
       
    23 #define WLANDOT11OPENAUTHPENDING_H
       
    24 
       
    25 #include "UmacDot11AuthenticatePending.h"
       
    26 
       
    27 /**
       
    28 *  A class that implements dot11 open mode authentication frame exchange.
       
    29 *  This is a state where authentication request has been send
       
    30 *  to an AP and response to it is waited.
       
    31 *
       
    32 *  @lib wlanumac.lib
       
    33 *  @since S60 v3.1
       
    34 */
       
    35 class WlanDot11OpenAuthPending : public WlanDot11AuthenticatePending
       
    36     {
       
    37 public:
       
    38    
       
    39     /**
       
    40     * C++ default constructor.
       
    41     */
       
    42     WlanDot11OpenAuthPending() {};
       
    43 
       
    44     /**
       
    45     * Destructor.
       
    46     */
       
    47     virtual ~WlanDot11OpenAuthPending() {};
       
    48     
       
    49 protected:    
       
    50 
       
    51     // Functions from base classes
       
    52 
       
    53     /**
       
    54     * From ?base_class ?member_description.
       
    55     * Sets the used authentication number to authenticate message
       
    56     * @since S60 3.1
       
    57     * @param aCtxImpl global statemachine context
       
    58     */
       
    59     virtual void OnSetAlgorithmNumber( WlanContextImpl& aCtxImpl );
       
    60 
       
    61     /**
       
    62     * From ?base_class ?member_description.
       
    63     * Returns the states name
       
    64     * @since S60 3.1
       
    65     * @param aLength (OUT) length of the name of the state
       
    66     * @return name of the state
       
    67     */
       
    68 #ifndef NDEBUG 
       
    69         virtual const TInt8* GetStateName( TUint8& aLength ) const;
       
    70 #endif // !NDEBUG 
       
    71 
       
    72     /**
       
    73     * From ?base_class ?member_description.
       
    74     * @since S60 3.1
       
    75     * @param aCtxImpl global statemachine context
       
    76     * @param aRcpi RCPI of the frame
       
    77     * @param aFlags flags from WHA frame receive method
       
    78     * @param aBuffer pointer to the beginning of the Rx buffer allocated
       
    79     *        for the frame
       
    80     */
       
    81     virtual void OnReceiveFrameSuccess(
       
    82         WlanContextImpl& aCtxImpl,
       
    83         const void* aFrame,
       
    84         TUint16 aLength,
       
    85         WHA::TRcpi aRcpi,
       
    86         TUint32 aFlags,
       
    87         TUint8* aBuffer );
       
    88 
       
    89     /**
       
    90     * From ?base_class ?member_description.
       
    91     * @since S60 3.1
       
    92     * @param aCtxImpl global statemachine context
       
    93     */
       
    94     virtual void OnStateEntryEvent( WlanContextImpl& aCtxImpl );
       
    95 
       
    96     /**
       
    97     * From ?base_class ?member_description.
       
    98     * @since S60 3.1
       
    99     * @param aCtxImpl global statemachine context
       
   100     */
       
   101     virtual void OnRxAuthResponseEvent( WlanContextImpl& aCtxImpl );
       
   102 
       
   103 private:
       
   104 
       
   105     // Prohibit copy constructor 
       
   106     WlanDot11OpenAuthPending( 
       
   107         const WlanDot11OpenAuthPending& );
       
   108     // Prohibit assigment operator
       
   109     WlanDot11OpenAuthPending& operator= ( 
       
   110         const WlanDot11OpenAuthPending& );
       
   111         
       
   112 protected:   // Data
       
   113 
       
   114 #ifndef NDEBUG
       
   115     /** name of the state */
       
   116     static const TInt8  iName[];        
       
   117 #endif // !NDEBUG
       
   118     };
       
   119 
       
   120 #endif      // WLANDOT11OPENAUTHPENDING_H
       
   121