wlan_bearer/wlanldd/wlan_common/umac_common/inc/UmacWsaEvent.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-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 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 MWlanWsaEvent class.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 15 %
       
    20 */
       
    21 
       
    22 #ifndef WLANWSAEVENT_H
       
    23 #define WLANWSAEVENT_H
       
    24 
       
    25 #ifndef RD_WLAN_DDK
       
    26 #include <wha.h>
       
    27 #else
       
    28 #include <wlanwha.h>
       
    29 #endif
       
    30 
       
    31 class WlanContextImpl;
       
    32 
       
    33 /**
       
    34 *  interface for evenets generated by WHA 
       
    35 *
       
    36 *  @lib wlanumac.lib
       
    37 *  @since S60 3.1
       
    38 */
       
    39 class MWlanWsaEvent
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * C++ default constructor.
       
    45         */
       
    46         MWlanWsaEvent() {};
       
    47         
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~MWlanWsaEvent() {};
       
    52 
       
    53     public: // New functions
       
    54 
       
    55         // Command callbacks
       
    56 
       
    57         virtual void CommandResponse( 
       
    58             WlanContextImpl& aCtxImpl, 
       
    59             WHA::TCommandId aCommandId, 
       
    60             WHA::TStatus aStatus,
       
    61             const WHA::UCommandResponseParams& aCommandResponseParams ) = 0;
       
    62 
       
    63         virtual TBool CommandComplete( 
       
    64             WlanContextImpl& aCtxImpl, 
       
    65             WHA::TCompleteCommandId aCompleteCommandId, 
       
    66             WHA::TStatus aStatus,
       
    67             const WHA::UCommandCompletionParams& 
       
    68             aCommandCompletionParams ) = 0;
       
    69 
       
    70         virtual void Indication( 
       
    71             WlanContextImpl& aCtxImpl, 
       
    72             WHA::TIndicationId aIndicationId,
       
    73             const WHA::UIndicationParams& aIndicationParams ) = 0;
       
    74 
       
    75         // Frame receive
       
    76 
       
    77         virtual TAny* RequestForBuffer ( 
       
    78             WlanContextImpl& aCtxImpl,             
       
    79             TUint16 aLength ) = 0;
       
    80 
       
    81         virtual void ReceivePacket( 
       
    82             WlanContextImpl& aCtxImpl, 
       
    83             WHA::TStatus aStatus,
       
    84             const void* aFrame,
       
    85             TUint16 aLength,
       
    86             WHA::TRate aRate,
       
    87             WHA::TRcpi aRcpi,
       
    88             WHA::TChannelNumber aChannel,
       
    89             TUint8* aBuffer,
       
    90             TUint32 aFlags ) = 0;
       
    91     };
       
    92 
       
    93 #endif      // WLANWSAEVENT_H