phonebookui/phonebookservices/src/cntservicecontactcardview.cpp
changeset 61 d30183af6ca6
parent 54 47627ab5d7a4
equal deleted inserted replaced
56:d508aa856878 61:d30183af6ca6
    27 CntServiceContactCardView::CntServiceContactCardView( CntAbstractServiceProvider& aServiceProvider ) : 
    27 CntServiceContactCardView::CntServiceContactCardView( CntAbstractServiceProvider& aServiceProvider ) : 
    28     CntContactCardView(),
    28     CntContactCardView(),
    29     mProvider( aServiceProvider )
    29     mProvider( aServiceProvider )
    30 {
    30 {
    31     CNT_ENTRY
    31     CNT_ENTRY
    32     connect(this, SIGNAL(backPressed()), this, SLOT(closeContactCard()));
    32     connect(this, SIGNAL(backPressed(int)), this, SLOT(closeContactCard(int)));
    33     CNT_EXIT
    33     CNT_EXIT
    34 }
    34 }
    35 
    35 
    36 /*!
    36 /*!
    37 Destructor
    37 Destructor
    43 }
    43 }
    44 
    44 
    45 /*!
    45 /*!
    46 Close the view (quits the service as well)
    46 Close the view (quits the service as well)
    47 */
    47 */
    48 void CntServiceContactCardView::closeContactCard()
    48 void CntServiceContactCardView::closeContactCard(int value)
    49 {
    49 {
    50     CNT_ENTRY
    50     CNT_ENTRY
       
    51     CNT_LOG_ARGS(value);
    51     QVariant variant;
    52     QVariant variant;
    52     variant.setValue(KCntServicesTerminated);
    53     variant.setValue(value);
    53     mProvider.CompleteServiceAndCloseApp(variant);
    54     mProvider.CompleteServiceAndCloseApp(variant);
    54     CNT_EXIT
    55     CNT_EXIT
    55 }
    56 }
    56 
    57 
    57 // end of file
    58 // end of file