Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24525

bearerType returns 0 in WinCE7 device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.8.0
    • None
    • winCE7

    Description

      bearerType returns 0, even if there are working connections on the device.

      Problem can be seen with the following code:

      #include <QtCore/QCoreApplication>
      #include <QNetworkConfigurationManager>
      #include <cstdio>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
          QNetworkConfigurationManager manager;
      
          printf("Starting server\n");
          QNetworkConfiguration config;
          QList<QNetworkConfiguration> nlist = manager.allConfigurations(0);
          printf("count:%d\n", nlist.count());
      
          for (int i= 0; i < nlist.count(); i++)
          {
              config = nlist[i];
              QString trial = config.bearerTypeName();
              printf("configuration is %s\n",trial.toAscii().constData());
              printf("bearertype is %d\n",config.bearerType());
              printf("state is %d\n",config.state());
              printf("-----------------\n");
          }
          return a.exec();
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0101981 Janne Anttila
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes