equal
deleted
inserted
replaced
74 iDeviceList->ConstructL(this, EAknListBoxSelectionList); |
74 iDeviceList->ConstructL(this, EAknListBoxSelectionList); |
75 |
75 |
76 iDeviceList->SetListBoxObserver( this ); |
76 iDeviceList->SetListBoxObserver( this ); |
77 |
77 |
78 // Set the empty text at basis of the list |
78 // Set the empty text at basis of the list |
79 HBufC* devEmptyText = NULL ; |
79 iDeviceList->View()->SetListEmptyTextL( KNullDesC ); |
80 if(iGroup ==EGroupPaired) |
|
81 { |
|
82 devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_PAIRED_DEVICES); |
|
83 } |
|
84 else |
|
85 { |
|
86 devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_BLOCKED_DEVICES); |
|
87 } |
|
88 iDeviceList->View()->SetListEmptyTextL(*devEmptyText ); |
|
89 CleanupStack::PopAndDestroy(devEmptyText); |
|
90 |
80 |
91 // Set up filenames for Btui and Avkon bitmaps |
81 // Set up filenames for Btui and Avkon bitmaps |
92 TFileName bmpFilename; |
82 TFileName bmpFilename; |
93 bmpFilename += KBitmapFileDrive; |
83 bmpFilename += KBitmapFileDrive; |
94 bmpFilename += KDC_APP_BITMAP_DIR; |
84 bmpFilename += KDC_APP_BITMAP_DIR; |
289 if(addition) |
279 if(addition) |
290 iDeviceList->HandleItemAdditionL(); |
280 iDeviceList->HandleItemAdditionL(); |
291 |
281 |
292 if(deviceCount >0 ) |
282 if(deviceCount >0 ) |
293 iDeviceList->SetCurrentItemIndex( Max(selectedItem,0 )) ; |
283 iDeviceList->SetCurrentItemIndex( Max(selectedItem,0 )) ; |
294 |
284 else |
|
285 { |
|
286 HBufC* devEmptyText = NULL; |
|
287 if(iGroup ==EGroupPaired) |
|
288 { |
|
289 devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_PAIRED_DEVICES); |
|
290 } |
|
291 else |
|
292 { |
|
293 devEmptyText=iCoeEnv->AllocReadResourceLC( R_BT_NO_BLOCKED_DEVICES); |
|
294 } |
|
295 iDeviceList->View()->SetListEmptyTextL(*devEmptyText ); |
|
296 CleanupStack::PopAndDestroy(devEmptyText); |
|
297 } |
|
298 |
295 if(addition | removal | previouslySelected!=selectedItem) |
299 if(addition | removal | previouslySelected!=selectedItem) |
296 iDeviceList->DrawDeferred(); |
300 iDeviceList->DrawDeferred(); |
297 TRACE_FUNC_EXIT |
301 TRACE_FUNC_EXIT |
298 } |
302 } |
299 |
303 |