Home · All Classes · Annotated · Functions

QPhoneNumber Class Reference

The QPhoneNumber class provides utilities of interest to phone applications that manipulate numeric telephony numbers. More...

#include <QPhoneNumber>

Static Public Members


Detailed Description

The QPhoneNumber class provides utilities of interest to phone applications that manipulate numeric telephony numbers.

The QPhoneNumber class provides utilities that may be of interest to applications that manipulate numeric telephone numbers.


Member Function Documentation

QString QPhoneNumber::localNumber ( const QString & number )   [static]

Returns the local component of the phone number. In the case of countries with variable area codes may only return the end of the local number.

int QPhoneNumber::matchNumbers ( const QString & num1, const QString & num2 )   [static]

Compare two phone numbers, num1 and num2, to determine the degree to which they match. Returns zero for no match, or increasing positive values for the "quality" of the match between the values.

bool QPhoneNumber::matchPrefix ( const QString & num, const QString & prefix )   [static]

Determine if a number, num, appears to start with a given prefix. This is useful for fuzzy matching in quick dialers.

QString QPhoneNumber::resolveLetters ( const QString & number )   [static]

Convert a letter-ized phone number into a regular phone number. e.g. 1-800-HEY-PHIL becomes 1-800-439-7445.

Note: this is the only function in the API that can take a letter-ized phone number as an argument. All other functions assume that the number has already been resolved.

QString QPhoneNumber::stripNumber ( const QString & number )   [static]

Strip a number down to remove non-digit and non-dialing characters.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7