开发者

Detect roaming (switching the Access Point) with QtMobility?

I need to write an application, that detects roaming from one access point to another if I'm connected to WLAN. Unfortunately I couldn't find anything that detects roaming for me. All I could find are some explanations in the Bearer API. One sentence says:

The second form of roaming is referred to as Forced Roaming. The system simply changes the link layer without consulting the application. It is up to the application to detect that some of its internal socket may have become invalid.

Since I'm 开发者_开发知识库not a network guy I don't have any idea how I could track roaming. It would be enough to know, that the device switched from one access point to another.

Maybe anybody of you can help me out on that?

Thanks a lot!


I believe this is exactly the thing you need: http://doc.qt.nokia.com/qtmobility-1.0/qnetworksession.html#newConfigurationActivated


Check out RConnectionMonitor and MConnectionMonitorObserver classes. THey allow your code to get notified when connections change

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜