wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_ibss_merge.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 merging existing IBSS (ad hoc) network to another one
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_OPERATION_IBSS_MERGE_H
       
    20 #define CORE_OPERATION_IBSS_MERGE_H
       
    21 
       
    22 #include "core_operation_base.h"
       
    23 
       
    24 class core_frame_dot11_c;
       
    25 
       
    26 /**
       
    27  * Statemachine for merging existing IBSS (ad hoc) network to another one
       
    28  *
       
    29  * @lib wlmserversrv.lib
       
    30  * @since S60 v3.1
       
    31  */
       
    32 NONSHARABLE_CLASS( core_operation_ibss_merge_c ) : 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_merge_done,
       
    41         core_state_MAX
       
    42         };
       
    43 
       
    44     core_operation_ibss_merge_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         core_frame_dot11_c* frame );
       
    50 
       
    51     virtual ~core_operation_ibss_merge_c();
       
    52 
       
    53 protected:
       
    54 
       
    55     /**
       
    56      * This method is called when a pending request has been completed
       
    57      * and so sub-operations are pending.
       
    58      *
       
    59      * @since S60 v3.1
       
    60      * @return status of the operation:
       
    61      *     core_error_request_pending if the operation is not finished,
       
    62      *     otherwise the status code of the finished operation
       
    63      */
       
    64     core_error_e next_state();
       
    65 
       
    66 private: // data
       
    67 
       
    68     /** The beacon frame length. */
       
    69     core_frame_dot11_c* frame_m;
       
    70 
       
    71     /** Whether we are still connected to the network. */
       
    72     bool_t is_connected_m; 
       
    73 
       
    74     };
       
    75 
       
    76 #endif // CORE_OPERATION_IBSS_MERGE_H