EPOC   SDK Home Glossary Indexes Previous Next Up

TWorldId class


Contents


TWorldId class — World ID

Section Contents


Overview

Defined in

t32wld.h

Link against

ealwl.lib

Description

This class stores the world ID for a city/country — comprised of the city and country names. Unique IDs of this type are used to identify every city in the world database.

This class also defines a field for setting whether city searches span the whole database, or just the current country.


Construction and destruction


TWorldId() — Trivial default C++ constructor

TWorldId();

Description

The default C++ constructor constructs a city ID object, and initialises it with the search locale EWithinWorld.


Query functions


City() — Get city name

const TCityName& City() const;

Description

This function returns the city name in the current TWorldId.

Return value

TCityName&

A reference to the city name.


Country() — Get country name

const TCountryName& Country() const;

Description

This function returns the country name in the current TWorldId.

Return value

TCountryName&

A reference to the country name.


Select() — Get city search mode

TWldSelect Select() const;

Description

This function returns the current city search mode. Clients can search for cities by country, or over the whole world database.

Return value

TWldSelect

The current city search mode.


SetSelect() — Set city search mode

void SetSelect(TWldSelect aSelector);

Description

This function sets the city search mode. Clients can search for cities by country, or over the whole world database.

Arguments

TWldSelect aSelector

The city search mode.

EPOC       SDK Home Glossary Indexes Previous Next Up