245 } |
245 } |
246 |
246 |
247 // --------------------------------------------------------------------------- |
247 // --------------------------------------------------------------------------- |
248 // --------------------------------------------------------------------------- |
248 // --------------------------------------------------------------------------- |
249 // |
249 // |
250 EXPORT_C CPluginInfo& CPluginInfo::SetDescriptionL( const TDesC& aDescription ) |
250 EXPORT_C CPluginInfo& CPluginInfo::SetDescriptionL( const TDesC8& aDescription ) |
251 { |
251 { |
252 delete iDescription; |
252 delete iDescription; |
253 iDescription = NULL; |
253 iDescription = NULL; |
254 |
254 |
255 iDescription = aDescription.AllocL(); |
255 iDescription = aDescription.AllocL(); |
256 return *this; |
256 return *this; |
257 } |
257 } |
258 |
258 |
259 // --------------------------------------------------------------------------- |
259 // --------------------------------------------------------------------------- |
260 // --------------------------------------------------------------------------- |
260 // --------------------------------------------------------------------------- |
261 // |
261 // |
262 EXPORT_C CPluginInfo& CPluginInfo::SetDescriptionL( const TDesC8& aDescription ) |
262 EXPORT_C const TDesC8& CPluginInfo::Description() const |
263 { |
263 { |
264 delete iDescription; |
264 return iDescription ? *iDescription : KNullDesC8(); |
265 iDescription = NULL; |
|
266 |
|
267 iDescription = HBufC::NewL( aDescription.Length() ); |
|
268 iDescription->Des().Copy( aDescription ); |
|
269 return *this; |
|
270 } |
|
271 |
|
272 // --------------------------------------------------------------------------- |
|
273 // --------------------------------------------------------------------------- |
|
274 // |
|
275 EXPORT_C const TDesC& CPluginInfo::Description() const |
|
276 { |
|
277 return iDescription ? *iDescription : KNullDesC(); |
|
278 } |
265 } |
279 |
266 |
280 // --------------------------------------------------------------------------- |
267 // --------------------------------------------------------------------------- |
281 // --------------------------------------------------------------------------- |
268 // --------------------------------------------------------------------------- |
282 // |
269 // |