diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/http/rhttppropertyset.h --- a/epoc32/include/http/rhttppropertyset.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/http/rhttppropertyset.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,86 @@ -rhttppropertyset.h +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// 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 +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + + +/** + @file RHTTPPropertySet.h + @warning : This file contains Rose Model ID comments - please do not delete +*/ + +#ifndef __RHTTPPROPERTYSET_H__ +#define __RHTTPPROPERTYSET_H__ + +// System includes +#include + +// Forward declarations +class CHeaderFieldPart; + + +//##ModelId=3C4C188201EA +class RHTTPPropertySet +/** +A set of named THTTPHdrVal objects. Used for storing arbitrary +collections of information. +@publishedAll +@released +*/ + { + public: + /** Default (uninitialised) constructor. An object constructed in this way + means 'use text-mode HTTP with default settings' + */ + //##ModelId=3A63217800E0 + IMPORT_C RHTTPPropertySet(); + + /** Returns a property. + @param aPropertyName The name of the property. + @param aVal The returned value of the property (if defined) + @return ETrue if the property exists + */ + //##ModelId=3C4C1882021F + IMPORT_C TBool Property(RStringF aPropertyName, THTTPHdrVal& aVal) const; + + /** Sets or creates a property. + @param aPropertyName The name of the property + @param aValue The new value of the property + @leave KErrNoMemory There was not enough memory. + */ + //##ModelId=3C4C1882021C + IMPORT_C void SetPropertyL(RStringF aPropertyName, THTTPHdrVal aValue); + + /** Removes a named property. + @param aPropertyName The name of the property + */ + //##ModelId=3C4C18820213 + IMPORT_C void RemoveProperty(RStringF aPropertyName); + + /** Removes all properties + */ + //##ModelId=3C4C18820212 + IMPORT_C void RemoveAllProperties(); + + protected: + //##ModelId=3C4C18820208 + CHeaderFieldPart* iImplementation; + + friend class CHeaderFieldPart; + friend class CHTTPSession; + }; + + + +#endif // __RHTTPPROPERTYSET_H__