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