upnp/upnpstack/upnputils/inc/upnplist.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     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 "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:  Declares RList type
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CUPNPHEADERLIST_H
       
    21 #define C_CUPNPHEADERLIST_H
       
    22 // INCLUDES
       
    23 
       
    24 #include "upnphttpheader.h"
       
    25 #include <e32base.h>
       
    26 
       
    27 class CUpnpHttpHeaderList: public CBase
       
    28 {
       
    29 public:
       
    30 	/**
       
    31       * C++ default constructor.
       
    32     */
       
    33 	CUpnpHttpHeaderList();
       
    34        
       
    35 public:
       
    36 	/**
       
    37       * C++ default destructor.
       
    38     */
       
    39 	~CUpnpHttpHeaderList();
       
    40     
       
    41 public:
       
    42 	/**
       
    43       * Method deletes all objects from the list.
       
    44     */
       
    45 	void DeleteObjects();
       
    46 	
       
    47 	/**
       
    48       * Adds element to the list.
       
    49     */
       
    50 	void AddL(const CUpnpHttpHeader* aHeader);
       
    51 	
       
    52 	/**
       
    53       * Removes element from the list.
       
    54     */
       
    55 	IMPORT_C void Remove(const CUpnpHttpHeader* aHeader);
       
    56 	
       
    57 	/**
       
    58       * Returns the frist element of the list.
       
    59     */ 
       
    60 	IMPORT_C CUpnpHttpHeader* First();
       
    61 	
       
    62 	/**
       
    63       * Returns the number of elements in list.
       
    64     */
       
    65 	TInt Count() const;
       
    66 	
       
    67 	/**
       
    68     * Goes to the next element on the list.
       
    69     */
       
    70 	IMPORT_C CUpnpHttpHeader* Next(const CUpnpHttpHeader* aHeader);
       
    71 
       
    72 	
       
    73 	private:
       
    74 	/**
       
    75 	Header list
       
    76 	*/
       
    77 	RPointerArray<CUpnpHttpHeader> iHeaderList;
       
    78 	
       
    79 };
       
    80     
       
    81 #endif // C_CUPNPHEADERLIST_H
       
    82 
       
    83 //end of file