Setup Internet connection on Windows Mobile device.
-
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.htmlI don't have CanStartAndStopInterfaces capabilities.
Hope it's a known issue.
TIA!
Sergey
-
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-Interfacewhen 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?