|
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 unloading the drivers |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CORE_OPERATION_UNLOAD_DRIVERS_H |
|
20 #define CORE_OPERATION_UNLOAD_DRIVERS_H |
|
21 |
|
22 #include "core_operation_base.h" |
|
23 |
|
24 const u32_t DELAY_FOR_AGENT = 100000; // 0,1 seconds |
|
25 |
|
26 class core_server_c; |
|
27 |
|
28 /** |
|
29 * Statemachine for unloading the drivers |
|
30 * |
|
31 * @lib wlmserversrv.lib |
|
32 * @since S60 v3.1 |
|
33 */ |
|
34 NONSHARABLE_CLASS( core_operation_unload_drivers_c ) : public core_operation_base_c |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 enum core_state_e |
|
40 { |
|
41 core_state_init = core_base_state_next, |
|
42 core_state_notifying, |
|
43 core_state_releasing, |
|
44 core_state_unloading, |
|
45 core_state_MAX |
|
46 }; |
|
47 |
|
48 /** |
|
49 * Constructor. |
|
50 */ |
|
51 core_operation_unload_drivers_c( |
|
52 u32_t request_id, |
|
53 core_server_c* server, |
|
54 abs_core_driverif_c* drivers, |
|
55 abs_core_server_callback_c* adaptation ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~core_operation_unload_drivers_c(); |
|
61 |
|
62 protected: |
|
63 |
|
64 /** |
|
65 * This method is called when a pending request has been completed |
|
66 * and so sub-operations are pending. |
|
67 * |
|
68 * @since S60 v3.1 |
|
69 * @return status of the operation: |
|
70 * core_error_request_pending if the operation is not finished, |
|
71 * otherwise the status code of the finished operation |
|
72 */ |
|
73 core_error_e next_state(); |
|
74 |
|
75 private: // data |
|
76 |
|
77 }; |
|
78 |
|
79 #endif // CORE_OPERATION_UNLOAD_DRIVERS_H |