#include <mw/tz.h>
class CTzUserNames : public CBase |
Public Member Functions | |
---|---|
~CTzUserNames() | |
IMPORT_C const TDesC & | CityName() |
IMPORT_C const TDesC & | DaylightSaveName() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C CTzUserNames * | NewL(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C CTzUserNames * | NewL(RReadStream &) |
IMPORT_C CTzUserNames * | NewLC(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C const TDesC & | RegionName() |
IMPORT_C const TDesC & | ShortDaylightSaveName() |
IMPORT_C const TDesC & | ShortStandardName() |
IMPORT_C TInt | SizeOfObject() |
IMPORT_C const TDesC & | StandardName() |
The CTzUserNames class is used to encapsulate the names for a user-defined time zone.
When creating an instance of this class the client can specify the following names:
Long standard time name, for example "Mountain Standard Time"
Short standard time name, for example "MST"
Long daylight saving time name, for example "Mountain Daylight Time"
Short daylight saving time name, for example "MDT"
City name, for example "Shiprock"
Region name, for example "America"
The client can also read these names.
IMPORT_C const TDesC & | CityName | ( | ) | const |
Returns the city name for this object.
Returns: The city name for this object.
IMPORT_C const TDesC & | DaylightSaveName | ( | ) | const |
Returns the daylight saving time name for this object.
Returns: The daylight saving time name for this object.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises user-defined time zone names to the given stream.
Parameter | Description |
---|---|
aStream | Stream to which the object should be externalised. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalizes user-defined time zone names from the given read stream.
Parameter | Description |
---|---|
aStream | Stream from which the object should be internalised. |
IMPORT_C CTzUserNames * | NewL | ( | const TDesC & | aStandardName, |
const TDesC & | aShortStandardName, | |||
const TDesC & | aDaylightSaveName, | |||
const TDesC & | aShortDaylightSaveName, | |||
const TDesC & | aCityName, | |||
const TDesC & | aRegionName | |||
) | [static] |
Creates a user-defined time zone names object from the given names.
Parameter | Description |
---|---|
aStandardName | The standard time name. |
aShortStandardName | The short standard time name. |
aDaylightSaveName | The daylight saving time name. |
aShortDaylightSaveName | The short daylight saving time name. |
aCityName | The city name. |
aRegionName | The region name. |
Returns: Pointer to a fully initialised instance of the CTzUserNames class. The caller takes ownership of this object.
IMPORT_C CTzUserNames * | NewL | ( | RReadStream & | aStream | ) | [static] |
Creates a new user-defined time zone names object from the given stream.
Parameter | Description |
---|---|
aStream | Stream with the time zone rules to be used to create a CTzRules object. |
Returns: Pointer to a fully initialised instance of the CTzUserNames class. The caller takes ownership of this object.
IMPORT_C CTzUserNames * | NewLC | ( | const TDesC & | aStandardName, |
const TDesC & | aShortStandardName, | |||
const TDesC & | aDayLightSaveName, | |||
const TDesC & | aShortDaylightSaveName, | |||
const TDesC & | aCityName, | |||
const TDesC & | aRegionName | |||
) | [static] |
Creates a user-defined time zone names object from the given names leaving the newly created object on the cleanup stack.
Parameter | Description |
---|---|
aStandardName | The standard time name. |
aShortStandardName | The short standard time name. |
aDayLightSaveName | The daylight saving time name. |
aShortDaylightSaveName | The short daylight saving time name. |
aCityName | The city name. |
aRegionName | The region name. |
Returns: Pointer to a fully initialised instance of the CTzUserNames class. The caller takes ownership of this object.
IMPORT_C const TDesC & | RegionName | ( | ) | const |
Returns the region name for this object.
Returns: The region name for this object.
IMPORT_C const TDesC & | ShortDaylightSaveName | ( | ) | const |
Returns the short daylight saving time name for this object.
Returns: The short daylight saving time name for this object.
IMPORT_C const TDesC & | ShortStandardName | ( | ) | const |
Returns the short standard time name for this object.
Returns: The short standard time name for this object.
IMPORT_C TInt | SizeOfObject | ( | ) | const |
Determines the size of this object.
Returns: The size of CTzUserNames object.
IMPORT_C const TDesC & | StandardName | ( | ) | const |
Returns the standard time name for this object.
Returns: The standard time name for this object