wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_operation_unload_drivers.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 14:40:09 +0300
branchRCL_3
changeset 21 af3fb27c7511
parent 0 c40eb8fe8501
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Statemachine for unloading the drivers
*
*/


#ifndef CORE_OPERATION_UNLOAD_DRIVERS_H
#define CORE_OPERATION_UNLOAD_DRIVERS_H

#include "core_operation_base.h"

const u32_t DELAY_FOR_AGENT = 500000; // 0,5 seconds

class core_server_c;

/**
 * Statemachine for unloading the drivers
 *
 * @lib wlmserversrv.lib
 * @since S60 v3.1
 */
NONSHARABLE_CLASS( core_operation_unload_drivers_c ) : public core_operation_base_c
    {

public:

    enum core_state_e
        {
        core_state_init = core_base_state_next,
        core_state_notifying,
        core_state_releasing,
        core_state_unloading,
        core_state_MAX
        };

    /**
     * Constructor.
     */
    core_operation_unload_drivers_c(
        u32_t request_id,
        core_server_c* server,        
        abs_core_driverif_c* drivers,
        abs_core_server_callback_c* adaptation );

    /**
     * Destructor.
     */
    virtual ~core_operation_unload_drivers_c();

protected:

    /**
     * This method is called when a pending request has been completed
     * and so sub-operations are pending.
     *
     * @since S60 v3.1
     * @return status of the operation:
     *     core_error_request_pending if the operation is not finished,
     *     otherwise the status code of the finished operation
     */
    core_error_e next_state();

private: // data

    };

#endif // CORE_OPERATION_UNLOAD_DRIVERS_H