Locale selection
[Public API functions]

Collaboration diagram for Locale selection:

Classes

struct  Country
 Container type for country specific data. More...

Functions

void WINAPI vpb_set_country (const Country *country)
 Set the global default country specific information.
int WINAPI vpb_set_country (int handle, const Country *country)
 Set the country specific information for an individual port.
const Country *WINAPI vpb_get_port_country (int handle)
 Get the current country data for port handle.
const Country *WINAPI vpb_get_country_data (const std::string &name)
 Get country specific data by name.
const Country *WINAPI vpb_get_country_data (int code)
 Get country specific data by numeric country code.

Detailed Description

See also:
Localisation

Function Documentation

const Country* WINAPI vpb_get_country_data ( int  code  ) 

Get country specific data by numeric country code.

Parameters:
code The ITU-T numeric country calling code. A comprehensive list of the numeric country codes is available here: http://wikipedia.org/wiki/List_of_country_calling_codes
Returns:
NULL if code is not a pre-defined numeric country code.

const Country* WINAPI vpb_get_country_data ( const std::string &  name  ) 

Get country specific data by name.

Parameters:
name A country name from the list here.
Returns:
NULL if name is not a pre-defined country name.

Referenced by VTCore::Reset(), vpb_cid_compose_wav(), and vpb_cid_t2_compose_wav().

int WINAPI vpb_set_country ( int  handle,
const Country country 
)

Set the country specific information for an individual port.

This will override the default country data for handle. If country is NULL, then handle will revert to using the global default data.

References set_country().

void WINAPI vpb_set_country ( const Country country  ) 

Set the global default country specific information.

This data will be used for ports that have not had their country data set individually. If country is NULL it will restore the initial hardcoded default country settings (ie. AUSTRALIA).

References VPBREG::country, VPBREG::hostdsp, Country::name, VPBREG::numch, HostDSP::SetCountry(), and vpb_c.


Generated on Mon May 19 14:29:36 2008 for libvpb by  doxygen 1.5.5