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  · 

QContactActionDescriptor Class

The QContactActionDescriptor class provides information that uniquely identifies a specific implementation of an action More...

 #include <QContactActionDescriptor>

Public Functions

QContactActionDescriptor()
QContactActionDescriptor(const QContactActionDescriptor & other)
~QContactActionDescriptor()
QString actionIdentifier() const
QString actionName() const
QContactFilter contactFilter() const
int implementationVersion() const
bool isValid() const
QVariant metaData(const QString & key, const QList<QContactActionTarget> & targets, const QVariantMap & parameters = QVariantMap()) const
QVariant metaData(const QString & key, const QVariantMap & parameters = QVariantMap()) const
QVariant metaData(const QString & key, const QContactActionTarget & target, const QVariantMap & parameters = QVariantMap()) const
QVariant metaData(const QString & key, const QContact & contact, const QContactDetail & detail = QContactDetail(), const QVariantMap & parameters = QVariantMap()) const
QString serviceName() const
QSet<QContactActionTarget> supportedTargets(const QContact & contact) const
bool supportsContact(const QContact & contact) const
bool operator!=(const QContactActionDescriptor & other) const
QContactActionDescriptor & operator=(const QContactActionDescriptor & other)
bool operator==(const QContactActionDescriptor & other) const

Static Public Members

const QString MetaDataIcon
const QString MetaDataLabel
const QString MetaDataMandatoryParameterKeys
const QString MetaDataOptionalParameterKeys
const QString MetaDataSecondLabel

Detailed Description

The QContactActionDescriptor class provides information that uniquely identifies a specific implementation of an action

Member Function Documentation

QContactActionDescriptor::QContactActionDescriptor()

Constructs a new, invalid action descriptor

QContactActionDescriptor::QContactActionDescriptor(const QContactActionDescriptor & other)

Constructs a copy of the other action descriptor

QContactActionDescriptor::~QContactActionDescriptor()

Cleans up any memory in use by the action descriptor

QString QContactActionDescriptor::actionIdentifier() const

Returns the identifier of the action, within the service.

QString QContactActionDescriptor::actionName() const

Returns the name of the action which is identified by the action descriptor

QContactFilter QContactActionDescriptor::contactFilter() const

Returns a filter which will match contacts for which this action has at least one supported action target

int QContactActionDescriptor::implementationVersion() const

Returns the service-specified version of the action implementation which is identified by the action descriptor

bool QContactActionDescriptor::isValid() const

Returns false if either the name, service and version of the descriptor are missing from the descriptor, or if the descriptor is not associated with a valid action factory which can create instances of an action. An empty descriptor cannot uniquely identify an action.

QVariant QContactActionDescriptor::metaData(const QString & key, const QList<QContactActionTarget> & targets, const QVariantMap & parameters = QVariantMap()) const

Returns the meta data for the given meta data key key for the the given action targets targets with the given invocation parameters parameters.

QVariant QContactActionDescriptor::metaData(const QString & key, const QVariantMap & parameters = QVariantMap()) const

Returns the meta data for the given meta data key key with the given invocation parameters parameters.

QVariant QContactActionDescriptor::metaData(const QString & key, const QContactActionTarget & target, const QVariantMap & parameters = QVariantMap()) const

Returns the meta data for the given meta data key key for the target, with the given invocation parameters parameters.

QVariant QContactActionDescriptor::metaData(const QString & key, const QContact & contact, const QContactDetail & detail = QContactDetail(), const QVariantMap & parameters = QVariantMap()) const

Returns the meta data for the given meta data key key for a target identified by contact and detail, with the given invocation parameters parameters.

QString QContactActionDescriptor::serviceName() const

Returns the name of the service of the action implementation which is identified by the action descriptor

QSet<QContactActionTarget> QContactActionDescriptor::supportedTargets(const QContact & contact) const

Returns the set of action targets which are supported by this action for the given contact contact

bool QContactActionDescriptor::supportsContact(const QContact & contact) const

Returns true if the action which this descriptor describes supports at least one action target for the given contact

bool QContactActionDescriptor::operator!=(const QContactActionDescriptor & other) const

Returns true if the action name, service name or service-specified implementation version specified by this action descriptor are different to that specified by other

QContactActionDescriptor & QContactActionDescriptor::operator=(const QContactActionDescriptor & other)

Assigns this action descriptor to be equal to other

bool QContactActionDescriptor::operator==(const QContactActionDescriptor & other) const

Returns true if the action identified by this descriptor is the same as the action identified by the other descriptor. Note that two actions with the same action name, service name and implementation version may in fact be different (for example, they may have different metaData), so using this function is the only way for clients to tell whether or not the action descriptors identify different actions.

Member Variable Documentation

const QString QContactActionDescriptor::MetaDataIcon

The meta data key which corresponds to the meta data value which contains the icon which should be displayed for this action.

See also metaData().

const QString QContactActionDescriptor::MetaDataLabel

The meta data key which corresponds to the meta data value which contains the display label for this action.

See also metaData().

const QString QContactActionDescriptor::MetaDataMandatoryParameterKeys

The meta data key which corresponds to the meta data value which contains the list of keys of parameters which the client must provide at invocation for the action to succeed.

An example of a mandatory parameter might be a "recipient" parameter to a "send email" action.

See also metaData().

const QString QContactActionDescriptor::MetaDataOptionalParameterKeys

The meta data key which corresponds to the meta data value which contains the list of keys of parameters which the client may provide at invocation time which may affect the action.

An example of an optional parameter might be an "attachment" parameter to a "send email" action.

See also metaData().

const QString QContactActionDescriptor::MetaDataSecondLabel

The meta data key which corresponds to the meta data value which contains the second or additional display label for this action.

See also metaData().

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