341 */ |
341 */ |
342 void IRCategoryView::dataChanged() |
342 void IRCategoryView::dataChanged() |
343 { |
343 { |
344 disconnectIsdsClient(); |
344 disconnectIsdsClient(); |
345 iApplication->closeConnectingDialog(); |
345 iApplication->closeConnectingDialog(); |
346 if (iWaitDialog) |
|
347 { |
|
348 iWaitDialog->close(); |
|
349 } |
|
350 |
346 |
351 iListView->reset(); |
347 iListView->reset(); |
352 iListView->setCurrentIndex(iModel->index(iLastSelectItem)); |
348 iListView->setCurrentIndex(iModel->index(iLastSelectItem)); |
353 iListView->scrollTo(iModel->index(iLastSelectItem)); |
349 iListView->scrollTo(iModel->index(iLastSelectItem)); |
354 getViewManager()->activateView(this); |
350 getViewManager()->activateView(this); |
|
351 |
|
352 if (iWaitDialog) |
|
353 { |
|
354 iWaitDialog->close(); |
|
355 } |
355 } |
356 } |
356 |
357 |
357 /* |
358 /* |
358 * Description : slot function for canceling request. |
359 * Description : slot function for canceling request. |
359 * Before data is received, cancel requests through isds client |
360 * Before data is received, cancel requests through isds client |
399 void IRCategoryView::createWaitDialog(const QString &aText) |
400 void IRCategoryView::createWaitDialog(const QString &aText) |
400 { |
401 { |
401 if (!iWaitDialog) |
402 if (!iWaitDialog) |
402 { |
403 { |
403 iWaitDialog = new HbMessageBox(tr(""), HbMessageBox::MessageTypeInformation); |
404 iWaitDialog = new HbMessageBox(tr(""), HbMessageBox::MessageTypeInformation); |
404 //iWaitDialog->setTimeout(HbPopupBase::NoTimeout); |
405 iWaitDialog->setTimeout(HbPopup::NoTimeout); |
405 iWaitDialog->setTimeout(HbPopup::NoTimeout); // JM: changed in w47 Orbit |
|
406 iWaitDialog->setModal(true); |
406 iWaitDialog->setModal(true); |
407 //iWaitDialog->setDismissPolicy(HbPopupBase::NoDismiss); |
407 iWaitDialog->setDismissPolicy(HbPopup::NoDismiss); |
408 iWaitDialog->setDismissPolicy(HbPopup::NoDismiss); // JM: changed in w47 Orbit |
408 QAction *action = iWaitDialog->actions().at(0); |
409 HbAction *cancelAction = new HbAction(hbTrId("txt_common_button_cancel"), iWaitDialog); |
409 action->setText(hbTrId("txt_common_button_cancel")); |
410 iWaitDialog->setPrimaryAction(cancelAction); |
410 connect(action, SIGNAL(triggered()), this, SLOT(cancelRequest())); |
411 connect(cancelAction, SIGNAL(triggered()), this, SLOT(cancelRequest())); |
|
412 } |
411 } |
413 |
412 |
414 iWaitDialog->setText(aText); |
413 iWaitDialog->setText(aText); |
415 iWaitDialog->exec(); |
414 iWaitDialog->open(); |
416 } |
415 } |
417 |
416 |
418 void IRCategoryView::connectToIsdsClient() |
417 void IRCategoryView::connectToIsdsClient() |
419 { |
418 { |
420 connect(iIsdsClient, SIGNAL(categoryItemsChanged(QList<IRQBrowseCategoryItem *> *)), |
419 connect(iIsdsClient, SIGNAL(categoryItemsChanged(QList<IRQBrowseCategoryItem *> *)), |