QwuiMessageRessource Class Reference

A simple ressource that wraps a message. Use this to wrap a static string as a ressource. More...

#include <qwuimessageressource.h>

Inheritance diagram for QwuiMessageRessource:

QwuiAbstractRessource

List of all members.

Public Member Functions

 QwuiMessageRessource (const QString &path=QString::null)
virtual ~QwuiMessageRessource ()
virtual QString mimeType () const
virtual qint64 length () const
virtual void sendToDevice (QIODevice *dev) const
virtual void setMessage (const QString &message)
QString message () const

Private Attributes

QString m_message


Detailed Description

A simple ressource that wraps a message. Use this to wrap a static string as a ressource.

Constructor & Destructor Documentation

QwuiMessageRessource::QwuiMessageRessource ( const QString &  path = QString::null  ) 

QwuiMessageRessource::~QwuiMessageRessource (  )  [virtual]


Member Function Documentation

QString QwuiMessageRessource::mimeType (  )  const [virtual]

Subclasses must provide the MIME type of the ressource like "text/html" or "image/jpeg".

Returns:
the MIME type of the ressource.

Implements QwuiAbstractRessource.

qint64 QwuiMessageRessource::length (  )  const [virtual]

Returns:
the length of the ressource in bytes.

Implements QwuiAbstractRessource.

void QwuiMessageRessource::sendToDevice ( QIODevice *  dev  )  const [virtual]

Writes the ressource to dev

Parameters:
dev IO device to write to.

Implements QwuiAbstractRessource.

void QwuiMessageRessource::setMessage ( const QString &  message  )  [virtual]

QString QwuiMessageRessource::message (  )  const


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Fri Dec 19 00:31:14 2008 for QtWui : Web User Interfaces for Qt by  doxygen 1.5.6