![]() |
Home | ![]() |
The QMailMessageServiceFactory class creates objects implementing the QMailMessageService interface. More...
#include <QMailMessageServiceFactory>
enum | ServiceType { Any, Source, Sink, Storage } |
QMailMessageService * | createService ( const QString & key, const QMailAccountId & accountId ) |
QMailMessageServiceConfigurator * | createServiceConfigurator ( const QString & key ) |
QStringList | keys ( ServiceType type = Any ) |
bool | supports ( const QString & key, ServiceType type ) |
bool | supports ( const QString & key, QMailMessage::MessageType messageType ) |
The QMailMessageServiceFactory class creates objects implementing the QMailMessageService interface.
The QMailMessageServiceFactory class creates objects that provide messaging services to the messageserver daemon. The factory allows implementations to be loaded from plugin libraries, and to be retrieved and instantiated by name.
To create a new service that can be created via the QMailMessageServiceFactory, derive from the QMailMessageService base class, and optionally implement the QMailMessageSource and QMailMessageSink interfaces. Export your service via a subclass of the QMailMessageServicePlugin class.
See also QMailMessageService and QMailMessageServicePlugin.
This enum type is used to differentiate between the types of services that QMailMessageServiceFactory can manage.
Constant | Value | Description |
---|---|---|
QMailMessageServiceFactory::Any | 0 | Any type of service. |
QMailMessageServiceFactory::Source | 1 | A message provision service. |
QMailMessageServiceFactory::Sink | 2 | A message transmission service. |
QMailMessageServiceFactory::Storage | 3 | A message content storage service. |
Returns a new instance of the service identified by key, associating it with the account identified by accountId.
Returns a new instance of the configurator class for the service identified by key.
Returns a list of all message services of type type that can be instantiated by the factory.
Returns true if the service identified by key supports the service type type.
Returns true if the service identified by key supports the message type messageType.
Copyright © 2010 QtSoftware | Messaging Framework |