wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_set_arp_filter.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2008-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:  State machine for updating arp filter
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_OPERATION_SET_ARP_FILTER_H
       
    20 #define CORE_OPERATION_SET_ARP_FILTER_H
       
    21 
       
    22 #include "core_operation_base.h"
       
    23 
       
    24 /**
       
    25  * Statemachine for updating the device ARP filter.
       
    26  *
       
    27  * @lib wlmserversrv.lib
       
    28  * @since S60 v5.0
       
    29  */
       
    30 NONSHARABLE_CLASS( core_operation_set_arp_filter_c ) : public core_operation_base_c
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     /** The possible states of the operation. */
       
    36     enum core_state_e
       
    37         {
       
    38         core_state_init = core_base_state_next,
       
    39         core_state_set_arp_filter,
       
    40         core_state_MAX
       
    41         };
       
    42 
       
    43     /**
       
    44      * Constructor.
       
    45      * 
       
    46      * When the operation is instantiated, the ARP filter
       
    47      * is passed as an argument.
       
    48      */
       
    49     core_operation_set_arp_filter_c(
       
    50         u32_t request_id,
       
    51         core_server_c* server,
       
    52         abs_core_driverif_c* drivers,
       
    53         abs_core_server_callback_c* adaptation,
       
    54         const core_arp_filter_s& filter );
       
    55 
       
    56     /**
       
    57      * Destructor.
       
    58      */
       
    59     virtual ~core_operation_set_arp_filter_c();
       
    60 
       
    61 protected:
       
    62 
       
    63     /**
       
    64      * This method is called when a pending request has been completed
       
    65      * and so sub-operations are pending.
       
    66      *
       
    67      * @since S60 v5.0
       
    68      * @return status of the operation:
       
    69      *     core_error_request_pending if the operation is not finished,
       
    70      *     otherwise the status code of the finished operation
       
    71      */
       
    72     core_error_e next_state();
       
    73 
       
    74 private: // data
       
    75 
       
    76     /** ARP filter is stored here. */
       
    77     const core_arp_filter_s arp_filter_m;
       
    78     
       
    79     };
       
    80 
       
    81 #endif // CORE_OPERATION_SET_ARP_FILTER_H