equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #include "cntserviceeditview.h" |
18 #include "cntserviceeditview.h" |
19 #include <cntservicescontact.h> |
19 #include <cntservicescontact.h> |
20 #include <QCoreApplication> |
20 #include <QCoreApplication> |
21 |
21 #include "cntdebug.h" |
22 |
22 |
23 CntServiceEditView::CntServiceEditView( CntAbstractServiceProvider& aServiceProvider ) |
23 CntServiceEditView::CntServiceEditView( CntAbstractServiceProvider& aServiceProvider ) |
24 : CntEditView(), |
24 : CntEditView(), |
25 mProvider( aServiceProvider ) |
25 mProvider( aServiceProvider ) |
26 { |
26 { |
33 { |
33 { |
34 } |
34 } |
35 |
35 |
36 void CntServiceEditView::doContactUpdated(int aSuccess) |
36 void CntServiceEditView::doContactUpdated(int aSuccess) |
37 { |
37 { |
|
38 CNT_ENTRY_ARGS(aSuccess) |
|
39 |
38 int retValue = aSuccess ? KCntServicesReturnValueContactSaved : KCntServicesReturnValueContactNotModified; |
40 int retValue = aSuccess ? KCntServicesReturnValueContactSaved : KCntServicesReturnValueContactNotModified; |
39 QVariant variant; |
41 QVariant variant; |
40 variant.setValue(retValue); |
42 variant.setValue(retValue); |
41 mProvider.CompleteServiceAndCloseApp(variant); |
43 mProvider.CompleteServiceAndCloseApp(variant); |
|
44 |
|
45 CNT_EXIT |
42 } |
46 } |
43 |
47 |
44 void CntServiceEditView::doContactRemoved(bool aSuccess) |
48 void CntServiceEditView::doContactRemoved(bool aSuccess) |
45 { |
49 { |
|
50 CNT_ENTRY_ARGS(aSuccess) |
|
51 |
46 int retValue = aSuccess ? KCntServicesReturnValueContactDeleted : KCntServicesReturnValueContactNotModified; |
52 int retValue = aSuccess ? KCntServicesReturnValueContactDeleted : KCntServicesReturnValueContactNotModified; |
47 QVariant variant; |
53 QVariant variant; |
48 variant.setValue(retValue); |
54 variant.setValue(retValue); |
49 mProvider.CompleteServiceAndCloseApp(variant); |
55 mProvider.CompleteServiceAndCloseApp(variant); |
|
56 |
|
57 CNT_EXIT |
50 } |
58 } |
51 |
59 |
52 void CntServiceEditView::doChangesDiscarded() |
60 void CntServiceEditView::doChangesDiscarded() |
53 { |
61 { |
|
62 CNT_ENTRY |
|
63 |
54 QVariant variant; |
64 QVariant variant; |
55 variant.setValue(KCntServicesReturnValueContactNotModified); |
65 variant.setValue(KCntServicesReturnValueContactNotModified); |
56 mProvider.CompleteServiceAndCloseApp(variant); |
66 mProvider.CompleteServiceAndCloseApp(variant); |
|
67 |
|
68 CNT_EXIT |
57 } |
69 } |
58 |
70 |
59 // EOF |
71 // EOF |