The QMessageAddress class provides an interface for a message address. More...
#include <QMessageAddress>
This class was introduced in Qt Mobility 1.0.
enum | Type { System, Phone, Email, InstantMessage } |
QMessageAddress () | |
QMessageAddress ( Type type, const QString & addressee ) | |
QMessageAddress ( const QMessageAddress & other ) | |
virtual | ~QMessageAddress () |
QString | addressee () const |
void | setAddressee ( const QString & addressee ) |
void | setType ( Type type ) |
Type | type () const |
void | parseEmailAddress ( const QString & emailAddress, QString * name, QString * address, QString * suffix = 0, bool * startDelimeterFound = 0, bool * endDelimeterFound = 0 ) |
typedef | QMessageAddressList |
The QMessageAddress class provides an interface for a message address.
A message address consists of an addressee string and a type.
This enum type is used to describe the type of a message address.
Constant | Value | Description |
---|---|---|
QMessageAddress::System | 1 | A system address. |
QMessageAddress::Phone | 2 | A telephony address. |
QMessageAddress::Email | 3 | An Email, Internet Message Format address. |
QMessageAddress::InstantMessage | 4 | An Instant Messaging address. |
Constructs an empty message address.
Constructs a message address with the given type and addressee.
This function was introduced in Qt Mobility 1.0.
Constructs a copy of other.
This function was introduced in Qt Mobility 1.0.
Destroys the message address.
Returns the addressee.
This function was introduced in Qt Mobility 1.0.
See also setAddressee().
Parses an email address into name, address and suffix parts.
* name is set to the name part of the email address. * address is set to the address part of the email address. * suffix is set to the suffix part of the email address.
If the starting delimeter between the name and address part of the email address is found then * startDelimeterFound is set to true; otherwise * startDelimeterFound is set to false;
If the starting delimeter is not found, then the parsing is ambiguous and both * name and * address will be set to the input emailAddress.
If the ending delimeter of the address part of the email address is found then * endDelimeterFound is set to true; otherwise * endDelimeterFound is set to false;
This function was introduced in Qt Mobility 1.0.
Sets the addressee to addressee.
This function was introduced in Qt Mobility 1.0.
See also addressee().
Sets the type of the message address to type.
This function was introduced in Qt Mobility 1.0.
See also type().
Returns the type of the message address.
This function was introduced in Qt Mobility 1.0.
See also setType().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.