TelephoneNumber Class Reference

class TelephoneNumber

A static class that provides functions to resolve telephone numbers.

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

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)

Member Functions 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.

9.1

Parameters

TDialString & aDialStringThe results of the telephone parser are stored here.
const TCityDialCodes & aFromSpecifies the area code of the dialling location.
const TCityDialCodes & aToSpecifies the area code of the city being dialled.
TCityDialOptions 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.
TChar aCodeSeparatorSpecifies the code separator.
TPlusFormatDialOptions 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.

9.1

Parameters

TDialString & aDialStringThe results of the telephone parser are stored here.
const TDialLocation & aDialLocationSpecifies the dialling location.
const TChargeCard & aChargeCardSpecifies charge card information.
const TDesC & aPhoneNumberA telephone number is to be parsed in the form of +44 20 ...
TParseMode 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

9.1

Parameters

TDialString & aDialStringThe results of the telephone parser are stored here.
const TDialLocation & aDialLocationSpecifies the dialling location.
const TDesC & 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.

9.1

Parameters

TDialString & aDialStringThe results of the telephone parser are stored here.
const TDialLocation & aDialLocationSpecifies the dialling location.
const TDesC & aPhoneNumberTelephone number is to be parsed in the form of +44 20 ...
TCityDialOptions 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.