wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_set_power_save_settings.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2006-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 setting the power save settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_OPERATION_SET_POWER_SAVE_SETTINGS_H
       
    20 #define CORE_OPERATION_SET_POWER_SAVE_SETTINGS_H
       
    21 
       
    22 #include "core_operation_base.h"
       
    23 
       
    24 /**
       
    25  * Statemachine for setting the power save settings.
       
    26  *
       
    27  * @lib wlmserversrv.lib
       
    28  * @since S60 v3.1
       
    29  */
       
    30 NONSHARABLE_CLASS( core_operation_set_power_save_settings_c ) : public core_operation_base_c
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     enum core_state_e
       
    36         {
       
    37         core_state_init = core_base_state_next,
       
    38         core_state_set_power_save_settings,
       
    39         core_state_MAX
       
    40         };
       
    41 
       
    42     core_operation_set_power_save_settings_c(
       
    43         u32_t request_id,
       
    44         core_server_c* server,
       
    45         abs_core_driverif_c* drivers,
       
    46         abs_core_server_callback_c* adaptation,
       
    47         const core_power_save_settings_s& settings );
       
    48 
       
    49     virtual ~core_operation_set_power_save_settings_c();
       
    50 
       
    51 protected:
       
    52 
       
    53     /**
       
    54      * This method is called when a pending request has been completed
       
    55      * and so sub-operations are pending.
       
    56      *
       
    57      * @since S60 v3.1
       
    58      * @return status of the operation:
       
    59      *     core_error_request_pending if the operation is not finished,
       
    60      *     otherwise the status code of the finished operation
       
    61      */
       
    62     core_error_e next_state();
       
    63 
       
    64 private: // data
       
    65 
       
    66     /** Power save settings are stored here. */
       
    67     const core_power_save_settings_s power_save_settings_m;
       
    68 
       
    69     };
       
    70 
       
    71 #endif // CORE_OPERATION_SET_POWER_SAVE_SETTINGS_H