|
1 /* |
|
2 * Copyright (c) 2007-2008 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 "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: Iterator for a virtual traffic stream list. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 1 % |
|
20 */ |
|
21 |
|
22 #ifndef CORE_VIRTUAL_TRAFFIC_STREAM_LIST_ITER_H |
|
23 #define CORE_VIRTUAL_TRAFFIC_STREAM_LIST_ITER_H |
|
24 |
|
25 #include "core_virtual_traffic_stream_list.h" |
|
26 |
|
27 /** |
|
28 * This class implements an iterator for a virtual_traffic stream list. |
|
29 * |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( core_virtual_traffic_stream_list_iter_c ) |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Constructor. |
|
39 * |
|
40 * @param list Reference to the list being iterated. |
|
41 */ |
|
42 core_virtual_traffic_stream_list_iter_c( |
|
43 core_virtual_traffic_stream_list_c& list ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~core_virtual_traffic_stream_list_iter_c(); |
|
49 |
|
50 /** |
|
51 * Return the first entry in the list. |
|
52 * |
|
53 * @return The first entry in the list. NULL if none. |
|
54 */ |
|
55 core_virtual_traffic_stream_c* first(); |
|
56 |
|
57 /** |
|
58 * Return the next entry in the list. |
|
59 * |
|
60 * @return The next entry in the list. NULL if none. |
|
61 */ |
|
62 core_virtual_traffic_stream_c* next(); |
|
63 |
|
64 /** |
|
65 * Return the current entry in the list. |
|
66 * |
|
67 * @return The current entry in the list. NULL if none. |
|
68 */ |
|
69 core_virtual_traffic_stream_c* current() const; |
|
70 |
|
71 /** |
|
72 * Remove the current entry from the list. |
|
73 * |
|
74 * @return core_error_ok if removed successfully, an error code otherwise. |
|
75 */ |
|
76 core_error_e remove(); |
|
77 |
|
78 private: // data |
|
79 |
|
80 /** |
|
81 * An iterator for iterating the list. |
|
82 */ |
|
83 core_type_list_iterator_c<core_virtual_traffic_stream_list_c::entry_s> iter_m; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // CORE_VIRTUAL_TRAFFIC_STREAM_LIST_ITER_H |