| Home · All Classes · Grouped Classes · Annotated · Functions | ![]() |
The QMailComposerInterface class defines the interface to objects that can compose a mail message. More...
#include <QMailComposerInterface>
Inherits QObject.
The QMailComposerInterface class defines the interface to objects that can compose a mail message.
Qtopia uses the QMailComposerInterface interface for composing mail messages. A class may implement the QMailComposerInterface interface to compose a mail message format.
The composer class may start composing with no associated message, or it may be provided with an existing message to edit, via the setMessage() or setText() functions. A client can query whether the composer object is empty with the isEmpty() function, and extract the composed message with the message() function. If the message type supports attachments, these can be attached with the attach() function. The current state of composition can be cleared with the clear() function.
The composer object should emit the contentChanged() signal whenever the composed message changes.
Each composer class must export metadata describing itself and the messages it is able to compose. To do this, the composer must implement the key(), messageType(), name(), displayName() and displayIcon() functions.
Rather than creating objects that implement the QMailComposerInterface directly, clients should create an object of an appropriate type by using the QMailComposerFactory class:
QString key = QMailComposerFactory::defaultKey( QMailMessage::Email );
QMailComposerInterface* emailComposer = QMailComposerFactory::create( key, this, "emailComposer" );
To allow a class to be created through the QMailComposerFactory interface, a plug-in class derived from QMailComposerPlugin should be implemented.
See also QMailComposerFactory and QMailComposerPlugin.
Constructs the QMailComposerInterface object with the parent widget parent.
Destructs the QMailComposerInterface object.
Allows the composer object to add any relevant actions to the application menu supplied.
Adds item as an attachment to the message in the composer. The action parameter specifies what the composer should do with item.
Clears any message content contained in the composer.
This signal is emitted whenever the composer's content is changed.
Returns the icon representing the message type created by the composer.
Returns the translated name of the message type created by the composer, in a form suitable for display on a button or menu.
This signal is emitted when the user has completed editing.
Returns true if the composer contains no message content; otherwise returns false.
Returns a string identifying the composer.
Returns the current content of the composer.
See also setMessage().
Returns the type of message created by the composer.
Returns the translated name of the message type created by the composer.
Sets the content of the composer to mail.
See also message().
Sets the composer to append signature to the body of the message, when creating a message.
Sets the message to contain text, if that is meaningful to the message type created by the composer. The text has the mime-type type.
Returns the widget implementing the composer interface.
| Copyright © 2008 Nokia | Trademarks | Qtopia 4.3.3 |