wlan_bearer/wlanldd/wlan_common/umac_common/inc/UmacWsaWriteMib.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-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 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 WlanWsaWriteMib class.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 8 %
       
    20 */
       
    21 
       
    22 #ifndef WLANWSAWRITEMIB_H
       
    23 #define WLANWSAWRITEMIB_H
       
    24 
       
    25 #include "UmacWsaCommand.h"
       
    26 
       
    27 /**
       
    28 *  WHA WriteMib command object encapsulation
       
    29 *  
       
    30 *
       
    31 *  @lib wlanumac.lib
       
    32 *  @since S60 3.1
       
    33 */
       
    34 class WlanWsaWriteMib : public WlanWsaCommand
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /**
       
    40     * C++ default constructor.
       
    41     */
       
    42     WlanWsaWriteMib() : 
       
    43         iDfcPending( EFalse ),
       
    44         iMib( static_cast<WHA::TMib>(0) ),
       
    45         iLength( 0 ),
       
    46         iData( NULL ) {};
       
    47 
       
    48     /**
       
    49     * Destructor.
       
    50     */
       
    51     virtual inline ~WlanWsaWriteMib();
       
    52 
       
    53     inline void Set( 
       
    54         WlanContextImpl& aCtxImpl, 
       
    55         WHA::TMib aMib,
       
    56         TUint32 aLength,
       
    57         const TAny* aData );
       
    58 
       
    59 private:
       
    60 
       
    61     virtual void Entry( WlanContextImpl& aCtxImpl );
       
    62     virtual void Exit( WlanContextImpl& aCtxImpl);
       
    63 
       
    64     virtual void CommandResponse( 
       
    65         WlanContextImpl& aCtxImpl, 
       
    66         WHA::TCommandId aCommandId, 
       
    67         WHA::TStatus aStatus,
       
    68         const WHA::UCommandResponseParams& aCommandResponseParams );
       
    69 
       
    70     virtual void OnDfc( TAny* aCtx );
       
    71 
       
    72 #ifndef NDEBUG 
       
    73     virtual const TInt8* GetStateName( TUint8& aLength ) const;
       
    74 #endif // !NDEBUG 
       
    75 
       
    76     inline void RegisterDfc();
       
    77     inline void CancelDfc();
       
    78     inline void DfcPending( TBool aValue );
       
    79     inline TBool DfcPending() const;
       
    80 
       
    81     // Prohibit copy constructor.
       
    82     WlanWsaWriteMib( const WlanWsaWriteMib& );
       
    83     // Prohibit assigment operator.
       
    84     WlanWsaWriteMib& operator= ( const WlanWsaWriteMib& );
       
    85 
       
    86 private:    // Data
       
    87 
       
    88 #ifndef NDEBUG 
       
    89     static const TInt8  iName[];
       
    90 #endif
       
    91 
       
    92     TBool               iDfcPending;
       
    93     WHA::TMib           iMib;
       
    94     TUint32             iLength;
       
    95     /**
       
    96     * Pointer to MIB data
       
    97     * Not own
       
    98     */
       
    99     const TAny*         iData;
       
   100     };
       
   101 
       
   102 #include "UmacWsaWriteMib.inl"
       
   103 
       
   104 #endif      // WLANWSAWRITEMIB_H