QtMobility Reference Documentation

QMessageContentContainerId Class Reference

The QMessageContentContainerId class provides a unique identifier for QMessageContentContainer internet media (MIME) type entities, within the scope of the containing message. More...

 #include <QMessageContentContainerId>

This class was introduced in Qt Mobility 1.0.

Public Functions

QMessageContentContainerId ()
QMessageContentContainerId ( const QMessageContentContainerId & other )
QMessageContentContainerId ( const QString & id )
~QMessageContentContainerId ()
bool isValid () const
QString toString () const

Related Non-Members

typedef QMessageContentContainerIdList

Detailed Description

The QMessageContentContainerId class provides a unique identifier for QMessageContentContainer internet media (MIME) type entities, within the scope of the containing message.

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

The identifier of the containing (parent) message is return by messageId()

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

If the object a QMessageContentContainerId identifies is removed then the identifier may be reused.

If the QMessageContentContainerId refers to an object that has a parent container, and the contents of that parent container are modified by removing or prepending contents (i.e. message attachments are removed or a message body is created) or the parent container itself is removed then the identifier may become invalid, or be reused to reference a different object entirely.

See also QMessageContentContainer.

Member Function Documentation

QMessageContentContainerId::QMessageContentContainerId ()

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

QMessageContentContainerId::QMessageContentContainerId ( const QMessageContentContainerId & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.0.

QMessageContentContainerId::QMessageContentContainerId ( const QString & id )

Constructs an identifier from id.

This function was introduced in Qt Mobility 1.0.

See also toString().

QMessageContentContainerId::~QMessageContentContainerId ()

Destroys the identifier.

bool QMessageContentContainerId::isValid () const

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

This function was introduced in Qt Mobility 1.0.

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

Related Non-Members

typedef QMessageContentContainerIdList

Qt-style synonym for QList<QMessageContentContainerId>

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.