integrating ZXing barcode reader in symbian

279 views Asked by At

I am trying to integrating ZXing barcode in my symbian application but i its working only in the UI class but i want to integrate in listbox view so that when i click list item Zxing has to open. is this possible? anybody have idea on this?

1

There are 1 answers

1
shtolik On

Do you just want to open zxing camera view when clicking listbox item? Then you need to catch listbox event

void CCasesContainer::HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType) {  
    if ((aEventType == MEikListBoxObserver::EEventEnterKeyPressed)  
        || (aEventType == MEikListBoxObserver::EEventItemClicked)) {  
    TInt currentItem(iListBox->CurrentItemIndex());  
    // open the zxing view smth like  
    DeactivateActiveViewL();  
    CAknViewAppUi::ActivateLocalViewL(TUid::Uid(zxingView));  
    }
}

To learn more how views work in symbian start from here or there