CICalProperty Class Reference

class CICalProperty : public CBase

Class representing a property.

Inherits from

Constructor & Destructor Documentation

CICalProperty()

CICalProperty()[private]

Constructor

CICalProperty(CICalValue *)

CICalProperty(CICalValue *aValue)[private]

Constructor

Parameters

CICalValue * aValueThe initial value.

~CICalProperty()

~CICalProperty()

Destructor.

Member Functions Documentation

AddPropertyParamL(const TDesC &, CICalValue *)

IMPORT_C CICalPropertyParam &AddPropertyParamL(const TDesC &aType,
CICalValue *aValue
)
Adds a parameter with given type and value to the property, taking ownership of the value. Note that further values may be added later.
leave
Leaves with KErrParameterHasNoValue if aValue is NULL.

Parameters

const TDesC & aTypeThe type of property parameter.
CICalValue * aValueA value of the property parameter - this will be deleted if this function leaves.

AddPropertyParamL(const TDesC &, const TDesC &)

IMPORT_C CICalPropertyParam &AddPropertyParamL(const TDesC &aType,
const TDesC &aValue
)
Adds a parameter with given type and value to the property. Note that further values may be added later.
leave
Leaves with if there is an error adding a parameter.

Parameters

const TDesC & aTypeThe type of property parameter.
const TDesC & aValueA value of the property parameter.

AddPropertyParamL()

CICalPropertyParam &AddPropertyParamL()
Adds an empty parameter to the property.
leave
Leaves if there is an error adding a parameter.

AddValueL(const TDesC &)

IMPORT_C voidAddValueL(const TDesC &aValue)
Adds a value to the property. Any escaped characters in the value string are translated to the actual characters.
leave
Leaves if there is an error adding a value.

Parameters

const TDesC & aValueThe text string of the value, as would be entered into an iCalendar file.

AddValueL(CICalValue *)

IMPORT_C voidAddValueL(CICalValue *aValue)
Adds value to this property, taking ownership of the passed value pointer and deleting it if this function leaves.
leave
Leaves with KErrPropertyHasNoValue if aValue is NULL.

Parameters

CICalValue * aValueThe value to add - this must not be NULL.

ConstructL(const TDesC &)

voidConstructL(const TDesC &aType)[private]

Internal construction

Parameters

const TDesC & aTypeThe type of property.

ConstructL(const TDesC &, const TDesC &)

voidConstructL(const TDesC &aType,
const TDesC &aValue
)[private]

Internal construction.

Parameters

const TDesC & aTypeThe type of property.
const TDesC & aValueA value of the property.

ConstructL(const TDesC &, CICalValue *)

voidConstructL(const TDesC &aType,
CICalValue *aValue
)[private]

Internal construction. Takes ownership of the passed value pointer and deletes it if this function leaves.

Parameters

const TDesC & aTypeThe type of property.
CICalValue * aValueA value of the property - this class takes ownership.

ExternalizeL(CICalContentLineWriter &)

voidExternalizeL(CICalContentLineWriter &aWriter)

Export this property using the given line writer, escaping any necessary characters. Assumes it contains at least one value from the check in CICalBase::ExternalizeL().

Parameters

CICalContentLineWriter & aWriterThe content line writer to export to.

FindParam(const TDesC &)

IMPORT_C const CICalPropertyParam *FindParam(const TDesC &aType)const

Find a parameter with the given name. Ownership is not passed out.

Parameters

const TDesC & aTypeThe type of the parameter to search for

NewL(const TDesC &, const TDesC &)

IMPORT_C CICalProperty *NewL(const TDesC &aType,
const TDesC &aValue
)[static]

Constructs a new CICalProperty with given type and value and returns it. Note that other values may be added later.

Parameters

const TDesC & aTypeThe type of the property.
const TDesC & aValueThe value of the property.

NewL(const TDesC &, CICalValue *)

IMPORT_C CICalProperty *NewL(const TDesC &aType,
CICalValue *aValue
)[static]
Constructs a new CICalProperty with given type and value and returns it. Takes ownership of the passed value pointer and deletes it if this function leaves. Note that other values may be added later.
leave
Leaves with KErrPropertyHasNoValue if aValue is NULL.

Parameters

const TDesC & aTypeThe type of the property.
CICalValue * aValueThe value of the property.

NewL(const TDesC &)

CICalProperty *NewL(const TDesC &aType)[static]

Constructs a new CICalProperty with given type and returns it

Parameters

const TDesC & aTypeThe type of the property.

NewLC(const TDesC &, const TDesC &)

IMPORT_C CICalProperty *NewLC(const TDesC &aType,
const TDesC &aValue
)[static]

Constructs a new CICalProperty with given type and value, pushes it onto the Cleanup Stack, and returns it. Note that other values may be added later.

Parameters

const TDesC & aTypeThe type of the property.
const TDesC & aValueThe value of the property.

NewLC(const TDesC &, CICalValue *)

IMPORT_C CICalProperty *NewLC(const TDesC &aType,
CICalValue *aValue
)[static]
Constructs a new CICalProperty with given type and value, pushes it onto the Cleanup Stack, and returns it. Takes ownership of the passed value pointer and deletes it if this function leaves. Note that other values may be added later.
leave
Leaves with KErrPropertyHasNoValue if aValue is NULL.

Parameters

const TDesC & aTypeThe type of the property.
CICalValue * aValueThe value of the property.

NewLC(const TDesC &)

CICalProperty *NewLC(const TDesC &aType)[static]

Constructs a new CICalProperty with given type, pushes it onto the Cleanup Stack, and returns it.

Parameters

const TDesC & aTypeThe type of the property.

Parameters()

IMPORT_C const RPointerArray< CICalPropertyParam > &Parameters()const

Access method for the array of parameters.

RemovePropertyParamL(const CICalPropertyParam &)

voidRemovePropertyParamL(const CICalPropertyParam &aParam)
Removes the given parameter from the property.
leave
Leaves in debug mode if the parameter is not found (release mode ignores this).

Parameters

const CICalPropertyParam & aParamThe parameter to remove.

Type()

IMPORT_C const TDesC &Type()const

Gets the type of the property.

Values()

IMPORT_C const RPointerArray< CICalValue > &Values()const

Access method for the array of properties.

Member Data Documentation

RPointerArray< CICalPropertyParam > iParams

RPointerArray< CICalPropertyParam >iParams[private]

HBufC * iType

HBufC *iType[private]

CICalValue * iValue

CICalValue *iValue[private]

RPointerArray< CICalValue > iValues

RPointerArray< CICalValue >iValues[private]