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

QMailViewerFactory Class Reference
[QtMessagingModule, QtPimModule]

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::PresentationType

This enum defines the types of presentation that message viewer components may implement.

ConstantValueDescription
QMailViewerFactory::AnyPresentation0Do not specify the type of presentation to be employed.
QMailViewerFactory::StandardPresentation1Present the message in the standard fashion for the relevant content type.
QMailViewerFactory::ConversationPresentation2Present the message in the context of a conversation with a contact.
QMailViewerFactory::UserPresentation64The first value that can be used for application-specific purposes.


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 ( QMailMessage::ContentType type = QMailMessage::UnknownContent, PresentationType pres = AnyPresentation )   [static]

Returns the key identifying the first class found that can display message containing type content, using the presentation type pres.

QStringList QMailViewerFactory::keys ( QMailMessage::ContentType type = QMailMessage::UnknownContent, PresentationType pres = AnyPresentation )   [static]

Returns a list of keys identifying classes that can display a message containing type content, using the presentation type pres.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3