idlefw/plugins/mcsplugin/settings/src/mcspluginsettingscontainer.cpp
branchRCL_3
changeset 18 bd874ee5e5e2
parent 9 d0529222e3f0
child 51 15e4dd19031c
equal deleted inserted replaced
9:d0529222e3f0 18:bd874ee5e5e2
   331 // Constructs the settings listbox.
   331 // Constructs the settings listbox.
   332 // ---------------------------------------------------------------------------
   332 // ---------------------------------------------------------------------------
   333 //
   333 //
   334 void CMCSPluginSettingsContainer::ConstructListBoxL(TInt /*aResLbxId*/)
   334 void CMCSPluginSettingsContainer::ConstructListBoxL(TInt /*aResLbxId*/)
   335 {
   335 {
   336     iListBox->ConstructL(this, EAknListBoxSelectionList);
   336 	iListBox->ConstructL(this, EAknListBoxSelectionList);
   337 
       
   338     // Set empty listbox's text.
   337     // Set empty listbox's text.
   339     HBufC* text = iCoeEnv->AllocReadResourceLC(R_AI_MCS_SETTINGS_TXT_ALL_FIXED);
   338 	if (iModel->MdcaCount() == 0)
   340     iListBox->View()->SetListEmptyTextL(*text);
   339 		{
   341     CleanupStack::PopAndDestroy(text);
   340 		HBufC* text = iCoeEnv->AllocReadResourceLC(R_AI_MCS_SETTINGS_TXT_ALL_FIXED);
   342 
   341 		iListBox->View()->SetListEmptyTextL(*text);
       
   342 		CleanupStack::PopAndDestroy(text);
       
   343 		}
       
   344 	else
       
   345 		{
       
   346 		 iListBox->View()->SetListEmptyTextL(KNullDesC);  
       
   347 		}
   343     iListBox->Model()->SetItemTextArray(iModel);
   348     iListBox->Model()->SetItemTextArray(iModel);
   344     iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);
   349     iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);
   345 }
   350 }
   346 
   351 
   347 // ---------------------------------------------------------------------------
   352 // ---------------------------------------------------------------------------