diff -r 000000000000 -r c40eb8fe8501 wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_virtual_traffic_stream_list_iter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_virtual_traffic_stream_list_iter.h Tue Feb 02 02:03:13 2010 +0200 @@ -0,0 +1,87 @@ +/* +* 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 "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 a virtual traffic stream list. +* +*/ + +/* +* %version: 1 % +*/ + +#ifndef CORE_VIRTUAL_TRAFFIC_STREAM_LIST_ITER_H +#define CORE_VIRTUAL_TRAFFIC_STREAM_LIST_ITER_H + +#include "core_virtual_traffic_stream_list.h" + +/** + * This class implements an iterator for a virtual_traffic stream list. + * + * @since S60 v3.2 + */ +NONSHARABLE_CLASS( core_virtual_traffic_stream_list_iter_c ) + { + +public: + + /** + * Constructor. + * + * @param list Reference to the list being iterated. + */ + core_virtual_traffic_stream_list_iter_c( + core_virtual_traffic_stream_list_c& list ); + + /** + * Destructor. + */ + virtual ~core_virtual_traffic_stream_list_iter_c(); + + /** + * Return the first entry in the list. + * + * @return The first entry in the list. NULL if none. + */ + core_virtual_traffic_stream_c* first(); + + /** + * Return the next entry in the list. + * + * @return The next entry in the list. NULL if none. + */ + core_virtual_traffic_stream_c* next(); + + /** + * Return the current entry in the list. + * + * @return The current entry in the list. NULL if none. + */ + core_virtual_traffic_stream_c* current() const; + + /** + * Remove the current entry from the list. + * + * @return core_error_ok if removed successfully, an error code otherwise. + */ + core_error_e remove(); + +private: // data + + /** + * An iterator for iterating the list. + */ + core_type_list_iterator_c iter_m; + + }; + +#endif // CORE_VIRTUAL_TRAFFIC_STREAM_LIST_ITER_H