epoc32/include/mw/http/rhttppropertyset.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/http/rhttppropertyset.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@2
     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
williamr@2
     5
// which accompanies this distribution, and is available
williamr@2
     6
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
//
williamr@2
    15
williamr@2
    16
williamr@2
    17
williamr@2
    18
/**
williamr@2
    19
 @file RHTTPPropertySet.h
williamr@2
    20
 @warning : This file contains Rose Model ID comments - please do not delete
williamr@2
    21
*/
williamr@2
    22
williamr@2
    23
#ifndef __RHTTPPROPERTYSET_H__
williamr@2
    24
#define __RHTTPPROPERTYSET_H__ 
williamr@2
    25
williamr@2
    26
// System includes
williamr@2
    27
#include <http/thttphdrval.h> 
williamr@2
    28
williamr@2
    29
// Forward declarations
williamr@2
    30
class CHeaderFieldPart;
williamr@2
    31
williamr@2
    32
williamr@2
    33
//##ModelId=3C4C188201EA
williamr@2
    34
class RHTTPPropertySet
williamr@2
    35
/** 
williamr@2
    36
A set of named THTTPHdrVal objects. Used for storing arbitrary
williamr@2
    37
collections of information.  
williamr@2
    38
@publishedAll
williamr@2
    39
@released
williamr@2
    40
*/
williamr@2
    41
	{
williamr@2
    42
 public:
williamr@2
    43
	/** Default (uninitialised) constructor. An object constructed in this way
williamr@2
    44
		means 'use text-mode HTTP with default settings'
williamr@2
    45
	 */
williamr@2
    46
	//##ModelId=3A63217800E0
williamr@2
    47
	IMPORT_C RHTTPPropertySet();
williamr@2
    48
	
williamr@2
    49
	/** Returns a property.
williamr@2
    50
		@param aPropertyName The name of the property.
williamr@2
    51
		@param aVal The returned value of the property (if defined)
williamr@2
    52
		@return ETrue if the property exists
williamr@2
    53
	*/
williamr@2
    54
	//##ModelId=3C4C1882021F
williamr@2
    55
	IMPORT_C TBool Property(RStringF aPropertyName, THTTPHdrVal& aVal) const;
williamr@2
    56
williamr@2
    57
	/** Sets or creates a property. 
williamr@2
    58
		@param aPropertyName The name of the property
williamr@2
    59
		@param aValue The new value of the property
williamr@2
    60
		@leave KErrNoMemory There was not enough memory.
williamr@2
    61
	 */
williamr@2
    62
	//##ModelId=3C4C1882021C
williamr@2
    63
	IMPORT_C void SetPropertyL(RStringF aPropertyName, THTTPHdrVal aValue);
williamr@2
    64
williamr@2
    65
	/** Removes a named property. 
williamr@2
    66
		@param aPropertyName The name of the property
williamr@2
    67
	 */
williamr@2
    68
	//##ModelId=3C4C18820213
williamr@2
    69
	IMPORT_C void RemoveProperty(RStringF aPropertyName);
williamr@2
    70
williamr@2
    71
	/** Removes all properties
williamr@2
    72
	 */
williamr@2
    73
	//##ModelId=3C4C18820212
williamr@2
    74
	IMPORT_C void RemoveAllProperties();
williamr@2
    75
williamr@2
    76
 protected:
williamr@2
    77
	//##ModelId=3C4C18820208
williamr@2
    78
	CHeaderFieldPart* iImplementation;
williamr@2
    79
williamr@2
    80
	friend class CHeaderFieldPart;
williamr@2
    81
	friend class CHTTPSession;
williamr@2
    82
	};
williamr@2
    83
williamr@2
    84
williamr@2
    85
williamr@2
    86
#endif //	__RHTTPPROPERTYSET_H__