wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_release.h
changeset 0 c40eb8fe8501
child 24 e717b8f55620
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 connection release
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_OPERATION_RELEASE_H
       
    20 #define CORE_OPERATION_RELEASE_H
       
    21 
       
    22 #include "core_operation_base.h"
       
    23 
       
    24 class core_server_c;
       
    25 
       
    26 /**
       
    27  * Statemachine for releasing the connection
       
    28  *
       
    29  * @lib wlmserversrv.lib
       
    30  * @since S60 v3.1
       
    31  */
       
    32 NONSHARABLE_CLASS( core_operation_release_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_disable_user_data,
       
    41         core_state_tx_power_level,
       
    42         core_state_disconnect,
       
    43         core_state_MAX
       
    44         };
       
    45 
       
    46     /**
       
    47      * Constructor.
       
    48      */
       
    49     core_operation_release_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         core_release_reason_e reason );
       
    55 
       
    56     /**
       
    57      * Destructor.
       
    58      */
       
    59     virtual ~core_operation_release_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 v3.1
       
    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     /**
       
    75      * This method is called when user want the operation to be canceled.
       
    76      *
       
    77      * @since S60 v3.2
       
    78      * @param do_graceful_cancel Whether cancel should be graceful or forced.
       
    79      */
       
    80     void user_cancel(
       
    81         bool_t do_graceful_cancel );
       
    82 
       
    83 private: // data
       
    84 
       
    85     /**
       
    86      * The reason the operation was started.
       
    87      */
       
    88     core_release_reason_e reason_m;
       
    89 
       
    90     };
       
    91 
       
    92 #endif // CORE_OPERATION_RELEASE_H