CICalPropertyParam Class Reference

class CICalPropertyParam : public CBase

Class representing a property parameter.

Inherits from

Constructor & Destructor Documentation

CICalPropertyParam()

CICalPropertyParam()[private]

Constructor

CICalPropertyParam(CICalValue *)

CICalPropertyParam(CICalValue *aValue)[private]

Constructor

Parameters

CICalValue * aValueThe initial value.

~CICalPropertyParam()

~CICalPropertyParam()

Destructor

Member Functions Documentation

AddValueL(const TDesC &)

IMPORT_C voidAddValueL(const TDesC &aValue)
Adds a string to the parameter's list of values. Any quotes are removed from the value as they are only used to escape other characters and are not a valid parameter value character in themselves.
leave
Leaves if there is an error adding a value.

Parameters

const TDesC & aValueThe value to add.

AddValueL(CICalValue *)

IMPORT_C voidAddValueL(CICalValue *aValue)
Adds a value to the parameter's list of values, taking ownership. Note that the value is deleted if this function leaves.
leave
Leaves with KErrParameterHasNoValue if aValue is NULL.

Parameters

CICalValue * aValueThe value to add.

ConstructL(const TDesC &)

voidConstructL(const TDesC &aType)[private]

Internal construction.

Parameters

const TDesC & aTypeThe type of parameter.

ConstructL(const TDesC &, const TDesC &)

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

Internal construction.

Parameters

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

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 parameter.
CICalValue * aValueA value of the parameter - this class takes ownership.

EqualsL(const CICalPropertyParam &, const CICalPropertyParam &)

TBool EqualsL(const CICalPropertyParam &aParam1,
const CICalPropertyParam &aParam2
)[static]

Determines if two property parameters are equal. Comparison is case-sensitive.

Parameters

const CICalPropertyParam & aParam1The first property parameter.
const CICalPropertyParam & aParam2The second property parameter.

ExternalizeL(CICalContentLineWriter &)

voidExternalizeL(CICalContentLineWriter &aWriter)

Export this property parameter using the given line writer. Values are quoted if they contain characters that need to be escaped. Assumes it contains at least one value from the check in CICalProperty::ExternalizeL().

Parameters

CICalContentLineWriter & aWriterThe content line writer to export to.

NewL(const TDesC &, CICalValue *)

IMPORT_C CICalPropertyParam *NewL(const TDesC &aType,
CICalValue *aValue
)[static]
Static factory constructor. 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 KErrParameterHasNoValue if aValue is NULL.

Parameters

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

NewL(const TDesC &, const TDesC &)

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

Static factory constructor. Note that other values may be added later. The constructed object is pushed onto the Cleanup Stack.

Parameters

const TDesC & aTypeThe type of parameter.
const TDesC & aValueA value of the parameter passed as a descriptor.

NewLC(const TDesC &, CICalValue *)

IMPORT_C CICalPropertyParam *NewLC(const TDesC &aType,
CICalValue *aValue
)[static]
Static factory constructor. Takes ownership of the passed value pointer and deletes it if this function leaves. Note that other values may be added later. The constructed object is pushed onto the Cleanup Stack.
leave
Leaves with KErrParameterHasNoValue if aValue is NULL.

Parameters

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

NewLC(const TDesC &, const TDesC &)

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

Static factory constructor. Note that other values may be added later. The constructed object is pushed onto the Cleanup Stack.

Parameters

const TDesC & aTypeThe type of parameter.
const TDesC & aValueA value of the parameter passed as a descriptor.

NewLC()

CICalPropertyParam *NewLC()[static]

Static factory construction. The constructed object is pushed onto the Cleanup Stack. Note that this constructor is not exported.

SetTypeL(const TDesC &)

voidSetTypeL(const TDesC &aType)

Sets the type of the parameter to a string value

Parameters

const TDesC & aTypethe type of the property parameter

Type()

IMPORT_C const TDesC &Type()const

Gets the type of the parameter

Values()

IMPORT_C const RPointerArray< CICalValue > &Values()const

Access method for the value array.

Member Data Documentation

HBufC * iType

HBufC *iType[private]

CICalValue * iValue

CICalValue *iValue[private]

RPointerArray< CICalValue > iValues

RPointerArray< CICalValue >iValues[private]