Home · All Classes · Annotated · Functions

QPhoneUtils Class Reference

The QPhoneUtils class provides utilities of interest to phone applications. More...

#include <QPhoneUtils>

Static Public Members


Detailed Description

The QPhoneUtils class provides utilities of interest to phone applications.

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

See also QPhoneCall and QPhoneLine.


Member Function Documentation

QString QPhoneUtils::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 QPhoneUtils::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 QPhoneUtils::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 QPhoneUtils::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 QPhoneUtils::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