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. Setup Internet connection on Windows Mobile device.
Forum Updated to NodeBB v4.3 + New Features

Setup Internet connection on Windows Mobile device.

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 3.7k 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
    sergey_m
    wrote on last edited by
    #1

    Hi!

    I'm trying to setup Internet connection on Windows Mobile device. But have no success.

    I'm trying this code:

    @
    // Set Internet Access Point
    QNetworkConfigurationManager manager;
    const bool canStartIAP = (manager.capabilities()
    & QNetworkConfigurationManager::CanStartAndStopInterfaces);
    // Is there default access point, use it
    QNetworkConfiguration cfg = manager.defaultConfiguration();
    if (!cfg.isValid() || (!canStartIAP && cfg.state() != QNetworkConfiguration::Active)) {
    QMessageBox::information(this, tr("Network"), tr(
    "No Access Point found."));
    return;
    }

    session = new QNetworkSession(cfg, this);
    session->open();
    session->waitForOpened(-1);
    @
    code from http://doc.qt.nokia.com/4.7-snapshot/bearer-management.html

    I don't have CanStartAndStopInterfaces capabilities.

    Hope it's a known issue.

    TIA!

    Sergey

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on last edited by
      #2

      do you have compile errors? or it just has no functionality?

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

        Hi,

        I can compile and deploy it. But canStartIAP is false (i.e. CanStartAndStopInterfaces is false) and default configuration is empty. I also tryed to get list of congigurations and it's also empty...

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

          Still can't start connection. I added qgenericbearerd4.dll into my application folder\bearer and now can see configurations.

          I have capabilities - 0x10, so seems that I can't start connection.

          Also I have list with 3 configurations:

          TNETW12511 - I guess wifi
          Automatic Tunneling Pseudo-Interface
          6to4 Pseudo-Interface

          when I'm trying to start I have error "The specified configuration cannot be used"

          When I switched on edge I've got one more connection - Cellular Line

          Anybody tryed to start internet connection from WinMobile with qt 4.7 application?

          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