equal
deleted
inserted
replaced
90 { |
90 { |
91 TRACE( T_LIT("CVIMPSTEngineCVListener::RunL() start")); |
91 TRACE( T_LIT("CVIMPSTEngineCVListener::RunL() start")); |
92 // resubscribe before processing new value to prevent missing updates |
92 // resubscribe before processing new value to prevent missing updates |
93 //TBuf <KMaxSerIdXspIdLen> serId_usrId; |
93 //TBuf <KMaxSerIdXspIdLen> serId_usrId; |
94 HBufC16* serId_usrId = HBufC16::NewLC(KMaxSerIdXspIdLen); |
94 HBufC16* serId_usrId = HBufC16::NewLC(KMaxSerIdXspIdLen); |
95 TPtr serId_usrIdPtr(serId_usrId->Des()); |
95 if ( serId_usrId ) |
96 |
96 { |
97 iProperty.Get(KConvViewUID,KXspIdServiceIDKey,serId_usrIdPtr); |
97 TPtr serId_usrIdPtr(serId_usrId->Des()); |
|
98 iProperty.Get(KConvViewUID,KXspIdServiceIDKey,serId_usrIdPtr); |
|
99 } |
98 // parse the service id and userid form the buf and get the |
100 // parse the service id and userid form the buf and get the |
99 // contactlink and first name and publish it. |
101 // contactlink and first name and publish it. |
100 TInt posOfDelimiter = serId_usrId->Find(KDelimiter); |
102 TInt posOfDelimiter = serId_usrId->Find(KDelimiter); |
101 if(KErrNotFound != posOfDelimiter ) |
103 if(KErrNotFound != posOfDelimiter ) |
102 { |
104 { |
168 iProperty.Set(KConvViewUID,KContactLinkDisplayNameKey,KNullDesC()); |
170 iProperty.Set(KConvViewUID,KContactLinkDisplayNameKey,KNullDesC()); |
169 } |
171 } |
170 } |
172 } |
171 CleanupStack::PopAndDestroy( &supportedServices ); |
173 CleanupStack::PopAndDestroy( &supportedServices ); |
172 } |
174 } |
173 CleanupStack::PopAndDestroy( serId_usrId ); |
175 |
|
176 if(serId_usrId) |
|
177 { |
|
178 CleanupStack::PopAndDestroy( serId_usrId ); |
|
179 } |
174 iProperty.Subscribe( iStatus ); |
180 iProperty.Subscribe( iStatus ); |
175 SetActive(); |
181 SetActive(); |
176 TRACE( T_LIT("CVIMPSTEngineCVListener::RunL() end")); |
182 TRACE( T_LIT("CVIMPSTEngineCVListener::RunL() end")); |
177 } |
183 } |
178 |
184 |