Namespaces
Variants
Actions

关闭WLAN扫描

Jump to: navigation, search
文章信息

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

简介

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

Note.png
Note: 注意此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 07:59.
362 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved