Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QSMSMessagePart Class Reference
[QtTelephonyModule]

The QSMSMessagePart class specifies a part within an SMS message. More...

    #include <QSMSMessagePart>

Public Functions


Detailed Description

The QSMSMessagePart class specifies a part within an SMS message.

QSMSMessage objects contain zero or more "parts", which describe the contents of the SMS message. A part may be plain text, or a binary stream tagged by a MIME type.

See also QSMSMessage.


Member Function Documentation

QSMSMessagePart::QSMSMessagePart ()

Constructs an empty SMS message part.

QSMSMessagePart::QSMSMessagePart ( const QString & text )

Constructs a new plain text SMS message part from the string text.

QSMSMessagePart::QSMSMessagePart ( const QString & mimeType, const QByteArray & data )

Constructs a new binary SMS message part with the specified mimeType and data.

QSMSMessagePart::QSMSMessagePart ( const QString & mimeType, const QByteArray & data, uint position )

Constructs a new binary SMS message part with the specified mimeType and data. The part is intended to be displayed at position within a subsequent text part.

QSMSMessagePart::QSMSMessagePart ( const QSMSMessagePart & part )

Constructs a copy of part.

QSMSMessagePart::~QSMSMessagePart ()

Destructs the QSMSMessagePart.

const QByteArray & QSMSMessagePart::data () const

Returns the binary data associated with this SMS message part. Returns and empty QByteArray if it is not a binary part.

bool QSMSMessagePart::isText () const

Returns true if this SMS message part is plain text; or false if binary.

QString QSMSMessagePart::mimeType () const

Returns the MIME type associated with this SMS message part, or QString() if it is not a binary part.

uint QSMSMessagePart::position () const

Returns the text position to display this SMS message part at.

QString QSMSMessagePart::text () const

Returns the plain text contents of this SMS message part, or QString() if it is not a text part.

QSMSMessagePart & QSMSMessagePart::operator= ( const QSMSMessagePart & part )

Assigns a copy of part to this object.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3