qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
--- a/qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction.cpp	Mon May 03 13:18:40 2010 +0300
@@ -123,19 +123,25 @@
     return retn;
 }
 
-bool QContactSendEmailAction::supportsDetail(const QContactDetail& detail) const
+bool QContactSendEmailAction::isDetailSupported(const QContactDetail &detail, const QContact &) const
 {
     return (detail.definitionName() == QContactEmailAddress::DefinitionName);
 }
 
-void QContactSendEmailAction::invokeAction(const QContact& contact, const QContactDetail& detail)
+QList<QContactDetail> QContactSendEmailAction::supportedDetails(const QContact& contact) const
+{
+    return contact.details(QContactEmailAddress::DefinitionName);
+}
+
+bool QContactSendEmailAction::invokeAction(const QContact& contact, const QContactDetail& detail, const QVariantMap& )
 {
     Q_UNUSED(contact);
     Q_UNUSED(detail);
     QTimer::singleShot(1, this, SLOT(performAction()));
+    return true;
 }
 
-QVariantMap QContactSendEmailAction::result() const
+QVariantMap QContactSendEmailAction::results() const
 {
     return QVariantMap();
 }
@@ -143,5 +149,5 @@
 void QContactSendEmailAction::performAction()
 {
     QMessageBox::information(0, "SendEmail Action", "This example action exists as an example of how the action interface may be implemented; it does not offer the advertised functionality.");
-    emit progress(QContactAction::FinishedState, QVariantMap());
+    emit stateChanged(QContactAction::FinishedState);
 }