CESMRICalPropertyParam Class Reference

class CESMRICalPropertyParam : public CBase

Class representing a property parameter.

Inherits from

  • CESMRICalPropertyParam

Constructor & Destructor Documentation

CESMRICalPropertyParam()

CESMRICalPropertyParam()[private]

Constructor

CESMRICalPropertyParam(CESMRICalValue *)

CESMRICalPropertyParam(CESMRICalValue *aValue)[private]

Constructor

Parameters

CESMRICalValue * aValueThe initial value.

~CESMRICalPropertyParam()

~CESMRICalPropertyParam()

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(CESMRICalValue *)

IMPORT_C voidAddValueL(CESMRICalValue *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

CESMRICalValue * 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 &, CESMRICalValue *)

voidConstructL(const TDesC &aType,
CESMRICalValue *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.
CESMRICalValue * aValueA value of the parameter - this class takes ownership.

EqualsL(const CESMRICalPropertyParam &, const CESMRICalPropertyParam &)

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

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

Parameters

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

ExternalizeL(CESMRICalContentLineWriter &)

voidExternalizeL(CESMRICalContentLineWriter &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 CESMRICalProperty::ExternalizeL().

Parameters

CESMRICalContentLineWriter & aWriterThe content line writer to export to.

NewL(const TDesC &, CESMRICalValue *)

IMPORT_C CESMRICalPropertyParam *NewL(const TDesC &aType,
CESMRICalValue *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.
CESMRICalValue * aValueA value of the parameter - this class takes ownership.

NewL(const TDesC &, const TDesC &)

IMPORT_C CESMRICalPropertyParam *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 &, CESMRICalValue *)

IMPORT_C CESMRICalPropertyParam *NewLC(const TDesC &aType,
CESMRICalValue *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.
CESMRICalValue * aValueA value of the parameter - this class takes ownership.

NewLC(const TDesC &, const TDesC &)

IMPORT_C CESMRICalPropertyParam *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()

CESMRICalPropertyParam *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< CESMRICalValue > &Values()const

Access method for the value array.

Member Data Documentation

HBufC * iType

HBufC *iType[private]

CESMRICalValue * iValue

CESMRICalValue *iValue[private]

RPointerArray< CESMRICalValue > iValues

RPointerArray< CESMRICalValue >iValues[private]