QwuiMessageResource Class Reference

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

#include <qwuimessageresource.h>

Inheritance diagram for QwuiMessageResource:
QwuiAbstractResource

List of all members.

Public Member Functions

 QwuiMessageResource (const QString &path=QString::null)
virtual ~QwuiMessageResource ()
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 resource that wraps a message. Use this to wrap a static string as a resource.


Constructor & Destructor Documentation

QwuiMessageResource::QwuiMessageResource ( const QString &  path = QString::null  ) 
QwuiMessageResource::~QwuiMessageResource (  )  [virtual]

Member Function Documentation

qint64 QwuiMessageResource::length (  )  const [virtual]
Returns:
the length of the resource in bytes.

Implements QwuiAbstractResource.

QString QwuiMessageResource::message (  )  const
QString QwuiMessageResource::mimeType (  )  const [virtual]

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

Returns:
the MIME type of the resource.

Implements QwuiAbstractResource.

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

Writes the resource to dev

Parameters:
dev IO device to write to.

Implements QwuiAbstractResource.

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

Member Data Documentation

QString QwuiMessageResource::m_message [private]

The documentation for this class was generated from the following files:
Generated on Fri Jun 4 01:18:58 2010 for QtWui : Web User Interfaces for Qt by  doxygen 1.6.3