![]() |
Home · All Classes · All Functions · | ![]() |
The QMessageAddress class provides an interface for a message address. More...
#include <QMessageAddress>
This class is under development and is subject to change.
enum | Type { System, Phone, Email, Xmpp } |
QMessageAddress () | |
QMessageAddress ( Type type, const QString & recipient ) | |
QMessageAddress ( const QMessageAddress & other ) | |
virtual | ~QMessageAddress () |
QString | recipient () const |
void | setRecipient ( const QString & recipient ) |
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 ) |
The QMessageAddress class provides an interface for a message address.
A message address consists of a recipient 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::Xmpp | 4 | An XMPP, Extensible Messaging and Presence Protocol address. |
See also type() and setType().
Constructs an empty message address.
Constructs a message address with the type type and the recipient address recipient.
Constructs a copy of other.
Destroys the message address.
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;
Returns the recipient.
See also setRecipient().
Sets the recipient to recipient.
See also recipient().
Sets the type of the message address to type.
See also type().
Returns the type of the message address.
See also setType().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |