Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-2022

N9: QSystemNetworkInfo::currentMode returns EthernetMode when the phone is connected via USB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 1.2.1
    • System Information
    • None
    • Application developed on Windows using QtCreator and running on a Nokia N9 connected via USB to the PC in SDK mode.

    Description

      I have a Nokia N9 without SIM nor connected WIFI. My application contains this code:

      QSystemNetworkInfo* networkInfo = new QtMobility::QSystemNetworkInfo();
      QSystemNetworkInfo::NetworkMode activeMode = networkInfo->currentMode();
      if (networkInfo->networkStatus(activeMode) != QSystemNetworkInfo::Connected) {
          ...
      } else {
          ...
      }
      

      When the phone is connected via USB to my PC, currentMode() returns EthernetMode and networkStatus(currentMode()) returns Connected but in reality the network is not available (the error message is "Network session error.").

      I'd expect that currentMode() returns UnknownMode or that networkStatus(currentMode()) returns NoNetworkAvailable.

      Attachments

        Activity

          People

            djcb Dirk-Jan C. Binnema
            neomades Maxime Dubois
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: