equal
deleted
inserted
replaced
36 CntServiceAssignContactCardView::CntServiceAssignContactCardView( CntAbstractServiceProvider& aServiceProvider ) : |
36 CntServiceAssignContactCardView::CntServiceAssignContactCardView( CntAbstractServiceProvider& aServiceProvider ) : |
37 CntContactCardView(true), |
37 CntContactCardView(true), |
38 mProvider( aServiceProvider ) |
38 mProvider( aServiceProvider ) |
39 { |
39 { |
40 CNT_ENTRY |
40 CNT_ENTRY |
41 connect(this, SIGNAL(backPressed()), this, SLOT(doCloseView())); |
41 connect(this, SIGNAL(backPressed(int)), this, SLOT(doCloseView(int))); |
42 connect(this, SIGNAL(viewActivated(CntAbstractViewManager*, const CntViewParameters)), this, SLOT(doViewActivated(CntAbstractViewManager*,const CntViewParameters))); |
42 connect(this, SIGNAL(viewActivated(CntAbstractViewManager*, const CntViewParameters)), this, SLOT(doViewActivated(CntAbstractViewManager*,const CntViewParameters))); |
43 connect(this, SIGNAL(addToContacts()), this, SLOT(addToContacts())); |
43 connect(this, SIGNAL(addToContacts()), this, SLOT(addToContacts())); |
44 CNT_EXIT |
44 CNT_EXIT |
45 } |
45 } |
46 |
46 |
143 } |
143 } |
144 |
144 |
145 /*! |
145 /*! |
146 Close the view (quits the service as well) |
146 Close the view (quits the service as well) |
147 */ |
147 */ |
148 void CntServiceAssignContactCardView::doCloseView() |
148 void CntServiceAssignContactCardView::doCloseView(int value) |
149 { |
149 { |
150 CNT_ENTRY |
150 CNT_ENTRY |
151 qApp->quit(); |
151 QVariant variant; |
|
152 variant.setValue(value); |
|
153 mProvider.CompleteServiceAndCloseApp(variant); |
152 CNT_EXIT |
154 CNT_EXIT |
153 } |
155 } |
154 |
156 |
155 // end of file |
157 // end of file |