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

QWspPduDecoder Class Reference
[QtTelephonyModule]

The QWspPduDecoder class provides facilities for parsing WSP PDU's. More...

    #include <QWspPduDecoder>

Inherits QObject.

Public Types

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QWspPduDecoder class provides facilities for parsing WSP PDU's.

The QWspPduDecoder class provides facilities for parsing WSP PDU's.


Member Type Documentation

enum QWspPduDecoder::Status

This enumeration defines the status of the input dats stream.

ConstantValueDescription
QWspPduDecoder::OK0The stream is OK.
QWspPduDecoder::Unhandled1The stream contains data that cannot be handled.
QWspPduDecoder::Eof2End of file was reached before the real end of the message.
QWspPduDecoder::Fatal3The stream contains data that caused a fatal parse error.


Member Function Documentation

QWspPduDecoder::QWspPduDecoder ( QIODevice * d )

Construct a WSP PDU decoder to decode the data from d.

QWspPduDecoder::~QWspPduDecoder ()

Destroy this WSP PDU decoder.

QString QWspPduDecoder::decodeContentType ()

Decode a content type value from the input data stream.

void QWspPduDecoder::decodeContentTypeAndHeaders ( QWspPart & part, quint32 hdrLen )

Decode the content type and headers from the input data stream. The hdrLen parameter indicates the number of bytes within the block that holds the content type and headers. The part parameter indicates the object to place the content type and header information into.

QString QWspPduDecoder::decodeEncodedString ()

Decode an encoded string from the input data stream.

QWspField QWspPduDecoder::decodeField ()

Decode a field declaration consisting of a name and a value from the input data stream.

quint32 QWspPduDecoder::decodeInteger ()

Decode either a short integer or a long integer, depending upon whether the first byte has the high bit set (short) or unset (long).

See also decodeShortInteger() and decodeLongInteger().

quint32 QWspPduDecoder::decodeLength ()

Decode a length value from the input data stream. Leading byte values between 0 and 30 indicate an explicit length. A leading byte value of 31 indicates that a variable-length integer follows.

See also decodeUIntVar().

quint32 QWspPduDecoder::decodeLongInteger ()

Decode a long integer value from the input data stream. Long integers start with a byte indicating the length of the integer encoding, followed by that many bytes from most significant onwards.

QWspMultipart QWspPduDecoder::decodeMultipart ()

Decode a multipart content block from the input data stream.

quint8 QWspPduDecoder::decodeOctet ()

Decode the next octet from the input data stream.

QString QWspPduDecoder::decodeParameter ()

Decode a parameter value from the input data stream.

QWspPart QWspPduDecoder::decodePart ()

Decode a single WSP part from an input data stream.

QWspPush QWspPduDecoder::decodePush ()

Decode a WSP push datagram from an input data stream.

quint8 QWspPduDecoder::decodeShortInteger ()

Decode a short integer value from the input data stream. Short integers are between 0 and 127, and have the high bit set to indicate "short".

QString QWspPduDecoder::decodeTextString ()

Decode a text string from the input data stream.

QString QWspPduDecoder::decodeTokenText ()

Decode a token text value from the input data stream.

quint8 QWspPduDecoder::decodeUInt8 ()

Decode an unsigned 8-bit integer from the input data stream.

quint16 QWspPduDecoder::decodeUInt16 ()

Decode an unsigned 16-bit integer from the input data stream.

quint32 QWspPduDecoder::decodeUInt32 ()

Decode an unsigned 32-bit integer from the input data stream.

quint32 QWspPduDecoder::decodeUIntVar ()

Decode an unsigned 32-bit integer from the input data stream that is encoded with the variable-length WSP encoding.

QString QWspPduDecoder::decodeVersion ()

Decode a version indicator from the input data stream.

QIODevice * QWspPduDecoder::device ()

Get the device that this WSP PDU decoder is reading from.

quint8 QWspPduDecoder::peekOctet ()

Peek at the next octet in the input data stream.

void QWspPduDecoder::selectCodePage ( quint8 page )   [signal]

Signal that is emitted when the WSP PDU decoder wants to change the header code page. Slots that are connected to this signal should call setHeaderCodec() to select the correct codec.

void QWspPduDecoder::setHeaderCodec ( QWspHeaderCodec * c )

Set the header codec, that converts byte values into string names, to c.

void QWspPduDecoder::setStatus ( Status s )

Set the status of the input stream to s.

See also status().

Status QWspPduDecoder::status () const

Get the current status of the input stream.

See also setStatus().


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3