QtMobility Reference Documentation

QMessageId Class Reference

The QMessageId class provides a unique identifier for a QMessage message within the scope of the messaging store. More...

 #include <QMessageId>

This class was introduced in Qt Mobility 1.0.

Public Functions

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

Related Non-Members

typedef QMessageIdList

Detailed Description

The QMessageId class provides a unique identifier for a QMessage message within the scope of the messaging store.

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

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

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

The QMessageId implementation should be as small as is practical for the underlying platform.

See also QMessage and QMessageManager.

Member Function Documentation

QMessageId::QMessageId ()

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

QMessageId::QMessageId ( const QMessageId & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.0.

QMessageId::QMessageId ( const QString & id )

Constructs an identifier from id.

This function was introduced in Qt Mobility 1.0.

See also toString().

QMessageId::~QMessageId ()

Destroys the identifier.

bool QMessageId::isValid () const

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

This function was introduced in Qt Mobility 1.0.

QString QMessageId::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.

This function was introduced in Qt Mobility 1.0.

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

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

This function was introduced in Qt Mobility 1.0.

Related Non-Members

typedef QMessageIdList

Qt-style synonym for QList<QMessageId>

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.