epoc32/include/http/thttphdrfielditer.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- a/epoc32/include/http/thttphdrfielditer.h	Tue Mar 16 16:12:26 2010 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,106 +0,0 @@
     1.4 -// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -//
    1.18 -
    1.19 -
    1.20 -
    1.21 -/**
    1.22 - @file THTTPHdrFieldIter.h
    1.23 - @warning : This file contains Rose Model ID comments - please do not delete
    1.24 -*/
    1.25 -
    1.26 -#ifndef __THTTPHDRFIELDITER_H__
    1.27 -#define __THTTPHDRFIELDITER_H__
    1.28 -
    1.29 -// System includes
    1.30 -#include <e32std.h>
    1.31 -#include <stringpool.h>
    1.32 -
    1.33 -// Forward declarations
    1.34 -class CHeaders;
    1.35 -
    1.36 -
    1.37 -//##ModelId=3A914DFD005C
    1.38 -class THTTPHdrFieldIter
    1.39 -/** 
    1.40 -Iterator class to iterate the fields within a RHTTPHeaders. 
    1.41 -@publishedAll
    1.42 -@released
    1.43 -*/
    1.44 -	{
    1.45 -public:
    1.46 -	/** Construct an iterator for the fields of the supplied header collection.
    1.47 -		@param aHeaders The header collection whose fields we want to iterate
    1.48 -	*/
    1.49 -	//##ModelId=3A914DFD0087
    1.50 -	THTTPHdrFieldIter(const CHeaders* aHeaders);
    1.51 -	/** Class destructor
    1.52 -	*/
    1.53 -	//##ModelId=3A914DFD0086
    1.54 -	IMPORT_C ~THTTPHdrFieldIter();
    1.55 -
    1.56 -	/** Reset iterator to point at the first field in the header collection
    1.57 -	*/
    1.58 -	//##ModelId=3A914DFD0085
    1.59 -	IMPORT_C void First();
    1.60 -
    1.61 -	/** Check if the iterator is at the end of the collection. If so,
    1.62 -	    further calls to operator() will return NULL.
    1.63 -		@return True if the iterator has reached the end of the header
    1.64 -		fields 
    1.65 -	*/
    1.66 -	//##ModelId=3A914DFD0084
    1.67 -	IMPORT_C TBool AtEnd() const;
    1.68 -
    1.69 -	/** Advance the iterator to the next field.
    1.70 -		@return True if the iterator still points at a valid part
    1.71 -		after advancing.
    1.72 -	*/
    1.73 -	//##ModelId=3A914DFD007E
    1.74 -	IMPORT_C void operator++();
    1.75 -
    1.76 -	/** Obtain the name of the header field currently pointed at by
    1.77 -		the iterator.
    1.78 -		@return The field name; or <empty string> if the iterator has
    1.79 -		gone off the end of the header collection 
    1.80 -	*/
    1.81 -	//##ModelId=3A914DFD007D
    1.82 -	IMPORT_C RStringTokenF operator()();
    1.83 -
    1.84 -private:
    1.85 -
    1.86 -	/** Check the iterator state for invalidity following deletions in the collection
    1.87 -	*/
    1.88 -	//##ModelId=3BA613240002
    1.89 -	void CheckInvalidation();
    1.90 -
    1.91 -	/** The headers whose fields we are iterating.
    1.92 -	*/
    1.93 -	//##ModelId=3A914DFD007A
    1.94 -	const CHeaders* iHeaders;
    1.95 -	/** The index of the field in the header that is currently pointed
    1.96 -		at by the iterator
    1.97 -	*/
    1.98 -	//##ModelId=3A914DFD0072
    1.99 -	TInt iPosIdx;
   1.100 -	};
   1.101 -
   1.102 -inline THTTPHdrFieldIter::THTTPHdrFieldIter(const CHeaders* aHeaders)
   1.103 -	: iHeaders(aHeaders)
   1.104 -	{
   1.105 -	First();
   1.106 -	}
   1.107 -
   1.108 -
   1.109 -#endif // __THTTPHDRFIELDITER_H__