|
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 handling traffic stream deletion from network side. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 4 % |
|
20 */ |
|
21 |
|
22 #ifndef CORE_OPERATION_HANDLE_DELETE_TS_H |
|
23 #define CORE_OPERATION_HANDLE_DELETE_TS_H |
|
24 |
|
25 #include "core_operation_base.h" |
|
26 |
|
27 /** |
|
28 * Statemachine for handling traffic stream deletion from network side. |
|
29 * |
|
30 * @lib wlmserversrv.lib |
|
31 * @since S60 v3.2 |
|
32 */ |
|
33 NONSHARABLE_CLASS( core_operation_handle_delete_ts_c ) : public core_operation_base_c |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * The possible states of the operation. |
|
40 */ |
|
41 enum core_state_e |
|
42 { |
|
43 core_state_init = core_base_state_next, |
|
44 core_base_state_parameters_set, |
|
45 core_state_MAX |
|
46 }; |
|
47 |
|
48 /** |
|
49 * Constructor. |
|
50 */ |
|
51 core_operation_handle_delete_ts_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 u8_t tid ); |
|
57 |
|
58 virtual ~core_operation_handle_delete_ts_c(); |
|
59 |
|
60 protected: |
|
61 |
|
62 /** |
|
63 * This method is called when a pending request has been completed |
|
64 * and so sub-operations are pending. |
|
65 * |
|
66 * @since S60 v3.1 |
|
67 * @return status of the operation: |
|
68 * core_error_request_pending if the operation is not finished, |
|
69 * otherwise the status code of the finished operation |
|
70 */ |
|
71 core_error_e next_state(); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * Set the status of all virtual traffic streams with a matching TID |
|
77 * and send a notification to clients. |
|
78 * |
|
79 * @param tid TID to match against. |
|
80 * @param stream_status Stream status to set. |
|
81 */ |
|
82 void set_virtual_traffic_stream_inactive_by_tid( |
|
83 u8_t tid, |
|
84 core_traffic_stream_status_e stream_status ); |
|
85 |
|
86 private: // data |
|
87 |
|
88 /** |
|
89 * The TID of the traffic stream. |
|
90 */ |
|
91 u8_t tid_m; |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // CORE_OPERATION_HANDLE_DELETE_TS_H |