CParserPropertyValueTimeZone Class Reference

#include <app/vprop.h>

Link against: versit.lib

class CParserPropertyValueTimeZone : public CParserPropertyValue

Inherits from

Detailed Description

A time zone property value parser.

Stores and externalises a property value which represents the time zone information for a vCard or vCalendar.

The time zone is specified as the universal time offset. This is a time interval which is a positive or negative number of seconds from universal time. Time zones east of universal time have positive numbers. Time zones west of universal time have negative numbers.

The UID for a time zone property value is KVersitPropertyTimeZoneUid.

Member Attribute Documentation

iValue

TTimeIntervalSeconds iValue[protected]

Constructor & Destructor Documentation

CParserPropertyValueTimeZone ( TTimeIntervalSeconds )

IMPORT_CCParserPropertyValueTimeZone(TTimeIntervalSecondsaValue)

Constructs a new time zone property value parser with a time interval in seconds, which represents the universal time offset of the time zone.

Sets the property value's UID to KVersitPropertyTimeZoneUid.

ParameterDescription
aValueA time interval (in seconds) which represents the offset of the time zone from universal time. The property value takes ownership of the pointer.

Member Function Documentation

EncodeTimeZone ( TDes8 &, TTimeIntervalSeconds )

voidEncodeTimeZone(TDes8 &aBuf,
TTimeIntervalSecondsiValue
)[static]

ExternalizeL ( RWriteStream &, const Versit::TEncodingAndCharset &, TInt )

IMPORT_C voidExternalizeL(RWriteStream &aStream,
const Versit::TEncodingAndCharset &aEncodingCharset,
TInt
)[virtual]

Externalises the time zone property value into aStream.

ParameterDescription
aStreamStream into which the value is to be externalised.
aEncodingCharsetSpecifies the character set and encoding information. (Not used by this function).

Value ( )

TTimeIntervalSeconds Value()const [inline]

Gets the time zone property value.

Returns: A time interval (in seconds) which represents the offset from universal time.