Home · All Classes · Grouped Classes · Annotated · Functions

QMailViewerFactory Class Reference

The QMailViewerFactory class creates objects implementing the QMailViewerInterface interface. More...

    #include <QMailViewerFactory>

Public Types

Static Public Members


Detailed Description

The QMailViewerFactory class creates objects implementing the QMailViewerInterface interface.

The QMailViewerFactory class creates objects that are able to display mail messages, and implement the QMailViewerInterface interface. The factory chooses an implementation based on the type of message to be displayed.

The QMailViewerInterface class describes the interface supported by classes that can be created by the QMailViewerFactory class. To create a new class that can be created via the QMailViewerFactory, implement a plug-in that derives from QMailViewerPlugin.

See also QMailViewerInterface and QMailViewerPlugin.


Member Type Documentation

enum QMailViewerFactory::ContentType

This enum defines the types of mail content that viewer objects may be able to display.

ConstantValueDescription
QMailViewerFactory::StaticContent0Mail content that is not animated, such as plain text and HTML.
QMailViewerFactory::SmilContent1Content marked up via Synchronized Multimedia Integration Language.
QMailViewerFactory::AnyContent2Do not specify the type of content to be viewed.


Member Function Documentation

QMailViewerInterface * QMailViewerFactory::create ( const QString & key, QWidget * parent = 0 )   [static]

Creates a viewer object of the class identified by key, setting the returned object to have the parent widget parent.

QString QMailViewerFactory::defaultKey ( ContentType type = AnyContent )   [static]

Returns the key identifying the first class found that can display message containing type content.

See also QMailViewerFactory::ContentType.

QStringList QMailViewerFactory::keys ( ContentType type = AnyContent )   [static]

Returns a list of keys identifying classes that can display a message containing type content.

See also QMailViewerFactory::ContentType.


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3