/////// Header files
#include <badesca.h>//for add item into list box
#include <e32base.h>
#include <gulicon.h>
#include <AknIconArray.h>

void CListingContainer::SelectedItemList()
{
TInt num1 = 0;
TInt totalItems = iListItems->MdcaCount();
for(TInt i = 0;i< totalItems;i++)
{
TBuf<40> temp;
temp.Copy((*iListItems)[i]);
if(temp.Left(1) == _L("1")) //
{
TInt l = temp.Length();
temp = temp.Mid(2,l-4);
/// iSelectedItemsDir[10] is array of descriptors

iSelectedItemsDir[num1].downloadDirName = temp; //storing name of list checked item in array
num1++;

}
}
totalCheckedItem = num1;
}

/////////// header file

public:
TInt totalCheckedItem ;
CAknSingleGraphicStyleListBox* iList;
CDesCArray* iListItems;
TBuf<50> iSelectedItemsDir[10];