equal
deleted
inserted
replaced
55 /*! |
55 /*! |
56 \class QContactAction |
56 \class QContactAction |
57 \brief The QContactAction class provides an interface for performing an |
57 \brief The QContactAction class provides an interface for performing an |
58 action on a QContact or QContactDetail. |
58 action on a QContact or QContactDetail. |
59 \ingroup contacts-main |
59 \ingroup contacts-main |
|
60 \ingroup contacts-actions |
60 |
61 |
61 An action is anything that can be performed on a contact, or a detail of a contact. An example |
62 An action is anything that can be performed on a contact, or a detail of a contact. An example |
62 of an action might be "Send Email" or "Dial" or "Plot Navigation Route". One action may be |
63 of an action might be "Send Email" or "Dial" or "Plot Navigation Route". One action may be |
63 implemented by multiple vendors, and indeed one vendor may provide multiple implementations of |
64 implemented by multiple vendors, and indeed one vendor may provide multiple implementations of |
64 the same action. The name of an action identifies its semantics, while its implementation version |
65 the same action. The name of an action identifies its semantics, while its implementation version |
120 QList<QContactDetail> QContactAction::supportedDetails(const QContact& contact) const |
121 QList<QContactDetail> QContactAction::supportedDetails(const QContact& contact) const |
121 { |
122 { |
122 QList<QContactDetail> ret; |
123 QList<QContactDetail> ret; |
123 QList<QContactDetail> details = contact.details(); |
124 QList<QContactDetail> details = contact.details(); |
124 for (int j=0; j < details.count(); j++) { |
125 for (int j=0; j < details.count(); j++) { |
125 if (supportsDetail(details.at(j))) |
126 if (isDetailSupported(details.at(j), contact)) |
126 ret.append(details.at(j)); |
127 ret.append(details.at(j)); |
127 } |
128 } |
128 return ret; |
129 return ret; |
129 } |
130 } |
130 |
131 |