Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <TzLocalizationDataTypes.h>
Link against: timezonelocalization.lib

Class CTzLocalizedTimeZoneArray

class CTzLocalizedTimeZoneArray : public CTzLocalizedArray< CTzLocalizedTimeZone >;

Description

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

Derivation

Members

Defined in CTzLocalizedTimeZoneArray:

Related Topics


Construction and destruction


NewL()

IMPORT_C static CTzLocalizedTimeZoneArray* NewL();

Description

Allocates and constructs a new CTzLocalizedTimeZoneArray object.

Return value

CTzLocalizedTimeZoneArray *

The newly created CTzLocalizedTimeZoneArray object.


NewLC()

IMPORT_C static CTzLocalizedTimeZoneArray* NewLC();

Description

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

Return value

CTzLocalizedTimeZoneArray *

The newly created CTzLocalizedTimeZoneArray object.

[Top]


Member functions


At(TInt)const

IMPORT_C CTzLocalizedTimeZone& At(TInt aIndex) const;

Description

Returns the time zone at the specified index.

Parameters

TInt aIndex

The index of the element.

Return value

CTzLocalizedTimeZone &

A reference to the time zone at aIndex.


Count()const

IMPORT_C TInt Count() const;

Description

Returns the number of elements in the array.

Return value

TInt

The number of elements in the array.


AppendL(CTzLocalizedTimeZone *)

IMPORT_C void AppendL(CTzLocalizedTimeZone *aElement);

Description

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

Parameters

CTzLocalizedTimeZone *aElement

A pointer to the time zone to add.


Remove(TInt)

IMPORT_C void Remove(TInt aIndex);

Description

Removes the time zone at the specified index.

Parameters

TInt aIndex

The index of the time zone to remove.


Sort(TLinearOrder< CTzLocalizedTimeZone >)

IMPORT_C void Sort(TLinearOrder< CTzLocalizedTimeZone > anOrder);

Description

Sorts the array.

Parameters

TLinearOrder< CTzLocalizedTimeZone > anOrder

The sorting function to use.


Find(CTzLocalizedTimeZone *,TIdentityRelation< CTzLocalizedTimeZone >)

IMPORT_C TInt Find(CTzLocalizedTimeZone *anEntry, TIdentityRelation< CTzLocalizedTimeZone > aIdentityRelation);

Description

Searches for a time zone in this array.

Parameters

CTzLocalizedTimeZone *anEntry

The time zone to search for.

TIdentityRelation< CTzLocalizedTimeZone > aIdentityRelation

The search function to use.

Return value

TInt

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