Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QContactActionFactory Class

The QContactActionFactory class provides an interface for clients to retrieve instances of action implementations More...

 #include <QContactActionFactory>

Inherits: QObject.

Public Functions

QContactActionFactory(QObject * parent = 0)
virtual ~QContactActionFactory()
virtual QList<QContactActionDescriptor> actionDescriptors() const = 0
virtual QContactFilter contactFilter(const QContactActionDescriptor & which) const = 0
virtual QContactAction * create(const QContactActionDescriptor & which) const = 0
virtual QVariant metaData(const QString & key, const QList<QContactActionTarget> & targets, const QVariantMap & parameters, const QContactActionDescriptor & which) const = 0
virtual QSet<QContactActionTarget> supportedTargets(const QContact & contact, const QContactActionDescriptor & which) const = 0
virtual bool supportsContact(const QContact & contact, const QContactActionDescriptor & which) const
  • 31 public functions inherited from QObject

Static Public Members

const QString InterfaceName()
  • 11 static public members inherited from QObject

Protected Functions

QContactActionDescriptor createDescriptor(const QString & actionName, const QString & serviceName, const QString & actionIdentifier, int implementationVersion) const
  • 9 protected functions inherited from QObject

Additional Inherited Members

Detailed Description

The QContactActionFactory class provides an interface for clients to retrieve instances of action implementations

Member Function Documentation

QContactActionFactory::QContactActionFactory(QObject * parent = 0)

Default constructor for this interface. Passes parent to the QObject constructor.

QContactActionFactory::~QContactActionFactory() [virtual]

Clears any memory in use by this factory

const QString QContactActionFactory::InterfaceName() [static]

The name of the interface that action plugins should implement.

QList<QContactActionDescriptor> QContactActionFactory::actionDescriptors() const [pure virtual]

Return a list of action descriptors for the actions that this factory supports.

QContactFilter QContactActionFactory::contactFilter(const QContactActionDescriptor & which) const [pure virtual]

Returns a filter to select contacts that are supported by the action specified by which.

QContactAction * QContactActionFactory::create(const QContactActionDescriptor & which) const [pure virtual]

Returns a new QContactAction instance for the supplied action descriptor which.

The caller will own this object.

QContactActionDescriptor QContactActionFactory::createDescriptor(const QString & actionName, const QString & serviceName, const QString & actionIdentifier, int implementationVersion) const [protected]

Creates an action descriptor based on the supplied action name actionName, service name serviceName, action identifier actionIdentifier, and version implementationVersion.

QVariant QContactActionFactory::metaData(const QString & key, const QList<QContactActionTarget> & targets, const QVariantMap & parameters, const QContactActionDescriptor & which) const [pure virtual]

Returns the meta-data associated with the action described by which for the given key (such as icon, label or sound cues). The meta-data may vary depending on the targets of the action and any parameters to invocation which the client may specify.

QSet<QContactActionTarget> QContactActionFactory::supportedTargets(const QContact & contact, const QContactActionDescriptor & which) const [pure virtual]

Returns the targets which are supported by the action described by which that may be instantiated by this factory for the given contact. If there are no supported targets for the contact, then that contact is not supported by the action.

See also supportsContact().

bool QContactActionFactory::supportsContact(const QContact & contact, const QContactActionDescriptor & which) const [virtual]

Returns true if the there are any targets for the given contact supported by the action described by which.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web