CESMRICalValue Class Reference

class CESMRICalValue : public CBase

Class representing a property-, property parameter- or rule segement value.

Inherits from

Public Member Functions
~CESMRICalValue()
IMPORT_C HBufC8 *BinaryLC()
IMPORT_C TBoolBooleanL()
IMPORT_C TTimeIntervalSecondsDurationL()
IMPORT_C voidGetDateL(TTime &)
IMPORT_C voidGetDateTimeL(TTime &, TTimeZoneType &, TInt)
IMPORT_C voidGetDayL(TDay &, TInt &)
IMPORT_C voidGetFloatL(TReal &)
IMPORT_C voidGetPeriodL(TTime &, TTimeZoneType &, TTime &, TTimeZoneType &)
IMPORT_C voidGetRecurrenceRuleL(RPointerArray< CESMRICalRuleSegment > &)
IMPORT_C voidGetTimeL(TTime &, TTimeZoneType &)
IMPORT_C TIntIntegerL()
IMPORT_C TMonthMonthL()
IMPORT_C CESMRICalValue *NewL()
IMPORT_C CESMRICalValue *NewLC()
IMPORT_C voidSetBinaryL(const TDesC8 &)
IMPORT_C voidSetBooleanL(TBool)
IMPORT_C voidSetDateL(const TTime &)
IMPORT_C voidSetDateTimeL(const TTime &, TTimeZoneType)
IMPORT_C voidSetDayL(TDay, TInt)
IMPORT_C voidSetDurationL(TTimeIntervalSeconds)
IMPORT_C voidSetFloatL(const TReal &)
IMPORT_C voidSetIntegerL(TInt)
IMPORT_C voidSetMonthL(TMonth)
IMPORT_C voidSetPeriodL(const TTime &, TTimeZoneType, const TTime &, TTimeZoneType)
IMPORT_C voidSetRecurrenceRuleL(const TDesC &)
IMPORT_C voidSetTextL(const TDesC &)
IMPORT_C voidSetTimeL(const TTime &, TTimeZoneType)
IMPORT_C voidSetUtcOffsetL(TTimeIntervalSeconds)
IMPORT_C const TDesC &TextL()
IMPORT_C TTimeIntervalSecondsUtcOffsetL()
Private Member Functions
CESMRICalValue()
voidAppendDateToValueL(const TTime &)
voidAppendTimeToValueL(const TTime &)
voidCheckNullValueL()
voidConstructL()
voidGetDateFromValueL(TTime &, TInt)
TBool GetDurDateL(TInt &, TInt &)
TBool GetDurHourL(TInt &, TInt &)
TBool GetDurMinuteL(TInt &, TInt &)
TBool GetDurSecondL(TInt &, TInt &)
TBool GetDurTimeL(TInt &, TInt &)
TBool GetDurWeekL(TInt &, TInt &)
voidGetTimeFromValueL(TTime &, TTimeZoneType &, TInt)
voidGetTimeIntervalFromValueL(TTimeIntervalSeconds &, TInt)
voidPrepareValuePointer()
TInt ReadIntL(const TDesC &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTTimeZoneType { EFloatingTime, EUtcTime, ESpecifiedTimeZone }
Private Attributes
HBufC *iValue

Constructor & Destructor Documentation

CESMRICalValue()

CESMRICalValue()[private]

~CESMRICalValue()

~CESMRICalValue()

Member Functions Documentation

AppendDateToValueL(const TTime &)

voidAppendDateToValueL(const TTime &aDate)[private]

Appends the date to iValue. Member iValue must be initialised before calling.

Parameters

const TTime & aDateTTime to append to the value.

AppendTimeToValueL(const TTime &)

voidAppendTimeToValueL(const TTime &aTime)[private]

Appends the time to iValue. Member iValue must be initialised before calling.

Parameters

const TTime & aTimeTTime to append to the value.

BinaryLC()

IMPORT_C HBufC8 *BinaryLC()const

BooleanL()

IMPORT_C TBoolBooleanL()const

CheckNullValueL()

voidCheckNullValueL()const [private]
Checks for a NULL value. Should be called before accessing iValue.
leave
Leaves with KErrCorrupt if the value is NULL.

ConstructL()

voidConstructL()[private]

DurationL()

IMPORT_C TTimeIntervalSecondsDurationL()const

GetDateFromValueL(TTime &, TInt)

voidGetDateFromValueL(TTime &aDate,
TIntaFirstCharacterNum = 0
)const [private]
Gets the date from iValue descriptor. Should be in the format YYYYMMDD
leave
Leaves with KErrCorrupt if the format of the value is not a valid date.

Parameters

TTime & aDateA modifiable reference returning a date.
TInt aFirstCharacterNum = 0Skip this many characters at the start of the value.

GetDateL(TTime &)

IMPORT_C voidGetDateL(TTime &aDate)const

Parameters

TTime & aDate

GetDateTimeL(TTime &, TTimeZoneType &, TInt)

IMPORT_C voidGetDateTimeL(TTime &aDateTime,
TTimeZoneType &aTzType,
TIntaFirstCharacterNum = 0
)const

Parameters

TTime & aDateTime
TTimeZoneType & aTzType
TInt aFirstCharacterNum = 0

GetDayL(TDay &, TInt &)

IMPORT_C voidGetDayL(TDay &aDay,
TInt &aPos
)const

Parameters

TDay & aDay
TInt & aPos

GetDurDateL(TInt &, TInt &)

TBool GetDurDateL(TInt &aIntervalSecs,
TInt &aCurrentCharNumber
)const [private]

Reads in and converts a dur-day into a number of seconds

Parameters

TInt & aIntervalSecsFunction adds number of seconds to this variable.
TInt & aCurrentCharNumberCharacter number to start looking in the value.

GetDurHourL(TInt &, TInt &)

TBool GetDurHourL(TInt &aIntervalSecs,
TInt &aCurrentCharNumber
)const [private]

Reads in and converts a dur-hour into a number of seconds. There is no range check on the number of hours.

Parameters

TInt & aIntervalSecsFunction adds number of seconds to this variable.
TInt & aCurrentCharNumberCharacter number to start looking in the value.

GetDurMinuteL(TInt &, TInt &)

TBool GetDurMinuteL(TInt &aIntervalSecs,
TInt &aCurrentCharNumber
)const [private]

Reads in and converts a dur-minute into a number of seconds. There is no range check on the number of minutes.

Parameters

TInt & aIntervalSecsFunction adds number of seconds to this variable.
TInt & aCurrentCharNumberCharacter number to start looking in the value.

GetDurSecondL(TInt &, TInt &)

TBool GetDurSecondL(TInt &aIntervalSecs,
TInt &aCurrentCharNumber
)const [private]

Reads in and converts a dur-second into a number of seconds. There is no range check on the number of seconds.

Parameters

TInt & aIntervalSecsFunction adds number of seconds to this variable.
TInt & aCurrentCharNumberCharacter number to start looking in the value.

GetDurTimeL(TInt &, TInt &)

TBool GetDurTimeL(TInt &aIntervalSecs,
TInt &aCurrentCharNumber
)const [private]
Reads in and converts a dur-time into a number of seconds
leave
Leaves with KErrCorrupt if the value does not hold a valid time.

Parameters

TInt & aIntervalSecsFunction adds number of seconds to this variable.
TInt & aCurrentCharNumberCharacter number to start looking in the value.

GetDurWeekL(TInt &, TInt &)

TBool GetDurWeekL(TInt &aIntervalSecs,
TInt &aCurrentCharNumber
)const [private]

Reads in and converts a dur-week into a number of seconds

Parameters

TInt & aIntervalSecsFunction adds number of seconds to this variable
TInt & aCurrentCharNumberCharacter number to start looking in the value.

GetFloatL(TReal &)

IMPORT_C voidGetFloatL(TReal &aFloat)const

Parameters

TReal & aFloat

GetPeriodL(TTime &, TTimeZoneType &, TTime &, TTimeZoneType &)

IMPORT_C voidGetPeriodL(TTime &aStartTime,
TTimeZoneType &aStartTzType,
TTime &aEndTime,
TTimeZoneType &aEndTzType
)const

Parameters

TTime & aStartTime
TTimeZoneType & aStartTzType
TTime & aEndTime
TTimeZoneType & aEndTzType

GetRecurrenceRuleL(RPointerArray< CESMRICalRuleSegment > &)

IMPORT_C voidGetRecurrenceRuleL(RPointerArray< CESMRICalRuleSegment > &aRuleSegmentArray)const

Parameters

RPointerArray< CESMRICalRuleSegment > & aRuleSegmentArray

GetTimeFromValueL(TTime &, TTimeZoneType &, TInt)

voidGetTimeFromValueL(TTime &aTime,
TTimeZoneType &aTzType,
TIntaFirstCharacterNum = 0
)const [private]
Gets the time from iValue descriptor, starting from a pre-determined point. Should be in the format HHMMSS[Z]
leave
Leaves with KErrCorrupt if the value does not hold a valid time.

Parameters

TTime & aTimeTTime to store result of read in
TTimeZoneType & aTzTypeEnumeration showing whether the time represents local time (not supported), UTC or a custom time zone.
TInt aFirstCharacterNum = 0The character number to start searching from.

GetTimeIntervalFromValueL(TTimeIntervalSeconds &, TInt)

voidGetTimeIntervalFromValueL(TTimeIntervalSeconds &aTime,
TIntaFirstCharacterNum = 0
)const [private]
Retrieves a time interval stored as a duration as per the RFC 2445 specification.
leave
Leaves with KErrCorrupt if the value does not hold a valid interval.

Parameters

TTimeIntervalSeconds & aTimeTTimeIntervalSeconds to store the result in.
TInt aFirstCharacterNum = 0The position in the value containing the first character of the duration.

GetTimeL(TTime &, TTimeZoneType &)

IMPORT_C voidGetTimeL(TTime &aTime,
TTimeZoneType &aTzType
)const

Parameters

TTime & aTime
TTimeZoneType & aTzType

IntegerL()

IMPORT_C TIntIntegerL()const

MonthL()

IMPORT_C TMonthMonthL()const

NewL()

IMPORT_C CESMRICalValue *NewL()[static]

NewLC()

IMPORT_C CESMRICalValue *NewLC()[static]

PrepareValuePointer()

voidPrepareValuePointer()[private]

Prepares iValue pointer for writing. Deletes existing pointer if it exists.

ReadIntL(const TDesC &)

TInt ReadIntL(const TDesC &aDes)const [private]
Reads a TInt from the given descriptor.
leave
Leaves if there is an error reading an integer.

Parameters

const TDesC & aDesThe descriptor to convert

SetBinaryL(const TDesC8 &)

IMPORT_C voidSetBinaryL(const TDesC8 &aBuffer)

Parameters

const TDesC8 & aBuffer

SetBooleanL(TBool)

IMPORT_C voidSetBooleanL(TBoolaBool)

Parameters

TBool aBool

SetDateL(const TTime &)

IMPORT_C voidSetDateL(const TTime &aDate)

Parameters

const TTime & aDate

SetDateTimeL(const TTime &, TTimeZoneType)

IMPORT_C voidSetDateTimeL(const TTime &aDateTime,
TTimeZoneTypeaTzType
)

Parameters

const TTime & aDateTime
TTimeZoneType aTzType

SetDayL(TDay, TInt)

IMPORT_C voidSetDayL(TDayaDay,
TIntaPos = 0
)

Parameters

TDay aDay
TInt aPos = 0

SetDurationL(TTimeIntervalSeconds)

IMPORT_C voidSetDurationL(TTimeIntervalSecondsaDuration)

Parameters

TTimeIntervalSeconds aDuration

SetFloatL(const TReal &)

IMPORT_C voidSetFloatL(const TReal &aFloat)

Parameters

const TReal & aFloat

SetIntegerL(TInt)

IMPORT_C voidSetIntegerL(TIntaInt)

Parameters

TInt aInt

SetMonthL(TMonth)

IMPORT_C voidSetMonthL(TMonthaMonth)

Parameters

TMonth aMonth

SetPeriodL(const TTime &, TTimeZoneType, const TTime &, TTimeZoneType)

IMPORT_C voidSetPeriodL(const TTime &aStartTime,
TTimeZoneTypeaStartTzType,
const TTime &aEndTime,
TTimeZoneTypeaEndTzType
)

Parameters

const TTime & aStartTime
TTimeZoneType aStartTzType
const TTime & aEndTime
TTimeZoneType aEndTzType

SetRecurrenceRuleL(const TDesC &)

IMPORT_C voidSetRecurrenceRuleL(const TDesC &aRuleValue)

Parameters

const TDesC & aRuleValue

SetTextL(const TDesC &)

IMPORT_C voidSetTextL(const TDesC &aText)

Parameters

const TDesC & aText

SetTimeL(const TTime &, TTimeZoneType)

IMPORT_C voidSetTimeL(const TTime &aTime,
TTimeZoneTypeaTzType
)

Parameters

const TTime & aTime
TTimeZoneType aTzType

SetUtcOffsetL(TTimeIntervalSeconds)

IMPORT_C voidSetUtcOffsetL(TTimeIntervalSecondsaOffset)

Parameters

TTimeIntervalSeconds aOffset

TextL()

IMPORT_C const TDesC &TextL()const

UtcOffsetL()

IMPORT_C TTimeIntervalSecondsUtcOffsetL()const

Member Enumerations Documentation

Enum TTimeZoneType

Enumerators

EFloatingTime

Local "floating" time.

EUtcTime

UTC time.

ESpecifiedTimeZone

User specified time zone.

Member Data Documentation

HBufC * iValue

HBufC *iValue[private]