PhoneUtils Class Reference
The PhoneUtils class provides utilities of interest to phone applications.
More...
#include <phone.h>
List of all member functions.
Static Public Members
Detailed Description
The PhoneUtils class provides utilities of interest to phone applications.
See also PhoneCall, PhoneLine, and Qtopia Phone Classes.
Member Function Documentation
int PhoneUtils::matchNumbers ( const QString & num1, const QString & num2 ) [static]
Compare two phone numbers 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 PhoneUtils::matchPrefix ( const QString & num, const QString & prefix ) [static]
Determine if a number appears to start with a given prefix.
This is useful for fuzzy matching in quick dialers.
QString PhoneUtils::resolveLetters ( const QString & number ) [static]
Convert a letter-ized phone number into a regular phone number.
e.g. "1-800-HEY-PHIL" => "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 PhoneUtils::stripNumber ( const QString & number ) [static]
Strip a number down to remove non-digit and non-dialing characters.
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.2.0
|