wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_update_tx_rate_policies.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Statemachine for creating a traffic stream.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_OPERATION_UPDATE_TX_RATE_POLICIES_H
       
    20 #define CORE_OPERATION_UPDATE_TX_RATE_POLICIES_H
       
    21 
       
    22 #include "core_operation_base.h"
       
    23 #include "core_ap_data.h"
       
    24 
       
    25 /**
       
    26  * Statemachine for updating the currently active TX rate policies.
       
    27  *
       
    28  * @lib wlmserversrv.lib
       
    29  * @since S60 v3.2
       
    30  */
       
    31 NONSHARABLE_CLASS( core_operation_update_tx_rate_policies_c ) :
       
    32     public core_operation_base_c
       
    33     {
       
    34 
       
    35 public:
       
    36 
       
    37     enum core_state_e
       
    38         {
       
    39         core_state_init = core_base_state_next,
       
    40         core_state_success,
       
    41         core_state_MAX
       
    42         };
       
    43 
       
    44     enum core_ap_type_e
       
    45         {
       
    46         core_ap_type_802p11b_only,
       
    47         core_ap_type_802p11g_only,
       
    48         core_ap_type_802p11bg
       
    49         };
       
    50 
       
    51     /**
       
    52      * Constructor.
       
    53      */
       
    54     core_operation_update_tx_rate_policies_c(
       
    55         u32_t request_id,
       
    56         core_server_c* server,
       
    57         abs_core_driverif_c* drivers,
       
    58         abs_core_server_callback_c* adaptation,
       
    59         core_ap_data_c& ap_data );
       
    60 
       
    61     /**
       
    62      * Constructor.
       
    63      */
       
    64     core_operation_update_tx_rate_policies_c(
       
    65         u32_t request_id,
       
    66         core_server_c* server,
       
    67         abs_core_driverif_c* drivers,
       
    68         abs_core_server_callback_c* adaptation );
       
    69 
       
    70     /**
       
    71      * Destructor.
       
    72      */
       
    73     virtual ~core_operation_update_tx_rate_policies_c();
       
    74 
       
    75 protected:
       
    76 
       
    77     /**
       
    78      * This method is called when a pending request has been completed
       
    79      * and so sub-operations are pending.
       
    80      *
       
    81      * @since S60 v3.1
       
    82      * @return status of the operation:
       
    83      *     core_error_request_pending if the operation is not finished,
       
    84      *     otherwise the status code of the finished operation
       
    85      */
       
    86     core_error_e next_state();
       
    87 
       
    88 private: // data
       
    89 
       
    90     /** The AP to be parsed for supported rates. Not owned by this pointer. */
       
    91     core_ap_data_c* current_ap_m;
       
    92 
       
    93     };
       
    94 
       
    95 #endif // CORE_OPERATION_UPDATE_TX_RATE_POLICIES_H