wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_configure_multicast_group.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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 configuring multicast address to drivers
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_OPERATION_CONFIGURE_MULTICAST_GROUP_H
       
    20 #define CORE_OPERATION_CONFIGURE_MULTICAST_GROUP_H
       
    21 
       
    22 #include "core_operation_base.h"
       
    23 
       
    24 /**
       
    25  * Statemachine for configuring multicast address to drivers.
       
    26  * (driver sw performs multicast address filtering)
       
    27  *
       
    28  * @lib wlmserversrv.lib
       
    29  * @since S60 v3.1
       
    30  */
       
    31 NONSHARABLE_CLASS( core_operation_configure_multicast_group_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_req_configure_multicast_group,
       
    41         core_state_MAX
       
    42         };
       
    43 
       
    44     core_operation_configure_multicast_group_c(
       
    45         u32_t request_id,
       
    46         core_server_c* server,
       
    47         abs_core_driverif_c* drivers,
       
    48         abs_core_server_callback_c* adaptation,
       
    49         bool_t join_group,
       
    50         const core_mac_address_s& multicast_addr );
       
    51 
       
    52     virtual ~core_operation_configure_multicast_group_c();
       
    53 
       
    54 protected:
       
    55 
       
    56     /**
       
    57      * This method is called when a pending request has been completed
       
    58      * and so sub-operations are pending.
       
    59      *
       
    60      * @since S60 v3.1
       
    61      * @return status of the operation:
       
    62      *     core_error_request_pending if the operation is not finished,
       
    63      *     otherwise the status code of the finished operation
       
    64      */
       
    65     core_error_e next_state();
       
    66 
       
    67 private: // data
       
    68 
       
    69     /** whether adding or removing address */
       
    70     bool_t is_join_m;
       
    71     
       
    72     /** multicast mac address to add */
       
    73     const core_mac_address_s multicast_addr_m;
       
    74     };
       
    75 
       
    76 #endif // CORE_OPERATION_CONFIGURE_MULTICAST_GROUP_H