Location:
vprop.h
Link against: versit.lib
CParserProperty
Supported from 5.0
A property in a vCard or vCalendar. Has a name, a value and,
optionally, one or more parameters, which are all initialised on construction.
Grouped properties are supported — see the derived class,
CParserGroupedProperty
.
Versit properties have the general form:
Property Name (; Property Parameter Name(=Property Parameter
Value))* : Property Value
where items in brackets are optional and * indicates that the item may be repeated
e.g. TEL; HOME; ENCODING=QUOTED-PRINTABLE; CHARSET=US-ASCII :
01234 567890
Here, TEL is the property name, HOME, ENCODING and CHARSET are property parameter names and QUOTED-PRINTABLE and US-ASCII are property parameter values. The component following the colon is the property value.
|
Defined in CParserProperty
:
AddParamL()
, DeleteParam()
, Name()
, NewL()
, NewLC()
, Param()
, SetNameL()
, Value()
, ~CParserProperty()
Inherited from CBase
:
operator new()
CParserProperty* NewL(CParserPropertyValue* aPropertyValue, const TDesC& aName, CArrayPtr<CParserParam>* aArrayOfParams);
Allocates and constructs a new vCalendar or vCard property with the property value, property name and array of property parameters specified.
|
|
CParserProperty* NewLC(CParserPropertyValue* aPropertyValue, const TDesC& aName, CArrayPtr<CParserParam>* aArrayOfParams);
Allocates and constructs a new vCalendar or vCard property with the property value, property name and array of property parameters specified — leaving the property on the cleanup stack.
|
|
TPtrC Name() const;
Gets the property name. If no name has been set, the function returns an empty descriptor.
|
void SetNameL(const TDesC& aName);
Sets the property name. If a name has already been set, this function will replace it.
|
|
void AddParamL(CParserParam* aParam);
Adds a property parameter to the property. Any existing parameter with the same name is replaced. The parameter is appended to the property's parameter array. If no property parameter array has been allocated, the function will first allocate one.
|
void DeleteParam(TDesC& aParamName);
Deletes the specified property parameter from the property's array of parameters, if it exists in the array.
|
CParserParam* Param(const TDesC& aParamName) const;
Gets a pointer to the property parameter with the specified name. If the property has more than one parameter with the same name, the function returns the first one found.
|
|
CParserPropertyValue* Value() const;
Gets a pointer to the property value.
|