CESMRICalValue Class Reference
class CESMRICalValue : public CBase |
Class representing a property-, property parameter- or rule segement value.
Public Member Functions |
---|
| ~CESMRICalValue() |
IMPORT_C HBufC8 * | BinaryLC() |
IMPORT_C TBool | BooleanL() |
IMPORT_C TTimeIntervalSeconds | DurationL() |
IMPORT_C void | GetDateL(TTime &) |
IMPORT_C void | GetDateTimeL(TTime &, TTimeZoneType &, TInt) |
IMPORT_C void | GetDayL(TDay &, TInt &) |
IMPORT_C void | GetFloatL(TReal &) |
IMPORT_C void | GetPeriodL(TTime &, TTimeZoneType &, TTime &, TTimeZoneType &) |
IMPORT_C void | GetRecurrenceRuleL(RPointerArray< CESMRICalRuleSegment > &) |
IMPORT_C void | GetTimeL(TTime &, TTimeZoneType &) |
IMPORT_C TInt | IntegerL() |
IMPORT_C TMonth | MonthL() |
IMPORT_C CESMRICalValue * | NewL() |
IMPORT_C CESMRICalValue * | NewLC() |
IMPORT_C void | SetBinaryL(const TDesC8 &) |
IMPORT_C void | SetBooleanL(TBool) |
IMPORT_C void | SetDateL(const TTime &) |
IMPORT_C void | SetDateTimeL(const TTime &, TTimeZoneType) |
IMPORT_C void | SetDayL(TDay, TInt) |
IMPORT_C void | SetDurationL(TTimeIntervalSeconds) |
IMPORT_C void | SetFloatL(const TReal &) |
IMPORT_C void | SetIntegerL(TInt) |
IMPORT_C void | SetMonthL(TMonth) |
IMPORT_C void | SetPeriodL(const TTime &, TTimeZoneType, const TTime &, TTimeZoneType) |
IMPORT_C void | SetRecurrenceRuleL(const TDesC &) |
IMPORT_C void | SetTextL(const TDesC &) |
IMPORT_C void | SetTimeL(const TTime &, TTimeZoneType) |
IMPORT_C void | SetUtcOffsetL(TTimeIntervalSeconds) |
IMPORT_C const TDesC & | TextL() |
IMPORT_C TTimeIntervalSeconds | UtcOffsetL() |
Private Member Functions |
---|
| CESMRICalValue() |
void | AppendDateToValueL(const TTime &) |
void | AppendTimeToValueL(const TTime &) |
void | CheckNullValueL() |
void | ConstructL() |
void | GetDateFromValueL(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 &) |
void | GetTimeFromValueL(TTime &, TTimeZoneType &, TInt) |
void | GetTimeIntervalFromValueL(TTimeIntervalSeconds &, TInt) |
void | PrepareValuePointer() |
TInt
| ReadIntL(const TDesC &) |
Constructor & Destructor Documentation
CESMRICalValue()
CESMRICalValue | ( | ) | [private] |
Member Functions Documentation
AppendDateToValueL(const TTime &)
void | AppendDateToValueL | ( | const TTime & | aDate | ) | [private] |
Appends the date to iValue. Member iValue must be initialised before calling.
Parameters
const TTime & aDate | TTime to append to the value. |
AppendTimeToValueL(const TTime &)
void | AppendTimeToValueL | ( | const TTime & | aTime | ) | [private] |
Appends the time to iValue. Member iValue must be initialised before calling.
Parameters
const TTime & aTime | TTime to append to the value. |
BinaryLC()
IMPORT_C HBufC8 * | BinaryLC | ( | ) | const |
BooleanL()
IMPORT_C TBool | BooleanL | ( | ) | const |
CheckNullValueL()
void | CheckNullValueL | ( | ) | const [private] |
Checks for a NULL value. Should be called before accessing iValue.
- leave
- Leaves with KErrCorrupt if the value is NULL.
ConstructL()
void | ConstructL | ( | ) | [private] |
GetDateFromValueL(TTime &, TInt)
void | GetDateFromValueL | ( | TTime & | aDate, |
| TInt | aFirstCharacterNum = 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 & aDate | A modifiable reference returning a date. |
TInt aFirstCharacterNum = 0 | Skip this many characters at the start of the value. |
GetDateL(TTime &)
IMPORT_C void | GetDateL | ( | TTime & | aDate | ) | const |
GetDateTimeL(TTime &, TTimeZoneType &, TInt)
GetDayL(TDay &, TInt &)
IMPORT_C void | GetDayL | ( | TDay & | aDay, |
| TInt & | aPos |
| ) | const |
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 & aIntervalSecs | Function adds number of seconds to this variable. |
TInt & aCurrentCharNumber | Character 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 & aIntervalSecs | Function adds number of seconds to this variable. |
TInt & aCurrentCharNumber | Character 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 & aIntervalSecs | Function adds number of seconds to this variable. |
TInt & aCurrentCharNumber | Character 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 & aIntervalSecs | Function adds number of seconds to this variable. |
TInt & aCurrentCharNumber | Character 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 & aIntervalSecs | Function adds number of seconds to this variable. |
TInt & aCurrentCharNumber | Character 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 & aIntervalSecs | Function adds number of seconds to this variable |
TInt & aCurrentCharNumber | Character number to start looking in the value. |
GetFloatL(TReal &)
IMPORT_C void | GetFloatL | ( | TReal & | aFloat | ) | const |
GetPeriodL(TTime &, TTimeZoneType &, TTime &, TTimeZoneType &)
GetRecurrenceRuleL(RPointerArray< CESMRICalRuleSegment > &)
GetTimeFromValueL(TTime &, TTimeZoneType &, TInt)
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 & aTime | TTime to store result of read in |
TTimeZoneType & aTzType | Enumeration showing whether the time represents local time (not supported), UTC or a custom time zone. |
TInt aFirstCharacterNum = 0 | The character number to start searching from. |
GetTimeIntervalFromValueL(TTimeIntervalSeconds &, TInt)
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 & aTime | TTimeIntervalSeconds to store the result in. |
TInt aFirstCharacterNum = 0 | The position in the value containing the first character of the duration. |
GetTimeL(TTime &, TTimeZoneType &)
IntegerL()
IMPORT_C TInt | IntegerL | ( | ) | const |
PrepareValuePointer()
void | PrepareValuePointer | ( | ) | [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 & aDes | The descriptor to convert |
SetBinaryL(const TDesC8 &)
IMPORT_C void | SetBinaryL | ( | const TDesC8 & | aBuffer | ) | |
SetBooleanL(TBool)
IMPORT_C void | SetBooleanL | ( | TBool | aBool | ) | |
SetDateL(const TTime &)
IMPORT_C void | SetDateL | ( | const TTime & | aDate | ) | |
SetDateTimeL(const TTime &, TTimeZoneType)
SetDayL(TDay, TInt)
IMPORT_C void | SetDayL | ( | TDay | aDay, |
| TInt | aPos = 0 |
| ) | |
SetDurationL(TTimeIntervalSeconds)
SetFloatL(const TReal &)
IMPORT_C void | SetFloatL | ( | const TReal & | aFloat | ) | |
SetIntegerL(TInt)
IMPORT_C void | SetIntegerL | ( | TInt | aInt | ) | |
SetMonthL(TMonth)
IMPORT_C void | SetMonthL | ( | TMonth | aMonth | ) | |
SetPeriodL(const TTime &, TTimeZoneType, const TTime &, TTimeZoneType)
SetRecurrenceRuleL(const TDesC &)
IMPORT_C void | SetRecurrenceRuleL | ( | const TDesC & | aRuleValue | ) | |
SetTextL(const TDesC &)
IMPORT_C void | SetTextL | ( | const TDesC & | aText | ) | |
SetTimeL(const TTime &, TTimeZoneType)
SetUtcOffsetL(TTimeIntervalSeconds)
TextL()
IMPORT_C const TDesC & | TextL | ( | ) | const |
Member Enumerations Documentation
Enum TTimeZoneType
Enumerators
EFloatingTime |
Local "floating" time.
|
EUtcTime |
UTC time.
|
ESpecifiedTimeZone |
User specified time zone.
|
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.