Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference

SMSMessagePart Class Reference

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

#include <smsmessage.h>

List of all member functions.

Public Members


Detailed Description

The SMSMessagePart class specifies a part within an SMS message.

See also SMSMessage and Qtopia Phone Classes.

SMSMessage 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.


Member Function Documentation

SMSMessagePart::SMSMessagePart ()

Constructs an empty SMS message part.

SMSMessagePart::SMSMessagePart ( const QString & text )

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

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

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

SMSMessagePart::SMSMessagePart ( 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.

SMSMessagePart::SMSMessagePart ( const SMSMessagePart & part )

Constructs a copy of part.

SMSMessagePart::~SMSMessagePart ()

Destructs the SMSMessagePart.

const QByteArray & SMSMessagePart::data () const

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

bool SMSMessagePart::isText () const

Determine if this SMS message part is plain text (returns TRUE) or binary (returns FALSE).

QString SMSMessagePart::mimeType () const

Get the MIME type associated with this SMS message part, or QString::null if it is not a binary part.

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

Assigns a copy of part to this object.

uint SMSMessagePart::position () const

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

QString SMSMessagePart::text () const

Get the plain text contents of this SMS message part, or QString::null if it is not a text part.

This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.2.0