MWlanMgmtInterface Class Reference
ECom interface class for WLAN management services.
This class contains the methods for managing WLAN connections and querying the statuses of various connection variables.
Public Member Functions |
---|
void | ActivateExtendedNotificationsL(MWlanMgmtNotifications &, TUint) |
void | ActivateNotificationsL(MWlanMgmtNotifications &) |
TInt
| AddBssidToBlacklist(const TWlanBssid &) |
TInt
| AddIapSsidList(TUint, const CArrayFixFlat< TWlanSsid > &) |
void | CancelCreateTrafficStream() |
void | CancelDeleteTrafficStream() |
void | CancelDirectedRoam() |
void | CancelGetAvailableIaps() |
void | CancelGetScanResults() |
void | CancelNotifications() |
void | CancelProtectedSetup() |
void | CreateTrafficStream(TRequestStatus &, const TWlanTrafficStreamParameters &, TUint &, TWlanTrafficStreamStatus &) |
void | DeleteTrafficStream(TRequestStatus &, TUint) |
void | DirectedRoam(TRequestStatus &, const TWlanBssid &) |
TInt
| GetAvailableIaps(RArray< TUint > &) |
void | GetAvailableIaps(TRequestStatus &, RArray< TUint > &) |
void | GetAvailableIaps(TInt &, TUint &, TRequestStatus &, RArray< TUint > &) |
void | GetAvailableIaps(TInt &, TUint &, TBool, TRequestStatus &, RArray< TWlanIapAvailabilityData > &) |
TInt
| GetConnectionBssid(TWlanBssid &) |
TInt
| GetConnectionMode(TWlanConnectionMode &) |
TInt
| GetConnectionSecurityMode(TWlanConnectionSecurityMode &) |
TInt
| GetConnectionSignalQuality(TInt32 &) |
TInt
| GetConnectionSsid(TWlanSsid &) |
TInt
| GetExtendedConnectionSecurityMode(TWlanConnectionExtentedSecurityMode &) |
TInt
| GetScanResults(CWlanScanInfo &) |
void | GetScanResults(TRequestStatus &, CWlanScanInfo &) |
void | GetScanResults(TWlanSsid &, TRequestStatus &, CWlanScanInfo &) |
void | GetScanResults(TInt &, TUint &, TWlanSsid &, TRequestStatus &, CWlanScanInfo &) |
void | NotifyChangedSettings() |
TInt
| RemoveIapSsidList(TUint) |
void | RunProtectedSetup(TRequestStatus &, TUint32, CArrayFixSeg< TWlanProtectedSetupCredentialAttribute > &) |
TInt
| StartAggressiveBgScan(TUint) |
TInt
| UpdateRssNotificationBoundary(const TInt32, const TInt32) |
Member Functions Documentation
ActivateExtendedNotificationsL(MWlanMgmtNotifications &, TUint)
Activate the extended notification service.
After the client has enabled the notification service, it can receive asynchronous notifications from the server.
ActivateNotificationsL(MWlanMgmtNotifications &)
Activate the notification service.
After the client has enabled the notification service, it can receive asynchronous notifications from the server.
AddBssidToBlacklist(const TWlanBssid &)
Adds a bssid to the blacklist
Parameters
const TWlanBssid & aBssid | The BSSID of the accesspoint. |
AddIapSsidList(TUint, const CArrayFixFlat< TWlanSsid > &)
Add a list of SSIDs to the given IAP ID.
The list of SSIDs is matched against the scan results during IAP availability check and the corresponding IAP marked as available if a match is found.
Parameters
TUint aIapId | IAP ID the list is attached to. |
const CArrayFixFlat< TWlanSsid > & aSsidList | List of SSIDs. Any previous list attached will be overwritten. |
CancelCreateTrafficStream()
void | CancelCreateTrafficStream | ( | ) | [pure virtual] |
Cancel an outstanding traffic stream creation request.
CancelDeleteTrafficStream()
void | CancelDeleteTrafficStream | ( | ) | [pure virtual] |
Cancel an outstanding traffic stream deletion request.
CancelDirectedRoam()
void | CancelDirectedRoam | ( | ) | [pure virtual] |
Cancel an outstanding directed roam request.
CancelGetAvailableIaps()
void | CancelGetAvailableIaps | ( | ) | [pure virtual] |
Cancel an outstanding IAP availability request.
CancelGetScanResults()
void | CancelGetScanResults | ( | ) | [pure virtual] |
Cancel an outstanding scan request.
CancelNotifications()
void | CancelNotifications | ( | ) | [pure virtual] |
Cancel the notification service.
CancelProtectedSetup()
void | CancelProtectedSetup | ( | ) | [pure virtual] |
Cancel an outstanding Protected Setup operation.
CreateTrafficStream(TRequestStatus &, const TWlanTrafficStreamParameters &, TUint &, TWlanTrafficStreamStatus &)
Create a virtual traffic stream.
Parameters
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
const TWlanTrafficStreamParameters & aStreamParameters | Traffic stream parameters to use. |
TUint & aStreamId | Contains the ID assigned to this traffic stream on successful completion. |
TWlanTrafficStreamStatus & aStreamStatus | Contains the status of the traffic stream on successful completion. |
DeleteTrafficStream(TRequestStatus &, TUint)
Delete a virtual traffic stream.
Parameters
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
TUint aStreamId | ID of the traffic stream to delete. |
DirectedRoam(TRequestStatus &, const TWlanBssid &)
Initiate a roam to the given BSSID.
Parameters
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
const TWlanBssid & aBssid | BSSID to roam to. If set to FF:FF:FF:FF:FF:FF address, search for a better BSS is initiated. |
GetAvailableIaps(RArray< TUint > &)
Get the available WLAN IAPs.
Parameters
RArray< TUint > & aAvailableIaps | Array of IAP IDs available. |
GetAvailableIaps(TRequestStatus &, RArray< TUint > &)
Get the available WLAN IAPs.
Parameters
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
RArray< TUint > & aAvailableIaps | Array of IAP IDs available. |
GetAvailableIaps(TInt &, TUint &, TRequestStatus &, RArray< TUint > &)
Get the available WLAN IAPs.
Parameters
TInt & aCacheLifetime | Defines how many seconds old cached results the client is willing to accept. The valid is range is from 0 to 60 seconds. The value of -1 means the system default will be used. The aCacheLifetime parameter has a meaning only when the aMaxDelay parameter is zero. Value will be changed to the actual value used by the system. |
TUint & aMaxDelay | Maximum amount of seconds the client is willing to wait for the availability results. The valid range is from 0 to 1200 seconds or KWlanInfiniteScanDelay. KWlanInfiniteScanDelay will never cause a scan, but the request will be completed when any other broadcast scan request is completed. Value will be changed to the actual value used by the system. |
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
RArray< TUint > & aAvailableIaps | Array of IAP IDs available. |
GetAvailableIaps(TInt &, TUint &, TBool, TRequestStatus &, RArray< TWlanIapAvailabilityData > &)
Get the available WLAN IAPs.
Parameters
TInt & aCacheLifetime | Defines how many seconds old cached results the client is willing to accept. The valid is range is from 0 to 60 seconds. The value of -1 means the system default will be used. The aCacheLifetime parameter has a meaning only when the aMaxDelay parameter is zero. Value will be changed to the actual value used by the system. |
TUint & aMaxDelay | Maximum amount of seconds the client is willing to wait for the availability results. The valid range is from 0 to 1200 seconds or KWlanInfiniteScanDelay. KWlanInfiniteScanDelay will never cause a scan, but the request will be completed when any other broadcast scan request is completed. Value will be changed to the actual value used by the system. |
TBool aFilteredResults | Whether availability is filtered based on signal strength. ETrue if filtering is allowed, EFalse if not. |
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
RArray< TWlanIapAvailabilityData > & aAvailableIaps | Array of IAPs available. |
GetConnectionBssid(TWlanBssid &)
Get the BSSID of the BSS currently connected to.
Note:
This method can only be used while successfully connected to a WLAN network.
Parameters
TWlanBssid & aBssid | BSSID of the currently connected BSS. |
GetConnectionMode(TWlanConnectionMode &)
Get the mode of the WLAN connection.
GetConnectionSecurityMode(TWlanConnectionSecurityMode &)
Get the currently used security mode of the WLAN connection.
Note:
This method can only be used while successfully connected to a WLAN network.
This method is offered for backward compatibility reasons,
GetExtendedConnectionSecurityMode() should be used instead.
GetConnectionSignalQuality(TInt32 &)
TInt
| GetConnectionSignalQuality | ( | TInt32 & | aSignalQuality | ) | [pure virtual] |
Get the current Received Signal Strength Indicator (RSSI).
Note:
This method can only be used while successfully connected to a WLAN network.
Parameters
TInt32 & aSignalQuality | Current RSSI. |
GetConnectionSsid(TWlanSsid &)
Get the SSID of the WLAN network currently connected to.
Note:
This method can only be used while successfully connected to a WLAN network.
Parameters
TWlanSsid & aSsid | SSID of the currently connected network. |
GetExtendedConnectionSecurityMode(TWlanConnectionExtentedSecurityMode &)
Get the currently used security mode of the WLAN connection.
Note:
This method can only be used while successfully connected to a WLAN network.
GetScanResults(CWlanScanInfo &)
Perform a broadcast scan and return the detected WLAN networks.
GetScanResults(TRequestStatus &, CWlanScanInfo &)
Perform a broadcast scan and return the detected WLAN networks.
Parameters
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
CWlanScanInfo & aResults | Results of the scan. |
GetScanResults(TWlanSsid &, TRequestStatus &, CWlanScanInfo &)
Perform a direct scan for an SSID and return the detected WLAN networks. If the SSID has zero length, a broadcast scan will be done.
Parameters
TWlanSsid & aSsid | name of the WLAN network |
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
CWlanScanInfo & aResults | Results of the scan. |
GetScanResults(TInt &, TUint &, TWlanSsid &, TRequestStatus &, CWlanScanInfo &)
Perform a direct scan for an SSID and return the detected WLAN networks. If the SSID has zero length, a broadcast scan will be done.
Parameters
TInt & aCacheLifetime | Defines how many seconds old cached results the client is willing to accept. The valid is range is from 0 to 60 seconds. The value of -1 means the system default will be used. The aCacheLifetime parameter has a meaning only when the aMaxDelay parameter is zero. Value will be changed to the actual value used by the system. |
TUint & aMaxDelay | Maximum amount of seconds the client is willing to wait for the scan results. The valid range is from 0 to 1200 seconds or KWlanInfiniteScanDelay. KWlanInfiniteScanDelay will never cause a scan, but the request will be completed when any other broadcast scan request is completed. Value will be changed to the actual value used by the system. |
TWlanSsid & aSsid | Name of the WLAN network. |
TRequestStatus & aStatus | Status of the calling active object. On successful completion contains KErrNone, otherwise one of the system-wide error codes. |
CWlanScanInfo & aResults | Results of the scan. |
NotifyChangedSettings()
void | NotifyChangedSettings | ( | ) | [pure virtual] |
Notify the server about changed WLAN settings.
RemoveIapSsidList(TUint)
TInt
| RemoveIapSsidList | ( | TUint | aIapId | ) | [pure virtual] |
Remove any list of SSIDs attached to the given IAP ID.
Parameters
TUint aIapId | IAP ID the list is attached to. |
RunProtectedSetup(TRequestStatus &, TUint32, CArrayFixSeg< TWlanProtectedSetupCredentialAttribute > &)
StartAggressiveBgScan(TUint)
TInt
| StartAggressiveBgScan | ( | TUint | aInterval | ) | [pure virtual] |
Start aggressive background scanning.
Parameters
TUint aInterval | Scan interval (in seconds) for aggressive mode. |
UpdateRssNotificationBoundary(const TInt32, const TInt32)
TInt
| UpdateRssNotificationBoundary | ( | const TInt32 | aRssLevelBoundary, |
| const TInt32 | aHysteresis |
| ) | [pure virtual] |
Updates the RSS notification class boundaries.
Parameters
const TInt32 aRssLevelBoundary | Specifies the RSS level when a signal level notification should be given. This boundary is used when signal level is getting worse (see next parameter). |
const TInt32 aHysteresis | Specifies the difference between RSS notification trigger levels of declining and improving signal quality, i.e. since aRssLevelBoundary specifies the level boundary for declining signal, the same boundary for improving signal is ( aRssLevelBoundary - aHysteresis ). |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.