×
Namespaces

Variants
Actions

关闭WLAN扫描

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

兼容于
文章
翻译:
hoolee
最后由 hamishwillee 在 09 Aug 2012 编辑

简介

可以通过CommsDat WLAN API(wlancdbcols.h)来取消WLAN扫描

Note.pngNote: 注意此API并非公开SDK的一部分. 你可以在SDK API Plug-in找到.

描述

WLAN可以通过CommsDat WLAN API (wlancdbcols.h)进行间隔扫描,在这里Archived:How to get and set the WLAN scan interval using Symbian C++有所描述。作为特殊处理,你可以通过将间隔时间设置为0分钟,来关闭扫描。当WLAN扫描关闭后,显示WLAN连接状态设置将显示为从不(在设置-连接-无线局域网中可以看到。)

注意这无法从状态栏移除WLAN图标,因为WLAN引擎在这样扫描间隔设置下无法接收到通知。这个引擎可以通过下列代码被通知(图标也可从状态栏移除了)

 // Notifying WLAN Engine about changes in settings.
CWlanMgmtClient* wlanMgmtClient = CWlanMgmtClient::NewL();
wlanMgmtClient->NotifyChangedSettings();
delete wlanMgmtClient;
This page was last modified on 9 August 2012, at 04:59.
170 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×