epoc32/include/mw/httpheaderiter.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 // Copyright (c) 2003-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 "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __HTTPHEADERITER_H__
    17 #define __HTTPHEADERITER_H__
    18 
    19 #include <e32base.h>
    20 #include <thttpheadervaluevariant.h>
    21 class CHeaders;
    22 class CHeaderField;
    23 class CHeaderFieldPart;
    24 class CHeaderFieldParam;
    25 
    26 class THttpHeaderParamIterator
    27 {
    28 friend class THttpHeaderElementIterator;
    29 friend class THttpHeaderIterator;
    30 
    31 public:
    32 IMPORT_C THttpHeaderParamIterator operator++ (TInt);
    33 IMPORT_C THttpHeaderParamIterator& operator++ ();
    34 IMPORT_C TBool	AtEnd() const;
    35 IMPORT_C const TDesC8& Name() const;
    36 IMPORT_C THttpHeaderValueVariant Value() const;
    37 IMPORT_C THttpHeaderParamIterator();
    38 private:
    39     IMPORT_C THttpHeaderParamIterator(const RPointerArray<CHeaderFieldParam>* aArray, TInt aIndex = 0);
    40 
    41 private:
    42 const RPointerArray<CHeaderFieldParam>*     iParameterArray; 
    43 TInt iPostIdx;
    44 };
    45 
    46 class THttpHeaderElementIterator
    47 {
    48 friend class THttpHeaderIterator;
    49 friend class CHttpClientTransaction;
    50 public:
    51 IMPORT_C THttpHeaderElementIterator operator++ (TInt);
    52 IMPORT_C THttpHeaderElementIterator& operator++ ();
    53 IMPORT_C TBool AtEnd() const;
    54 IMPORT_C THttpHeaderValueVariant Value() const;
    55 IMPORT_C THttpHeaderParamIterator Parameter() const;
    56 IMPORT_C THttpHeaderElementIterator();
    57 private:
    58     IMPORT_C THttpHeaderElementIterator(const RPointerArray<CHeaderFieldPart>* aArray, TInt aIndex = 0);
    59 
    60 private:
    61 const RPointerArray<CHeaderFieldPart>*     iElementArray; 
    62 TInt iPostIdx;
    63 };
    64 
    65 class THttpHeaderIterator
    66 {
    67 friend class CHttpClientTransaction;
    68 public:
    69 IMPORT_C THttpHeaderIterator operator++ (TInt);
    70 IMPORT_C THttpHeaderIterator& operator++ ();
    71 IMPORT_C TBool AtEnd() const;
    72 IMPORT_C const TDesC8& Name() const;
    73 IMPORT_C THttpHeaderElementIterator Elements() const;
    74 IMPORT_C THttpHeaderParamIterator Parameters() const;
    75 IMPORT_C THttpHeaderIterator();
    76 private:
    77 IMPORT_C THttpHeaderIterator(const CHeaders* aHeaders, TInt aIndex = 0);
    78 
    79 private:
    80 const CHeaders* iHttpHeaders;
    81 TInt iPostIdx;
    82 };
    83 #endif // __HTTPHEADERITER_H__
    84