TelephoneNumber Class Reference

#include <dial.h>

Link against: dial.lib

class TelephoneNumber
Public Member Functions
IMPORT_C TIntCalculateDialCityPrefix(TDialString &, const TCityDialCodes &, const TCityDialCodes &, TCityDialOptions, TChar, TPlusFormatDialOptions)
IMPORT_C TIntParse(TDialString &, const TDialLocation &, const TChargeCard &, const TDesC &, TParseMode)
IMPORT_C TIntParse(TDialString &, const TDialLocation &, const TDesC &)
IMPORT_C TIntParse(TDialString &, const TDialLocation &, const TDesC &, TCityDialOptions)

Detailed Description

A static class that provides functions to resolve telephone numbers.

DeprecatedThis class has been deprecated from 9.1 and should no longer be used.

Member Function Documentation

CalculateDialCityPrefix ( TDialString &, const TCityDialCodes &, const TCityDialCodes &, TCityDialOptions, TChar, TPlusFormatDialOptions )

IMPORT_C TIntCalculateDialCityPrefix(TDialString &aDialString,
const TCityDialCodes &aFrom,
const TCityDialCodes &aTo,
TCityDialOptionsaOption,
TCharaCodeSeparator,
TPlusFormatDialOptionsaPlusOption
)[static]

This parser resolves the phone number for Time/World application.

Deprecated9.1

ParameterDescription
aDialStringThe results of the telephone parser are stored here.
aFromSpecifies the area code of the dialling location.
aToSpecifies the area code of the city being dialled.
aOptionThis option applies when the phone number being dialled is in the same location as the dialler: It controls whether the area code is included in the final dial string.
aCodeSeparatorSpecifies the code separator.
aPlusOptionSpecifies whether the dial string is in full or in the + char format.

Parse ( TDialString &, const TDialLocation &, const TChargeCard &, const TDesC &, TParseMode )

IMPORT_C TIntParse(TDialString &aDialString,
const TDialLocation &aDialLocation,
const TChargeCard &aChargeCard,
const TDesC &aPhoneNumber,
TParseModeaParseMode
)[static]

This parser resolves a phone number with additional of a TChargeCard.

Deprecated9.1

ParameterDescription
aDialStringThe results of the telephone parser are stored here.
aDialLocationSpecifies the dialling location.
aChargeCardSpecifies charge card information.
aPhoneNumberA telephone number is to be parsed in the form of +44 20 ...
aParseModeIndicates whether the resulting string is for display or for dialling.

Parse ( TDialString &, const TDialLocation &, const TDesC & )

IMPORT_C TIntParse(TDialString &aDialString,
const TDialLocation &aDialLocation,
const TDesC &aPhoneNumber
)[static]

This parser resolves a phone number. It assumes that TCityDialOption is always set to EDialCityStripDuplicateAreaCode

Deprecated9.1

ParameterDescription
aDialStringThe results of the telephone parser are stored here.
aDialLocationSpecifies the dialling location.
aPhoneNumberTelephone number is to be parsed in the form of +44 20...

Parse ( TDialString &, const TDialLocation &, const TDesC &, TCityDialOptions )

IMPORT_C TIntParse(TDialString &aDialString,
const TDialLocation &aDialLocation,
const TDesC &aPhoneNumber,
TCityDialOptionsaOption
)[static]

This parser resolves a phone number.

Deprecated9.1

ParameterDescription
aDialStringThe results of the telephone parser are stored here.
aDialLocationSpecifies the dialling location.
aPhoneNumberTelephone number is to be parsed in the form of +44 20 ...
aOptionThis option applies when the phone number being dialled is in the same location as the dialler: It controls whether the area code is included in the final dial string.