equal
deleted
inserted
replaced
41 { |
41 { |
42 RProcess loadedProcess; |
42 RProcess loadedProcess; |
43 if( loadedProcess.SecureId() != KSmlContactSuiteAppUID ) |
43 if( loadedProcess.SecureId() != KSmlContactSuiteAppUID ) |
44 { |
44 { |
45 return ; |
45 return ; |
46 } |
46 } |
47 |
|
48 if ( iContactSuiteCallBack == NULL ) |
47 if ( iContactSuiteCallBack == NULL ) |
49 { |
48 { |
50 // callback not yet created, create |
49 // callback not yet created, create |
51 iContactSuiteCallBack = new (ELeave) CSmlContactSuiteActiveCallback( *this ); |
50 iContactSuiteCallBack = new (ELeave) CSmlContactSuiteActiveCallback( *this ); |
52 } |
51 } |
53 |
52 |
54 Send( ECmdContactSuiteRegisterObserversWithProfileId, TIpcArgs (aProfileId) ); |
53 Send( ECmdContactSuiteRegisterObserversWithProfileId, TIpcArgs (aProfileId) ); |
55 iContactSuiteCallBack->SetProgressObserverL( aProgressObserver ); |
54 TRAPD( err, iContactSuiteCallBack->SetProgressObserverL( aProgressObserver )); |
|
55 delete iContactSuiteCallBack; |
|
56 iContactSuiteCallBack = NULL; |
|
57 if(err != KErrNone) |
|
58 { |
|
59 User::Leave( err ); |
|
60 } |
56 }; |
61 }; |