wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/src/core_traffic_stream_list_iter.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/src/core_traffic_stream_list_iter.cpp Tue Feb 02 02:03:13 2010 +0200
@@ -0,0 +1,89 @@
+/*
+* Copyright (c) 2007-2008 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: Iterator for traffic stream list.
+*
+*/
+
+/*
+* %version: %
+*/
+
+#include "core_traffic_stream_list_iter.h"
+
+// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
+//
+core_traffic_stream_list_iter_c::core_traffic_stream_list_iter_c(
+ core_traffic_stream_list_c& list ) :
+ iter_m( list.ts_list_m )
+ {
+ }
+
+// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
+//
+core_traffic_stream_list_iter_c::~core_traffic_stream_list_iter_c()
+ {
+ }
+
+// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
+//
+core_traffic_stream_c* core_traffic_stream_list_iter_c::first()
+ {
+ core_traffic_stream_list_c::entry_s* entry = iter_m.first();
+ if ( entry )
+ {
+ return entry->traffic_stream;
+ }
+
+ return NULL;
+ }
+
+// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
+//
+core_traffic_stream_c* core_traffic_stream_list_iter_c::next()
+ {
+ core_traffic_stream_list_c::entry_s* entry = iter_m.next();
+ if ( entry )
+ {
+ return entry->traffic_stream;
+ }
+
+ return NULL;
+ }
+
+// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
+//
+core_traffic_stream_c* core_traffic_stream_list_iter_c::current() const
+ {
+ core_traffic_stream_list_c::entry_s* entry = iter_m.current();
+ if ( entry )
+ {
+ return entry->traffic_stream;
+ }
+
+ return NULL;
+ }
+
+
+// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
+//
+core_error_e core_traffic_stream_list_iter_c::remove()
+ {
+ return iter_m.remove();
+ }