wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_handle_frame.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 handling a frame received from drivers
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_OPERATION_HANDLE_FRAME_H
       
    20 #define CORE_OPERATION_HANDLE_FRAME_H
       
    21 
       
    22 #include "core_operation_base.h"
       
    23 #include "core_frame_dot11.h"
       
    24 
       
    25 /**
       
    26  * Statemachine for handling a frame received from drivers
       
    27  *
       
    28  * @lib wlmserversrv.lib
       
    29  * @since S60 v3.1
       
    30  */
       
    31 NONSHARABLE_CLASS( core_operation_handle_frame_c ) : public core_operation_base_c
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     enum core_state_e
       
    37         {
       
    38         core_state_init = core_base_state_next,
       
    39         core_state_done,
       
    40         core_state_MAX
       
    41         };
       
    42 
       
    43     core_operation_handle_frame_c(
       
    44         u32_t request_id,
       
    45         core_server_c* server,
       
    46         abs_core_driverif_c* drivers,
       
    47         abs_core_server_callback_c* adaptation,
       
    48         core_frame_type_e frame_type,
       
    49         u16_t data_length,
       
    50         const u8_t* data );
       
    51 
       
    52     virtual ~core_operation_handle_frame_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:
       
    68 
       
    69     // Prohibit copy constructor
       
    70     core_operation_handle_frame_c(
       
    71         const core_operation_handle_frame_c& );
       
    72     // Prohibit assigment operator
       
    73     core_operation_handle_frame_c& operator=(
       
    74         const core_operation_handle_frame_c& );
       
    75 
       
    76 private: // data
       
    77 
       
    78     /** The type of the frame. */
       
    79     core_frame_type_e type_m;
       
    80 
       
    81     /** The frame length. */
       
    82     const u16_t data_length_m;
       
    83 
       
    84     /** Pointer to the frame data */
       
    85     u8_t* data_m;
       
    86 
       
    87     /** Pointer to the 802.11 frame */
       
    88     core_frame_dot11_c* frame_m;
       
    89     
       
    90     };
       
    91 
       
    92 #endif // CORE_OPERATION_HANDLE_FRAME_H