263 const int aDuration) |
266 const int aDuration) |
264 { |
267 { |
265 TFLOGSTRING("SATAPP: SatAppUiProvider::showDisplayTextPopup call") |
268 TFLOGSTRING("SATAPP: SatAppUiProvider::showDisplayTextPopup call") |
266 resetUserResponse(); |
269 resetUserResponse(); |
267 stopShowWaitNote(); |
270 stopShowWaitNote(); |
268 // Create a note |
271 |
|
272 if (mDisplayPopup){ |
|
273 delete mDisplayPopup; |
|
274 mDisplayPopup = NULL; |
|
275 } |
269 mDisplayPopup = new HbMessageBox(HbMessageBox::MessageTypeInformation); |
276 mDisplayPopup = new HbMessageBox(HbMessageBox::MessageTypeInformation); |
270 |
|
271 if (mDisplayPopup) { |
277 if (mDisplayPopup) { |
272 TFLOGSTRING( |
278 TFLOGSTRING( |
273 "SATAPP: SatAppUiProvider::showDisplayTextPopup note created") |
279 "SATAPP: SatAppUiProvider::showDisplayTextPopup note created") |
274 |
280 |
275 // Set the label as heading widget |
281 // Set the label as heading widget |
276 HbLabel *heading = new HbLabel(aHeading, mDisplayPopup); |
282 HbLabel *lHeading = new HbLabel(aHeading, mDisplayPopup); |
277 mDisplayPopup->setHeadingWidget(heading); |
283 mDisplayPopup->setHeadingWidget(lHeading); |
278 mDisplayPopup->setText(aContent); |
284 mDisplayPopup->setText(aContent); |
|
285 mDisplayPopup->setIconVisible(false); |
279 composeDialog(mDisplayPopup, aDuration, ESatDialogDisplayText); |
286 composeDialog(mDisplayPopup, aDuration, ESatDialogDisplayText); |
280 |
|
281 TFLOGSTRING( |
287 TFLOGSTRING( |
282 "SATAPP: SatAppUiProvider::showDisplayTextPopup duration before open") |
288 "SATAPP: SatAppUiProvider::showDisplayTextPopup duration before open") |
283 DialogWaiter waiter; |
289 DialogWaiter waiter; |
284 mDisplayPopup->open(&waiter, SLOT(done(HbAction *))); |
290 mDisplayPopup->open(&waiter, SLOT(done(HbAction *))); |
285 waiter.wait(); |
291 waiter.wait(); |
286 TFLOGSTRING( |
292 TFLOGSTRING( |
287 "SATAPP: SatAppUiProvider::showDisplayTextPopup duration end open") |
293 "SATAPP: SatAppUiProvider::showDisplayTextPopup duration end open") |
288 |
294 |
|
295 #ifndef _DEBUG |
289 delete mDisplayPopup; |
296 delete mDisplayPopup; |
290 mDisplayPopup = 0; |
297 mDisplayPopup = 0; |
|
298 #endif |
291 } |
299 } |
292 TFLOGSTRING("SATAPP: SatAppUiProvider::showDisplayTextPopup exit") |
300 TFLOGSTRING("SATAPP: SatAppUiProvider::showDisplayTextPopup exit") |
293 return mUserRsp; |
301 return mUserRsp; |
294 } |
302 } |
295 |
303 |
427 TFLOGSTRING3("SATAPP: SatAppUiProvider::showGetInputQuery \ |
451 TFLOGSTRING3("SATAPP: SatAppUiProvider::showGetInputQuery \ |
428 min %d max %d length", minLength, maxLength) |
452 min %d max %d length", minLength, maxLength) |
429 resetUserResponse(); |
453 resetUserResponse(); |
430 stopShowWaitNote(); |
454 stopShowWaitNote(); |
431 mMinLength = minLength; |
455 mMinLength = minLength; |
432 // Create a query |
456 |
|
457 if (mGetInputQuery){ |
|
458 delete mGetInputQuery; |
|
459 mGetInputQuery = NULL; |
|
460 } |
433 mGetInputQuery = new HbInputDialog(); |
461 mGetInputQuery = new HbInputDialog(); |
434 // Set PromptText |
|
435 mGetInputQuery->setPromptText(heading); |
462 mGetInputQuery->setPromptText(heading); |
436 // Set ContentText |
|
437 QVariant vContent(content); |
463 QVariant vContent(content); |
438 mGetInputQuery->setValue(vContent); |
464 mGetInputQuery->setValue(vContent); |
439 HbEditorInterface inputMode(mGetInputQuery->lineEdit()); |
465 HbEditorInterface inputMode(mGetInputQuery->lineEdit()); |
|
466 mGetInputQuery->lineEdit()->setFocus(); |
440 if (ESatDigitOnly == characterSet) { |
467 if (ESatDigitOnly == characterSet) { |
441 // digit mode, digits only (0 9, *, #, and +) |
468 // digit mode, digits only (0 9, *, #, and +) |
442 inputMode.setFilter(HbPhoneNumberFilter::instance()); |
469 inputMode.setFilter(HbPhoneNumberFilter::instance()); |
443 } else { |
470 } else { |
444 // char mode |
471 // char mode |
448 this, SLOT(updateQueryAction(QString))); |
475 this, SLOT(updateQueryAction(QString))); |
449 mGetInputQuery->lineEdit()->setMaxLength(maxLength); |
476 mGetInputQuery->lineEdit()->setMaxLength(maxLength); |
450 |
477 |
451 composeDialog(mGetInputQuery, KDefaultSelectionTimeoutMseconds, ESatDialogGetInput); |
478 composeDialog(mGetInputQuery, KDefaultSelectionTimeoutMseconds, ESatDialogGetInput); |
452 // Sets the "OK"-action/button |
479 // Sets the "OK"-action/button |
453 if (0 == minLength || content.length() >= minLength) { |
480 if ((0 == minLength || content.length() >= minLength) && |
454 HbAction* okAction = new HbAction(hbTrId("txt_sat_general_ok"), |
481 mGetInputQuery->actions().at(0)) { |
455 mGetInputQuery); |
482 mGetInputQuery->actions().at(0)->setEnabled(true); |
456 bool ret = connect(okAction, SIGNAL(triggered()), |
483 } |
457 this, SLOT(userPrimaryResponse())); |
|
458 TFLOGSTRING2("SATAPP: SatAppUiProvider::showGetInputQuery \ |
|
459 connect okAction: %d", ret) |
|
460 mGetInputQuery->setPrimaryAction(okAction); |
|
461 } else { |
|
462 // Set default primary action is 0 |
|
463 mGetInputQuery->setPrimaryAction(0); |
|
464 } |
|
465 |
484 |
466 if (aHideInput) { |
485 if (aHideInput) { |
467 mGetInputQuery->lineEdit()->setEchoMode(HbLineEdit::Password); |
486 mGetInputQuery->lineEdit()->setEchoMode(HbLineEdit::Password); |
468 TFLOGSTRING("SATAPP: SatAppUiProvider::showGetInputQuery hide") |
487 TFLOGSTRING("SATAPP: SatAppUiProvider::showGetInputQuery hide") |
469 } |
488 } |
490 // |
511 // |
491 void SatAppUiProvider::updateQueryAction(QString text) |
512 void SatAppUiProvider::updateQueryAction(QString text) |
492 { |
513 { |
493 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction call") |
514 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction call") |
494 // Get Input |
515 // Get Input |
495 if (mGetInputQuery) { |
516 if (mGetInputQuery && mGetInputQuery->actions().at(0)) { |
496 if (text.length() >= mMinLength) { |
517 if (text.length() >= mMinLength ) { |
497 if (!mGetInputQuery->primaryAction()) { |
518 mGetInputQuery->actions().at(0)->setEnabled(true); |
498 HbAction *okAction = new HbAction(hbTrId("txt_sat_general_ok"), |
|
499 mGetInputQuery); |
|
500 bool ret = connect( |
|
501 okAction, SIGNAL(triggered()), |
|
502 this, SLOT(userPrimaryResponse())); |
|
503 TFLOGSTRING2("SATAPP: SatAppUiProvider::updateQueryAction \ |
|
504 get input connect okAction: %d", ret) |
|
505 mGetInputQuery->setPrimaryAction(okAction); |
|
506 } |
|
507 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction \ |
|
508 get input OK") |
|
509 } else { |
519 } else { |
510 if (mGetInputQuery->primaryAction()) { |
520 mGetInputQuery->actions().at(0)->setEnabled(false); |
511 mGetInputQuery->removeAction(mGetInputQuery->primaryAction()); |
|
512 } |
|
513 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction \ |
|
514 get input no OK Action") |
|
515 } |
521 } |
516 } |
522 } |
|
523 |
517 // Get InKey |
524 // Get InKey |
518 if (mGetInkeyQuery) { |
525 if (mGetInkeyQuery && mGetInkeyQuery->actions().at(0)) { |
519 if (!mGetInkeyQuery->primaryAction() && (text.length() == 1)) { |
526 if (1 == text.length()) { |
520 HbAction *okAction = new HbAction(hbTrId("txt_sat_general_ok"), |
527 mGetInkeyQuery->actions().at(0)->setEnabled(true); |
521 mGetInkeyQuery); |
528 } else { |
522 bool ret = connect(okAction, SIGNAL(triggered()), |
529 mGetInkeyQuery->actions().at(0)->setEnabled(false); |
523 this, SLOT(userPrimaryResponse())); |
|
524 TFLOGSTRING2("SATAPP: SatAppUiProvider::updateQueryAction \ |
|
525 get inkey connect okAction: %d", ret) |
|
526 mGetInkeyQuery->setPrimaryAction(okAction); |
|
527 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction \ |
|
528 get inkey OK") |
|
529 } else { |
|
530 if (mGetInkeyQuery->primaryAction()) { |
|
531 mGetInkeyQuery->removeAction(mGetInkeyQuery->primaryAction()); |
|
532 } |
|
533 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction \ |
|
534 get inkey not OK Action") |
|
535 } |
530 } |
536 } |
531 } |
537 |
532 |
538 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction exit") |
533 TFLOGSTRING("SATAPP: SatAppUiProvider::updateQueryAction exit") |
539 } |
534 } |
546 const QString &aText, |
541 const QString &aText, |
547 bool &aActionAccepted) |
542 bool &aActionAccepted) |
548 { |
543 { |
549 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSendQuery call") |
544 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSendQuery call") |
550 resetUserResponse(); |
545 resetUserResponse(); |
551 mConfirmSendQuery = new HbMessageBox(); |
546 |
|
547 if (mConfirmSendQuery){ |
|
548 delete mConfirmSendQuery; |
|
549 mConfirmSendQuery = NULL; |
|
550 } |
|
551 |
|
552 mConfirmSendQuery = new HbMessageBox(HbMessageBox::MessageTypeQuestion); |
552 if(mConfirmSendQuery) { |
553 if(mConfirmSendQuery) { |
553 mConfirmSendQuery->setText(aText); |
554 mConfirmSendQuery->setText(aText); |
554 composeDialog(mConfirmSendQuery, 0, ESatDialogConfirmSend); |
555 composeDialog(mConfirmSendQuery, 0, ESatDialogConfirmSend); |
555 |
556 |
556 TFLOGSTRING("SATAPP: SatAppUiProvider::confirmSend before open") |
557 TFLOGSTRING("SATAPP: SatAppUiProvider::confirmSend before open") |
557 DialogWaiter waiter; |
558 DialogWaiter waiter; |
558 mConfirmSendQuery->open(&waiter, SLOT(done(HbAction *))); |
559 mConfirmSendQuery->open(&waiter, SLOT(done(HbAction *))); |
559 waiter.wait(); |
560 waiter.wait(); |
560 TFLOGSTRING("SATAPP: SatAppUiProvider::confirmSend after open") |
561 TFLOGSTRING("SATAPP: SatAppUiProvider::confirmSend after open") |
561 |
562 |
|
563 #ifndef _DEBUG |
562 delete mConfirmSendQuery; |
564 delete mConfirmSendQuery; |
563 mConfirmSendQuery = 0; |
565 mConfirmSendQuery = 0; |
|
566 #endif |
564 } |
567 } |
565 aActionAccepted = (EUserPrimaryResponse == mUserRsp) ? true : false; |
568 aActionAccepted = (EUserPrimaryResponse == mUserRsp) ? true : false; |
566 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSendQuery exit") |
569 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSendQuery exit") |
567 } |
570 } |
568 |
571 |
671 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSetUpCallQUery length 0") |
676 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSetUpCallQUery length 0") |
672 } else { |
677 } else { |
673 alphaId.append(aText); |
678 alphaId.append(aText); |
674 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSetUpCallQUery exit") |
679 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSetUpCallQUery exit") |
675 } |
680 } |
676 |
681 |
677 mSetUpCallQuery = new HbMessageBox(HbMessageBox::MessageTypeInformation); |
682 if (mSetUpCallQuery){ |
|
683 delete mSetUpCallQuery; |
|
684 mSetUpCallQuery = NULL; |
|
685 } |
|
686 |
|
687 mSetUpCallQuery = new HbMessageBox(HbMessageBox::MessageTypeQuestion); |
678 if(mSetUpCallQuery) { |
688 if(mSetUpCallQuery) { |
679 mSetUpCallQuery->setText(alphaId); |
689 mSetUpCallQuery->setText(alphaId); |
|
690 |
680 composeDialog(mSetUpCallQuery, 0, ESatDialogSetUpCall); |
691 composeDialog(mSetUpCallQuery, 0, ESatDialogSetUpCall); |
681 |
692 |
682 TFLOGSTRING("SATAPP: SatAppSetUpCall::showSetUpCallConfirm before open") |
693 TFLOGSTRING("SATAPP: SatAppSetUpCall::showSetUpCallConfirm before open") |
683 DialogWaiter waiter; |
694 DialogWaiter waiter; |
684 mSetUpCallQuery->open(&waiter, SLOT(done(HbAction *))); |
695 mSetUpCallQuery->open(&waiter, SLOT(done(HbAction *))); |
685 waiter.wait(); |
696 waiter.wait(); |
686 TFLOGSTRING("SATAPP: SatAppSetUpCall::showSetUpCallConfirm after open") |
697 TFLOGSTRING("SATAPP: SatAppSetUpCall::showSetUpCallConfirm after open") |
687 |
698 |
|
699 #ifndef _DEBUG |
688 delete mSetUpCallQuery; |
700 delete mSetUpCallQuery; |
689 mSetUpCallQuery = 0; |
701 mSetUpCallQuery = 0; |
|
702 #endif |
690 } |
703 } |
691 aActionAccepted = (EUserPrimaryResponse == mUserRsp) ? true : false; |
704 aActionAccepted = (EUserPrimaryResponse == mUserRsp) ? true : false; |
692 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSetUpCallQUery exit") |
705 TFLOGSTRING("SATAPP: SatAppUiProvider::showConfirmSetUpCallQUery exit") |
693 } |
706 } |
694 |
707 |
788 mMinLength = 0; |
801 mMinLength = 0; |
789 TFLOGSTRING("SATAPP: SatAppUiProvider::resetUserResponse exit") |
802 TFLOGSTRING("SATAPP: SatAppUiProvider::resetUserResponse exit") |
790 } |
803 } |
791 |
804 |
792 // ---------------------------------------------------------------------------- |
805 // ---------------------------------------------------------------------------- |
793 // composeDialog |
806 // composeDialog: make sure dlg has 2 buttons |
794 // ---------------------------------------------------------------------------- |
807 // ---------------------------------------------------------------------------- |
795 // |
808 // |
796 void SatAppUiProvider::composeDialog( |
809 void SatAppUiProvider::composeDialog( |
797 HbDialog *dlg, |
810 HbDialog *dlg, |
798 int aDuration, |
811 int aDuration, |
799 TSatAppDialogActionType type, |
812 TSatAppDialogActionType type, |
800 bool aModal, |
813 bool aModal/* = true*/, |
801 HbDialog::DismissPolicy aDismissPolicy) |
814 HbDialog::DismissPolicy aDismissPolicy/* = HbDialog::NoDismiss*/) |
802 { |
815 { |
803 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog call") |
816 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog call") |
804 |
817 |
805 dlg->setModal(aModal); |
818 dlg->setModal(aModal); |
806 dlg->setDismissPolicy(aDismissPolicy); |
819 dlg->setDismissPolicy(aDismissPolicy); |
807 if (aDuration){ |
820 if (aDuration){ |
808 dlg->setTimeout(aDuration); |
821 dlg->setTimeout(aDuration); |
809 } else { |
822 } else { |
810 dlg->setTimeout(HbDialog::NoTimeout); |
823 dlg->setTimeout(HbDialog::NoTimeout); |
811 } |
824 } |
812 |
825 |
813 HbAction *primaryAction = 0; |
826 dlg->clearActions(); |
814 HbAction *secondaryAction = 0; |
827 HbAction *primaryAction = new HbAction(dlg); |
815 |
828 dlg->addAction(primaryAction); |
|
829 bool ret = connect(primaryAction, SIGNAL(triggered()), |
|
830 this, SLOT(userPrimaryResponse())); |
|
831 TFLOGSTRING2("SATAPP: SatAppUiProvider::composeDialog \ |
|
832 primaryAction=%d", ret) |
|
833 |
|
834 HbAction *secondaryAction = new HbAction(dlg); |
|
835 dlg->addAction(secondaryAction); |
|
836 ret = connect(secondaryAction, SIGNAL(triggered()), |
|
837 this, SLOT(userSecondaryResponse())); |
|
838 TFLOGSTRING2("SATAPP: SatAppUiProvider::composeDialog \ |
|
839 secondaryAction=%d", ret) |
|
840 |
816 if (ESatDialogDisplayText == type){ |
841 if (ESatDialogDisplayText == type){ |
817 primaryAction = new HbAction(hbTrId("txt_sat_general_ok"), dlg); |
842 primaryAction->setText(hbTrId("txt_sat_general_ok")); |
818 secondaryAction = new HbAction(hbTrId("txt_sat_general_back"), dlg); |
843 secondaryAction->setText(hbTrId("txt_sat_general_back")); |
819 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
844 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
820 ESatDialogDisplayText") |
845 ESatDialogDisplayText") |
821 } else if (ESatDialogGetInput == type){ |
846 } else if (ESatDialogGetInput == type){ |
822 secondaryAction = new HbAction(hbTrId("txt_sat_general_cancel"), dlg); |
847 primaryAction->setText(hbTrId("txt_sat_general_ok")); |
|
848 primaryAction->setEnabled(false); |
|
849 secondaryAction->setText(hbTrId("txt_sat_general_cancel")); |
823 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
850 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
824 ESatDialogGetInput") |
851 ESatDialogGetInput") |
825 } else if (ESatDialogGetInkey == type){ |
852 } else if (ESatDialogGetInkey == type){ |
826 secondaryAction = new HbAction(hbTrId("txt_sat_general_cancel"), dlg); |
853 primaryAction->setText(hbTrId("txt_sat_general_ok")); |
|
854 primaryAction->setEnabled(false); |
|
855 secondaryAction->setText(hbTrId("txt_sat_general_cancel")); |
827 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
856 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
828 ESatDialogGetInkey") |
857 ESatDialogGetInkey") |
829 } else if (ESatDialogGetYesNo == type){ |
858 } else if (ESatDialogGetYesNo == type){ |
830 primaryAction = new HbAction(hbTrId("txt_sat_general_yes"), dlg); |
859 primaryAction->setText(hbTrId("txt_sat_general_yes")); |
831 secondaryAction = new HbAction(hbTrId("txt_sat_general_no"), dlg); |
860 secondaryAction->setText(hbTrId("txt_sat_general_no")); |
832 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
861 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
833 ESatDialogGetYesNo") |
862 ESatDialogGetYesNo") |
834 } else if (ESatDialogGetDigitalRsp == type){ |
863 } else if (ESatDialogGetDigitalRsp == type){ |
835 secondaryAction = new HbAction(hbTrId("txt_sat_general_cancel"), dlg); |
864 dlg->removeAction(primaryAction); |
|
865 secondaryAction->setText(hbTrId("txt_sat_general_cancel")); |
836 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
866 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
837 ESatDialogGetDigitalRsp") |
867 ESatDialogGetDigitalRsp") |
838 } else if (ESatDialogSetUpCall == type){ |
868 } else if (ESatDialogSetUpCall == type){ |
839 primaryAction = new HbAction(hbTrId("txt_sat_general_call"), dlg); |
869 primaryAction->setText(hbTrId("txt_sat_general_call")); |
840 secondaryAction = new HbAction(hbTrId("txt_sat_general_cancel"), dlg); |
870 secondaryAction->setText(hbTrId("txt_sat_general_cancel")); |
841 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
871 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
842 ESatDialogSetUpCall") |
872 ESatDialogSetUpCall") |
843 } else if (ESatDialogConfirmSend == type){ |
873 } else if (ESatDialogConfirmSend == type){ |
844 primaryAction = new HbAction(hbTrId("txt_sat_general_send"), dlg); |
874 primaryAction->setText(hbTrId("txt_sat_general_send")); |
845 secondaryAction = new HbAction(hbTrId("txt_sat_general_cancel"), dlg); |
875 secondaryAction->setText(hbTrId("txt_sat_general_cancel")); |
846 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
876 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
847 ESatDialogConfirmSend") |
877 ESatDialogConfirmSend") |
848 }else if (ESatDialogConfirmBip == type){ |
878 } else if (ESatDialogConfirmBip == type){ |
849 primaryAction = new HbAction(hbTrId("txt_sat_general_ok"), dlg); |
879 primaryAction->setText(hbTrId("txt_sat_general_ok")); |
850 secondaryAction = new HbAction(hbTrId("txt_sat_general_cancel"), dlg); |
880 secondaryAction->setText(hbTrId("txt_sat_general_cancel")); |
851 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
881 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog \ |
852 ESatDialogConfirmBip") |
882 ESatDialogConfirmBip") |
853 } |
883 } |
854 |
884 |
855 if (primaryAction) { |
|
856 bool ret = connect( |
|
857 primaryAction, SIGNAL(triggered()), |
|
858 this, SLOT(userPrimaryResponse())); |
|
859 TFLOGSTRING2("SATAPP: SatAppUiProvider::composeDialog \ |
|
860 primaryAction=%d", ret) |
|
861 } |
|
862 dlg->setPrimaryAction(primaryAction); |
|
863 |
|
864 if (secondaryAction) { |
|
865 bool ret = connect( |
|
866 secondaryAction, SIGNAL(triggered()), |
|
867 this, SLOT(userSecondaryResponse())); |
|
868 TFLOGSTRING2("SATAPP: SatAppUiProvider::composeDialog \ |
|
869 secondaryAction=%d", ret) |
|
870 } |
|
871 dlg->setSecondaryAction(secondaryAction); |
|
872 |
|
873 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog exit") |
885 TFLOGSTRING("SATAPP: SatAppUiProvider::composeDialog exit") |
874 } |
886 } |
875 |
887 |
876 // ---------------------------------------------------------------------------- |
888 // ---------------------------------------------------------------------------- |
877 // docmlLoader |
889 // docmlLoader |