void CListingContainer::markItemInList()
{

TBuf<300> temp;

TInt itemNumber = iList->CurrentItemIndex();
temp.Copy((*iListItems)[itemNumber]);
if(temp.Left(1)!=_L("2")) /////// if format is 2\tlabel\t\t type
{ ///// icon index 2 means it contains checked icon
TBuf<1> icon;
icon.Copy(_L("1"));
temp.Replace(0,1,icon);
iListItems->Delete(itemNumber);
iListItems->InsertL(itemNumber,temp);
}
else /////// if format is 1\tlabel\t\t type
{ ///// icon index 1 means it contains blank icon
TBuf<1> icon;
icon.Copy(_L("2"));
temp.Replace(0,1,icon);
iListItems->Delete(itemNumber);
iListItems->InsertL(itemNumber,temp);
}

DrawNow();
}

TKeyResponse CListingContainer:: OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
{
if(aType != EEventKey)
{
return EKeyWasNotConsumed;
}

switch(aKeyEvent.iCode)
{
case EKeyUpArrow:
case EKeyDownArrow:
{
iList->OfferKeyEventL(aKeyEvent,aType);
break;
}

case EKeyOK:
{

markItemInList();

return EKeyWasConsumed;
}
}
return EKeyWasConsumed;
}