QtMobility Reference Documentation

Contents

QMessageAccountId Class Reference

The QMessageAccountId class provides a unique identifier for a QMessageAccount messaging account, within the scope of the messaging store. More...

 #include <QMessageAccountId>

This class was introduced in Qt Mobility 1.0.

Public Functions

QMessageAccountId ()
QMessageAccountId ( const QMessageAccountId & other )
QMessageAccountId ( const QString & id )
~QMessageAccountId ()
bool isValid () const
QString toString () const
bool operator< ( const QMessageAccountId & other ) const

Detailed Description

The QMessageAccountId class provides a unique identifier for a QMessageAccount messaging account, within the scope of the messaging store.

A QMessageAccountId can be constructed from a string, or converted to a string with toString().

A QMessageAccountId instance can be tested for validity with isValid(), and compared to other instances for equality.

If the message a QMessageAccountId identifies is removed from the messaging store then the identifier will not be reused.

See also QMessageAccount.

Member Function Documentation

QMessageAccountId::QMessageAccountId ()

Creates an invalid identifier, toString() will return a null string.

QMessageAccountId::QMessageAccountId ( const QMessageAccountId & other )

Constructs a copy of other.

QMessageAccountId::QMessageAccountId ( const QString & id )

Constructs an identifier from id.

See also toString().

QMessageAccountId::~QMessageAccountId ()

Destroys the identifier.

bool QMessageAccountId::isValid () const

Returns true if this identifier is valid; otherwise returns false.

QString QMessageAccountId::toString () const

Returns the string representation of this identifier.

A null string should be returned if and only if the identifier is invalid.

String representations of identifiers should not be used to test for equality, instead the equality operator should be used.

bool QMessageAccountId::operator< ( const QMessageAccountId & other ) const

Returns true if this identifier is ordered before other using an implementation-defined ordering.