Home · All Classes · Grouped Classes · Annotated · Functions

QWspPart Class Reference

The QWspPart class represents a single part within a WSP message. More...

    #include <QWspPart>

Inherited by QWspPush.

Public Functions


Detailed Description

The QWspPart class represents a single part within a WSP message.

The QWspPart class represents a single part within a WSP message.


Member Function Documentation

QWspPart::QWspPart ()

Construct an empty WSP part structure.

QWspPart::QWspPart ( const QWspPart & part )

Construct a WSP part structure that is a copy of part.

QWspPart::~QWspPart ()

Destruct this WSP part.

void QWspPart::addHeader ( const QWspField & h )

Add header h to this WSP part.

void QWspPart::addHeader ( const QString & name, const QString & value )

This is an overloaded member function, provided for convenience.

Add a header with the specified name and value to this WSP part.

const QByteArray & QWspPart::data () const

Return the data body associated with this WSP part.

See also setData().

const QWspField * QWspPart::header ( const QString & name ) const

Find the header called name and return its field block. Returns null if there is no such header.

const QList<QWspField> & QWspPart::headers () const

Return the list of headers associated with this WSP part.

void QWspPart::readData ( QIODevice * d, int l )

Read l bytes from d and make them the body of this WSP part.

void QWspPart::setData ( const char * d, int l )

Set the data body of this WSP part to the l bytes from the array d.

See also data().

void QWspPart::writeData ( QIODevice * d ) const

Write the body of this WSP part to d.

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

Copy the contents of part into this object.


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3