QtMobility Reference Documentation

QMessageAddress Class Reference

The QMessageAddress class provides an interface for a message address. More...

 #include <QMessageAddress>

This class was introduced in Qt Mobility 1.0.

Public Types

enum Type { System, Phone, Email, InstantMessage }

Public Functions

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

Static Public Members

void parseEmailAddress ( const QString & emailAddress, QString * name, QString * address, QString * suffix = 0, bool * startDelimeterFound = 0, bool * endDelimeterFound = 0 )

Related Non-Members

typedef QMessageAddressList

Detailed Description

The QMessageAddress class provides an interface for a message address.

A message address consists of an addressee string and a type.

Member Type Documentation

enum QMessageAddress::Type

This enum type is used to describe the type of a message address.

ConstantValueDescription
QMessageAddress::System1A system address.
QMessageAddress::Phone2A telephony address.
QMessageAddress::Email3An Email, Internet Message Format address.
QMessageAddress::InstantMessage4An Instant Messaging address.

See also type() and setType().

Member Function Documentation

QMessageAddress::QMessageAddress ()

Constructs an empty message address.

QMessageAddress::QMessageAddress ( Type type, const QString & addressee )

Constructs a message address with the given type and addressee.

This function was introduced in Qt Mobility 1.0.

QMessageAddress::QMessageAddress ( const QMessageAddress & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.0.

QMessageAddress::~QMessageAddress () [virtual]

Destroys the message address.

QString QMessageAddress::addressee () const

Returns the addressee.

This function was introduced in Qt Mobility 1.0.

See also setAddressee().

void QMessageAddress::parseEmailAddress ( const QString & emailAddress, QString * name, QString * address, QString * suffix = 0, bool * startDelimeterFound = 0, bool * endDelimeterFound = 0 ) [static]

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.

void QMessageAddress::setAddressee ( const QString & addressee )

Sets the addressee to addressee.

This function was introduced in Qt Mobility 1.0.

See also addressee().

void QMessageAddress::setType ( Type type )

Sets the type of the message address to type.

This function was introduced in Qt Mobility 1.0.

See also type().

Type QMessageAddress::type () const

Returns the type of the message address.

This function was introduced in Qt Mobility 1.0.

See also setType().

Related Non-Members

typedef QMessageAddressList

Qt-style synonym for QList<QMessageAddress>

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.