phonebookui/phonebookservices/src/cntserviceassigncontactcardview.cpp
changeset 61 d30183af6ca6
parent 53 e6aff7b69165
child 72 6abfb1094884
--- a/phonebookui/phonebookservices/src/cntserviceassigncontactcardview.cpp	Wed Aug 11 09:06:35 2010 +0300
+++ b/phonebookui/phonebookservices/src/cntserviceassigncontactcardview.cpp	Mon Aug 23 16:06:28 2010 +0300
@@ -38,7 +38,7 @@
     mProvider( aServiceProvider )
 {
     CNT_ENTRY
-    connect(this, SIGNAL(backPressed()), this, SLOT(doCloseView()));
+    connect(this, SIGNAL(backPressed(int)), this, SLOT(doCloseView(int)));
     connect(this, SIGNAL(viewActivated(CntAbstractViewManager*, const CntViewParameters)), this, SLOT(doViewActivated(CntAbstractViewManager*,const CntViewParameters)));
     connect(this, SIGNAL(addToContacts()), this, SLOT(addToContacts()));
     CNT_EXIT
@@ -145,10 +145,12 @@
 /*!
 Close the view (quits the service as well)
 */
-void CntServiceAssignContactCardView::doCloseView()
+void CntServiceAssignContactCardView::doCloseView(int value)
 {
     CNT_ENTRY
-    qApp->quit();
+    QVariant variant;
+    variant.setValue(value);
+    mProvider.CompleteServiceAndCloseApp(variant);
     CNT_EXIT
 }