equal
deleted
inserted
replaced
194 LOG_METHOD_ENTER; |
194 LOG_METHOD_ENTER; |
195 if (NULL == iConnectingNote) |
195 if (NULL == iConnectingNote) |
196 { |
196 { |
197 iConnectingNote = new HbMessageBox(HbMessageBox::MessageTypeInformation); |
197 iConnectingNote = new HbMessageBox(HbMessageBox::MessageTypeInformation); |
198 iConnectingNote->setModal(true); |
198 iConnectingNote->setModal(true); |
199 iConnectingNote->setTimeout(HbPopup::NoTimeout); |
199 iConnectingNote->setTimeout(HbPopup::NoTimeout); |
200 HbAction *cancelAction = new HbAction(hbTrId("txt_common_button_cancel"), iConnectingNote); |
200 QAction *action = iConnectingNote->actions().at(0); |
201 iConnectingNote->setPrimaryAction(cancelAction); |
201 action->setText(hbTrId("txt_common_button_cancel")); |
202 connect(cancelAction, SIGNAL(triggered()), this, SLOT(cancelConnect())); |
202 connect(action, SIGNAL(triggered()), this, SLOT(cancelConnect())); |
203 } |
203 } |
204 |
204 |
205 iConnectingNote->setText(iConnectingText); |
205 iConnectingNote->setText(iConnectingText); |
206 iConnectingNote->show(); |
206 iConnectingNote->show(); |
207 } |
207 } |
498 break; |
498 break; |
499 |
499 |
500 case EIRQDisplayNetworkMessageNoConnectivity: |
500 case EIRQDisplayNetworkMessageNoConnectivity: |
501 { |
501 { |
502 closeConnectingDialog(); |
502 closeConnectingDialog(); |
503 HbMessageBox note(hbTrId("txt_irad_info_no_network_connectiion"), HbMessageBox::MessageTypeWarning); |
503 HbMessageBox::warning(hbTrId("txt_irad_info_no_network_connectiion"), (QObject*)NULL, NULL); |
504 note.exec(); |
|
505 |
|
506 //reset setting to 'Always ask' |
|
507 iSettings->setUserDefinedSelection(EIRAlwaysAsk); |
|
508 iSettings->setDisplayAccessPoint(); |
|
509 |
|
510 if (!iDisconnected) |
504 if (!iDisconnected) |
511 { |
505 { |
512 /* the handling is up to each view */ |
506 /* the handling is up to each view */ |
513 iNetworkController->notifyActiveNetworkObservers(EIRQDisplayNetworkMessageNoConnectivity); |
507 iNetworkController->notifyActiveNetworkObservers(EIRQDisplayNetworkMessageNoConnectivity); |
514 } |
508 } |
574 |
568 |
575 void IRApplication::initApp() |
569 void IRApplication::initApp() |
576 { |
570 { |
577 if (!iIsdsClient->isdsIsConstructSucceed()) |
571 if (!iIsdsClient->isdsIsConstructSucceed()) |
578 { |
572 { |
579 HbMessageBox note("No available access points, exiting...", HbMessageBox::MessageTypeWarning); |
573 HbMessageBox::warning("No available access points, exiting...", (QObject*)NULL, NULL); |
580 note.setPrimaryAction(NULL); |
|
581 note.setTimeout(5000); |
|
582 note.setModal(true); |
|
583 note.exec(); |
|
584 qApp->quit(); |
574 qApp->quit(); |
585 } |
575 } |
586 else |
576 else |
587 { |
577 { |
588 static_cast<IRBaseView*>(iViewManager->currentView())->launchAction(); |
578 static_cast<IRBaseView*>(iViewManager->currentView())->launchAction(); |
755 bool fileExists = QFile::exists(fullServerName); |
745 bool fileExists = QFile::exists(fullServerName); |
756 |
746 |
757 if (error == QAbstractSocket::AddressInUseError && fileExists) |
747 if (error == QAbstractSocket::AddressInUseError && fileExists) |
758 { |
748 { |
759 QFile::remove(fullServerName); |
749 QFile::remove(fullServerName); |
760 iLocalServer->listen(serverName); |
750 bool ret = iLocalServer->listen(serverName); |
|
751 //following lines aim to fix coverity errors |
|
752 if (!ret) |
|
753 { |
|
754 Q_ASSERT(false); |
|
755 } |
761 } |
756 } |
762 } |
757 } |
763 } |
758 } |
764 |
759 |
765 void IRApplication::startMonitoringDiskSpace() |
760 void IRApplication::startMonitoringDiskSpace() |