wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_frame_wmm_ie.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2006-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:  Class for parsing WMM QoS IEs.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_FRAME_WMM_IE_H
       
    20 #define CORE_FRAME_WMM_IE_H
       
    21 
       
    22 #include "core_frame_dot11_ie.h"
       
    23 #include "core_types.h"
       
    24 
       
    25 /**
       
    26  * Class for parsing WMM Parameter Element IE.
       
    27  *
       
    28  * @since S60 v3.2
       
    29  */
       
    30 NONSHARABLE_CLASS( core_frame_wmm_ie_parameter_c ) : public core_frame_dot11_ie_c
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Factory for creating a parser instance.
       
    37      *
       
    38      * @since S60 v3.1
       
    39      * @param ie Pointer to the IE data.
       
    40      * @return A pointer to the created IE instance.
       
    41      */
       
    42     static core_frame_wmm_ie_parameter_c* instance(
       
    43         const core_frame_dot11_ie_c& ie );
       
    44 
       
    45     /** 
       
    46      * Destructor.
       
    47      */
       
    48     virtual ~core_frame_wmm_ie_parameter_c();
       
    49 
       
    50     /**
       
    51      * Return the Version field.
       
    52      * @return The Version field.
       
    53      */
       
    54     u8_t version() const;
       
    55 
       
    56     /**
       
    57      * Return whether U-APSD is supported.
       
    58      * @return Whether U-APSD is supported.
       
    59      */
       
    60     bool_t is_uapsd_supported() const;
       
    61 
       
    62     /**
       
    63      * Return whether Admission Control is mandatory for the given access class.
       
    64      * @return Whether Admission Control is mandatory for the given access class.
       
    65      */
       
    66     bool_t is_admission_control_required(
       
    67         core_access_class_e access_class ) const;
       
    68 
       
    69 private:
       
    70 
       
    71     /**
       
    72      * Constructor
       
    73      *
       
    74      * @param data_length Length of the IE data.
       
    75      * @param data Pointer to the IE data.     
       
    76      */
       
    77     core_frame_wmm_ie_parameter_c(
       
    78        u16_t data_length,
       
    79        const u8_t* data,
       
    80        u16_t max_data_length );
       
    81 
       
    82     };
       
    83 
       
    84 #endif // CORE_FRAME_WMM_IE_H