Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // 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
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @file THTTPHdrFieldIter.h
20 @warning : This file contains Rose Model ID comments - please do not delete
23 #ifndef __THTTPHDRFIELDITER_H__
24 #define __THTTPHDRFIELDITER_H__
28 #include <stringpool.h>
30 // Forward declarations
34 //##ModelId=3A914DFD005C
35 class THTTPHdrFieldIter
37 Iterator class to iterate the fields within a RHTTPHeaders.
43 /** Construct an iterator for the fields of the supplied header collection.
44 @param aHeaders The header collection whose fields we want to iterate
46 //##ModelId=3A914DFD0087
47 THTTPHdrFieldIter(const CHeaders* aHeaders);
50 //##ModelId=3A914DFD0086
51 IMPORT_C ~THTTPHdrFieldIter();
53 /** Reset iterator to point at the first field in the header collection
55 //##ModelId=3A914DFD0085
56 IMPORT_C void First();
58 /** Check if the iterator is at the end of the collection. If so,
59 further calls to operator() will return NULL.
60 @return True if the iterator has reached the end of the header
63 //##ModelId=3A914DFD0084
64 IMPORT_C TBool AtEnd() const;
66 /** Advance the iterator to the next field.
67 @return True if the iterator still points at a valid part
70 //##ModelId=3A914DFD007E
71 IMPORT_C void operator++();
73 /** Obtain the name of the header field currently pointed at by
75 @return The field name; or <empty string> if the iterator has
76 gone off the end of the header collection
78 //##ModelId=3A914DFD007D
79 IMPORT_C RStringTokenF operator()();
83 /** Check the iterator state for invalidity following deletions in the collection
85 //##ModelId=3BA613240002
86 void CheckInvalidation();
88 /** The headers whose fields we are iterating.
90 //##ModelId=3A914DFD007A
91 const CHeaders* iHeaders;
92 /** The index of the field in the header that is currently pointed
95 //##ModelId=3A914DFD0072
99 inline THTTPHdrFieldIter::THTTPHdrFieldIter(const CHeaders* aHeaders)
106 #endif // __THTTPHDRFIELDITER_H__