phonebookui/phonebookservices/src/cntservicecontactcardview.cpp
changeset 27 de1630741fbe
parent 25 76a2435edfd4
child 50 77bc263e1626
child 59 a642906a277a
--- a/phonebookui/phonebookservices/src/cntservicecontactcardview.cpp	Fri Apr 16 14:53:18 2010 +0300
+++ b/phonebookui/phonebookservices/src/cntservicecontactcardview.cpp	Mon May 03 12:24:20 2010 +0300
@@ -16,18 +16,18 @@
 */
 
 #include "cntservicecontactcardview.h"
-
 #include "cntservicehandler.h"
+#include <QCoreApplication>
 
 /*!
 Constructor, initialize member variables.
 \a viewManager is the parent that creates this view. \a parent is a pointer to parent QGraphicsItem (by default this is 0)
 */
-CntServiceContactCardView::CntServiceContactCardView(CntServiceHandler *aServiceHandler, CntViewManager *viewManager, QGraphicsItem *parent) : 
-    CntContactCardView(viewManager, parent),
+CntServiceContactCardView::CntServiceContactCardView(CntServiceHandler *aServiceHandler) : 
+    CntContactCardView(),
     mServiceHandler(aServiceHandler)
 {
-
+    connect(this, SIGNAL(backPressed()), this, SLOT(doShowPreviousView()));
 }
 
 /*!
@@ -39,19 +39,9 @@
 }
 
 /*!
-Launch contact editor
-*/
-void CntServiceContactCardView::editContact()
-{
-    CntViewParameters viewParameters(CntViewParameters::serviceSubEditView);
-    viewParameters.setSelectedContact(*mContact);   
-    viewManager()->changeView(viewParameters);
-}
-
-/*!
 Close the view (quits the service as well)
 */
-void CntServiceContactCardView::aboutToCloseView()
+void CntServiceContactCardView::doShowPreviousView()
 {
     int result = -2;
     connect(mServiceHandler, SIGNAL(returnValueDelivered()), qApp, SLOT(quit()));