CTzLocalizedTimeZoneArray Class Reference

#include <mw/tzlocalizationdatatypes.h>

Link against: timezonelocalization.lib

class CTzLocalizedTimeZoneArray : public CTzLocalizedArray< CTzLocalizedTimeZone >

Inherits from

Detailed Description

An array of time zones. This just passes function calls on to its templated base class, CTzLocalizedArray.

Member Function Documentation

AppendL ( CTzLocalizedTimeZone * )

IMPORT_C voidAppendL(CTzLocalizedTimeZone *aElement)

Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::AppendL(CTzLocalizedTimeZone *)

Appends a time zone to this array. Ownership of the pointer is transferred to the array.

ParameterDescription
aElementA pointer to the time zone to add.

At ( TInt )

IMPORT_C CTzLocalizedTimeZone &At(TIntaIndex)const

Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::At(TInt)const

Returns the time zone at the specified index.

ParameterDescription
aIndexThe index of the element.

Returns: A reference to the time zone at aIndex.

Count ( )

IMPORT_C TIntCount()const

Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::Count()const

Returns the number of elements in the array.

Returns: The number of elements in the array.

Find ( CTzLocalizedTimeZone *, TIdentityRelation< CTzLocalizedTimeZone > )

IMPORT_C TIntFind(CTzLocalizedTimeZone *anEntry,
TIdentityRelation< CTzLocalizedTimeZone >aIdentityRelation
)

Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::Find(CTzLocalizedTimeZone *,TIdentityRelation< CTzLocalizedTimeZone >)

Searches for a time zone in this array.

ParameterDescription
anEntryThe time zone to search for.
aIdentityRelationThe search function to use.

Returns: The index of the first matching object in the array, or KErrNotFound if no match is found.

NewL ( )

IMPORT_C CTzLocalizedTimeZoneArray *NewL()[static]

Allocates and constructs a new CTzLocalizedTimeZoneArray object.

Returns: The newly created CTzLocalizedTimeZoneArray object.

NewLC ( )

IMPORT_C CTzLocalizedTimeZoneArray *NewLC()[static]

Allocates and constructs a new CTzLocalizedTimeZoneArray object. The pointer to the new object is left on the cleanup stack.

Returns: The newly created CTzLocalizedTimeZoneArray object.

Remove ( TInt )

IMPORT_C voidRemove(TIntaIndex)

Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::Remove(TInt)

Removes the time zone at the specified index.

ParameterDescription
aIndexThe index of the time zone to remove.

ReserveL ( TInt )

voidReserveL(TIntaCount)

Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::ReserveL(TInt)

Sort ( TLinearOrder< CTzLocalizedTimeZone > )

IMPORT_C voidSort(TLinearOrder< CTzLocalizedTimeZone >anOrder)

Sorts the array.

ParameterDescription
anOrderThe sorting function to use.