Hi!

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

I’m trying this code:

Qt Code:
  1. // Set Internet Access Point
  2. QNetworkConfigurationManager manager;
  3. const bool canStartIAP = (manager.capabilities()
  4. & QNetworkConfigurationManager::CanStartAndStopInterfaces);
  5. // Is there default access point, use it
  6. QNetworkConfiguration cfg = manager.defaultConfiguration();
  7. if (!cfg.isValid() || (!canStartIAP && cfg.state() != QNetworkConfiguration::Active)) {
  8. QMessageBox::information(this, tr("Network"), tr(
  9. "No Access Point found."));
  10. return;
  11. }
  12.  
  13. session = new QNetworkSession(cfg, this);
  14. session->open();
  15. session->waitForOpened(-1);
To copy to clipboard, switch view to plain text mode 

code from http://doc.qt.nokia.com/4.7-snapshot...anagement.html

I don’t have CanStartAndStopInterfaces capabilities, default config is empty. I also tryed to get list of congigurations but it’s also empty….

What is the problem? Hope it’s a known issue.

TIA!

Sergey