#include <TzLocalizationDataTypes.h>
Link against:
timezonelocalization.lib
Class CTzLocalizedCityArray
class CTzLocalizedCityArray : public CTzLocalizedArray< CTzLocalizedCity >;
Description
An array of cities. This just passes function calls on to its templated base class, CTzLocalizedArray
.
Derivation
CTzLocalizedArray< CTzLocalizedCity >
- No description.
CTzLocalizedCityArray
- An array of cities. This just passes function calls on to its templated base cla...
Members
Defined in CTzLocalizedCityArray
:
Related Topics
»
Symbian OS v9.4 »
Examples »
Application Services example code »
timezonelocalisation: Using time zone localisation
Construction and destruction
IMPORT_C static CTzLocalizedCityArray* NewL();
Description
Allocates and constructs a new CTzLocalizedCityArray object.
Return value
IMPORT_C static CTzLocalizedCityArray* NewLC();
Description
Allocates and constructs a new CTzLocalizedCityArray object. The pointer to the new object is left on the cleanup stack.
Return value
IMPORT_C CTzLocalizedCity& At(TInt aIndex) const;
Description
Returns the city at the specified index.
Parameters
TInt aIndex |
Index of the element to get.
|
|
Return value
IMPORT_C TInt Count() const;
Description
Returns the number of elements in the city array.
Return value
TInt
|
The number of elements in the array.
|
|
AppendL(CTzLocalizedCity *)
IMPORT_C void AppendL(CTzLocalizedCity *aCity);
Description
Appends a city to this array. Ownership of the pointer is transferred to the array.
Parameters
IMPORT_C void Remove(TInt aIndex);
Description
Removes the city at the specified index.
Parameters
TInt aIndex |
The index of the city to remove.
|
|
Sort(TLinearOrder< CTzLocalizedCity >)
IMPORT_C void Sort(TLinearOrder< CTzLocalizedCity > anOrder);
Description
Sorts this array.
Parameters
Find(CTzLocalizedCity *,TIdentityRelation< CTzLocalizedCity >)
IMPORT_C TInt Find(CTzLocalizedCity *anEntry, TIdentityRelation< CTzLocalizedCity > aIdentityRelation);
Description
Searches for a city in the array.
Parameters
Return value
TInt
|
The index of the first matching object in the array, or KErrNotFound if no match is found.
|
|