Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMailViewerInterface class defines the interface to objects that can display a mail message. More...
#include <QMailViewerInterface>
Inherits QObject.
The QMailViewerInterface class defines the interface to objects that can display a mail message.
Qt Extended uses the QMailViewerInterface interface for displaying mail messages. A class may implement the QMailViewerInterface interface to display a mail message format.
The message to be displayed is provided to the viewer class using the setMessage() function. If the message refers to external resources, these should be provided using the setResource() function. The clear() function clears any message or resources previously set.
The viewer object should emit the anchorClicked() signal if the user selects a link in the message. If the message supports a concept of completion, then the finished() signal should be emitted after the display has been completed.
Rather than creating objects that implement the QMailViewerInterface directly, clients should create an object of an appropriate type by using the QMailViewerFactory class:
QString key = QMailViewerFactory::defaultKey( QMailViewerFactory::SmilContent ); QMailViewerInterface* smilViewer = QMailViewerFactory::create( key, this, "smilViewer" );
To allow a class to be created through the QMailViewerFactory interface, a plug-in class derived from QMailViewerPlugin should be implemented.
See also QMailViewerFactory and QMailViewerPlugin.
Constructs the QMailViewerInterface object with the parent widget parent.
Destructs the QMailViewerInterface object.
Allows the viewer object to add any relevant actions to the application menu supplied.
This signal is emitted when the user presses the select key while the display has the anchor link selected.
Resets the display to have no content, and removes any resource associations.
This signal is emitted by the viewer to initiate a message completion action. This is only meaningful if the message has not yet been completely retrieved.
See also QMailMessage::status() and QMailMessageServer::completeRetrieval().
This signal is emitted by the viewer to request a display of contact's details.
This signal is emitted by the viewer to initiate a message deletion action.
This signal is emitted when the display of the current mail message is completed. This signal is emitted only for message types that define a concept of completion, such as SMIL slideshows.
This signal is emitted by the viewer to initiate a message forwarding action.
Allows the viewer object to handle the notification of the arrival of new messages, identified by list.
Return true to indicate that the event has been handled, or false to let the caller handle the new message event.
Allows the viewer object to handle the notification of the transmission of queued messages, identified by list.
Return true to indicate that the event has been handled, or false to let the caller handle the new message event.
This signal is emitted by the viewer to report that it is now viewing a different message, identified by id.
This signal is emitted by the viewer to initiate a reply-to-all action.
This signal is emitted by the viewer to initiate a reply action.
This signal is emitted by the viewer to request that the sender's address should be saved as a Contact.
Scrolls the display to position the link within the viewable area.
This signal is emitted by the viewer to send a new message, whose contents are held by message.
Displays the contents of mail. Returns whether the message could be successfully displayed.
Supplies the viewer object with a resource that may be referenced by a mail message. The resource identified as name will be displayed as the object value.
This signal is emitted by the viewer to request a display of the message identified by id, using the presentation style type.
Returns the widget implementing the display interface.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |