Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Mobility 1.1 and BearerType
Qt 6.11 is out! See what's new in the release blog

Mobility 1.1 and BearerType

Scheduled Pinned Locked Moved Mobile and Embedded
9 Posts 2 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SimonJudge
    wrote on last edited by
    #1

    I am trying to find out the bearer type on Symbian^3 (Nokia C7)...

    @QNetworkConfigurationManager manager;
    QNetworkConfiguration configuration = manager.defaultConfiguration();
    QNetworkConfiguration::BearerType bearerType = configuration.bearerType();@

    This returns 0 for the bearerType which is BearerUnknown

    Does this API actually work? I am using the Nokia Qt 1.1 Tech preview SDK with Qt and Mobility installed on the phone.

    Thanks

    Simon

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      did bearerTypeName() function also return empty string?
      ps: can you also markup code with @ tag

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SimonJudge
        wrote on last edited by
        #3

        Yes, bearerTypeName() returns empty.
        configuration.state() also returns 1 (= Undefined)

        What Symbian capabilities does this require? I have NetworkServices ReadUserData.

        Thanks

        Simon

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SimonJudge
          wrote on last edited by
          #4

          Also tried something else... this example http://wiki.forum.nokia.com/index.php/How_to_set_default_access_point_using_Qt_Mobility_APIs mentions using...

          MOBILITY += bearer

          When I add this, the compiler complains it no longer knows about the QNetworkxxx classes and when I add the QTM_USE_NAMESPACE
          macros it's not recognised.

          Thanks

          Simon

          1 Reply Last reply
          0
          • A Offline
            A Offline
            archerabi
            wrote on last edited by
            #5

            The bearer api is deprecated. QNetworkaccessmanager now manages all connections itself. It has roaming support as well . Read QnetworkAccessmanager documentation for further info.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SimonJudge
              wrote on last edited by
              #6

              Where is it documented that the bearer api is deprecated? The documentation for QNetworkAccessManager (http://doc.qt.nokia.com/latest/qnetworkaccessmanager.html) references QNetworkConfigurationManager (under the Network and Roaming support heading) so I doubt it is deprecated.

              QNetworkaccessManager doesn't allow me to know if there is a WiFi connection. My app needs to do different things depending on the type of connection (WiFi vs Cellular).

              Simon

              1 Reply Last reply
              0
              • ? This user is from outside of this forum
                ? This user is from outside of this forum
                Guest
                wrote on last edited by
                #7

                [quote author="SimonJudge" date="1297243557"]Where is it documented that the bearer api is deprecated?[/quote]

                When you compile you should be seeing this warning that Bearer api has been deprecated

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SimonJudge
                  wrote on last edited by
                  #8

                  Ummm. I don't get any warning in the 'Compile Output' window of Creator when I compile for Qt Simulator or Simulator Device. This is with the Qt SDK Tech Preview 1.1.

                  Interestingly, I have found the QNetworkConfigurationManager does work under the simulator and returns a bearerTypeName of Ethernet. It's just on Symbian it doesn't work.

                  Simon

                  1 Reply Last reply
                  0
                  • ? This user is from outside of this forum
                    ? This user is from outside of this forum
                    Guest
                    wrote on last edited by
                    #9

                    I think you should log a bug against this for symbian platform

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved