phonebookui/phonebookservices/src/cntserviceassigncontactcardview.cpp
changeset 65 ae724a111993
parent 59 a642906a277a
child 75 4ecbe3571b5a
--- a/phonebookui/phonebookservices/src/cntserviceassigncontactcardview.cpp	Wed Aug 18 09:39:00 2010 +0300
+++ b/phonebookui/phonebookservices/src/cntserviceassigncontactcardview.cpp	Thu Sep 02 20:16:15 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
 }