#include <mw/tzid.h>
class CTzId : public CBase |
Public Member Functions | |
---|---|
~CTzId() | |
IMPORT_C CTzId * | CloneL() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TBool | IsUserTzId() |
IMPORT_C TBool | IsUserTzId(TUint) |
IMPORT_C CTzId * | NewL(TUint) |
IMPORT_C CTzId * | NewL(const TDesC8 &) |
IMPORT_C CTzId * | NewL(RReadStream &) |
IMPORT_C void | SetId(TUint) |
IMPORT_C void | SetIdL(const TDesC8 &) |
void | SetIdL(TUint, const TDesC8 &) |
IMPORT_C const TDesC8 & | TimeZoneNameID() |
IMPORT_C TUint | TimeZoneNumericID() |
TBool | operator!=(const CTzId &) |
IMPORT_C TBool | operator==(const CTzId &) |
Encapsulates a time zone identifier.
The identifier may be either a name or a number.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
This should not be used. For internal use only.
Time zone ID data externaliser.
Parameter | Description |
---|---|
aStream | A stream that will contain the serialised time zone ID. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
This should not be used. For internal use only.
Serialised CTzId data internaliser.
Parameter | Description |
---|---|
aStream | a stream containing the serialised time zone Id |
IMPORT_C TBool | IsUserTzId | ( | ) | const |
Determines if this time zone identifier has a numeric identifier value that belongs to the range of values used to identify user-defined time zones.
Returns: Returns ETrue if this time zone identifier has a numeric identifier value that belongs to the range of values used to identify user-defined time zones and EFalse otherwise.
Determines if the given numeric time zone identifier value belongs to the range of values used to identify user-defined time zones.
Parameter | Description |
---|---|
aTzId | Numeric time zone identifier value. |
Returns: Returns ETrue if the given numeric time zone identifier value belongs to the range of values used to identify user-defined time zones and EFalse otherwise.
IMPORT_C CTzId * | NewL | ( | RReadStream & | aStream | ) | [static] |
This should not be used. For internal use only.
Time zone ID factory method.
Parameter | Description |
---|---|
aStream | a stream containing the serialised time zone Id |
Returns: Pointer to CTzId; clients own the object.
IMPORT_C void | SetId | ( | TUint | aNumericId | ) |
This should not be used. For internal use only.
Sets the numeric time zone ID.
Parameter | Description |
---|---|
aNumericId | The new numeric ID, generated by the time zone compiler. |
IMPORT_C void | SetIdL | ( | const TDesC8 & | aNameIdentity | ) |
This should not be used. For internal use only.
Sets the the time zone's name.
Parameter | Description |
---|---|
aNameIdentity | string TZID as used in the Olson's TZ Database |
IMPORT_C const TDesC8 & | TimeZoneNameID | ( | ) | const |
Retrieves the time zone's name.
This can be used after calling RTz::GetTimeZoneIdL().
Returns: The time zone's name, if one has been set. A NULL descriptor if not.
IMPORT_C TUint | TimeZoneNumericID | ( | ) | const |
Retrieves the time zone's numeric ID.
This can be used after calling RTz::GetTimeZoneIdL().
Returns: The time zone's numeric ID, generated by the time zone compiler.