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.

Member Functions Documentation

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

IMPORT_C TInt CalculateDialCityPrefix ( TDialString & aDialString,
const TCityDialCodes & aFrom,
const TCityDialCodes & aTo,
TCityDialOptions aOption,
TChar aCodeSeparator,
TPlusFormatDialOptions aPlusOption
) [static]

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

9.1

Parameters

TDialString & aDialString The results of the telephone parser are stored here.
const TCityDialCodes & aFrom Specifies the area code of the dialling location.
const TCityDialCodes & aTo Specifies the area code of the city being dialled.
TCityDialOptions aOption This 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 aCodeSeparator Specifies the code separator.
TPlusFormatDialOptions aPlusOption Specifies whether the dial string is in full or in the + char format.

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

IMPORT_C TInt Parse ( TDialString & aDialString,
const TDialLocation & aDialLocation,
const TChargeCard & aChargeCard,
const TDesC & aPhoneNumber,
TParseMode aParseMode
) [static]

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

9.1

Parameters

TDialString & aDialString The results of the telephone parser are stored here.
const TDialLocation & aDialLocation Specifies the dialling location.
const TChargeCard & aChargeCard Specifies charge card information.
const TDesC & aPhoneNumber A telephone number is to be parsed in the form of +44 20 ...
TParseMode aParseMode Indicates whether the resulting string is for display or for dialling.

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

IMPORT_C TInt Parse ( 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 & aDialString The results of the telephone parser are stored here.
const TDialLocation & aDialLocation Specifies the dialling location.
const TDesC & aPhoneNumber Telephone number is to be parsed in the form of +44 20...

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

IMPORT_C TInt Parse ( TDialString & aDialString,
const TDialLocation & aDialLocation,
const TDesC & aPhoneNumber,
TCityDialOptions aOption
) [static]

This parser resolves a phone number.

9.1

Parameters

TDialString & aDialString The results of the telephone parser are stored here.
const TDialLocation & aDialLocation Specifies the dialling location.
const TDesC & aPhoneNumber Telephone number is to be parsed in the form of +44 20 ...
TCityDialOptions aOption This 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.