CWiFiProtActiveRunner Class Reference
class CWiFiProtActiveRunner : public CActive
|
CWiFiProtActiveRunner
State machine like object that manages Wi-Fi Protected setup ui process
-
Since
-
S60 v3.2
Private Member Enumerations
|
enum
|
TWiFiProtOutstandingRequest
{
EWiFiProtReqNone
= 0,
EWiFiProtReqConfirmDialog
,
EWiFiProtReqInitDialog
,
EWiFiProtReqWPS
,
EWiFiProtReqWlanScan
}
|
enum
|
TWiFiProtStates
{
EWiFiProtAskConfigureAutomatically
= 1,
EWiFiProtInitiateEasySetup
,
EWifiProtOfflineQuery
,
EWiFiProtUsePinCode
,
EWiFiProtStartingWaitDlg
,
EWiFiProtConfiguring
,
EWiFiProtWlanMgmtEngineReturned
,
EWiFiProtCreateAllIaps
,
EWiFiProtConfFinished
,
EWiFiProtDestroyWaitNote
,
EWiFiProtWaitForPINQuery
,
EWiFiProtWlanScan
,
EWiFiProtSelectConnection
,
EWiFiProtSettingsConfNote
,
EWiFiProtFinished
,
EWiFiProtCancelled
}
|
Constructor & Destructor Documentation
CWiFiProtActiveRunner(CWiFiProtDlgsPlugin *, TInt)
~CWiFiProtActiveRunner()
~CWiFiProtActiveRunner
|
(
|
)
|
|
Member Functions Documentation
CancelByClient()
When the process is cancelled by the client rather than cancelled by the user, some things are taken care of a bit differently.
CancelOngoingRequest()
void
|
CancelOngoingRequest
|
(
|
)
|
[private]
|
CheckNetworkAvailabilityL()
void
|
CheckNetworkAvailabilityL
|
(
|
)
|
[private]
|
Compares the fresh wlan networks list with the items returned by WPS. Puts the available network indexes into iAvailableNetworks
CleanupTempIapL()
void
|
CleanupTempIapL
|
(
|
)
|
[private]
|
ComputeChecksum(TInt)
TInt
|
ComputeChecksum
|
(
|
TInt
|
aPin
|
)
|
[private]
|
ConfigureL()
void
|
ConfigureL
|
(
|
)
|
[private]
|
Called from RunL in EWiFiProtConfiguring state Starts configuring the connection methods
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
CreateAllIapsL()
void
|
CreateAllIapsL
|
(
|
)
|
[private]
|
CreateIapL(const TInt)
Creates Connection Method using
RCmManagerExt
The iap parameters at the given index (in iIapParametersArray) will be used to create an iap. Then the parameters entry will be deleted from iIapParametersArray and the new iap's id will be added to iCmArray.
CreateTempIapL(TUint32 &)
Creates Temporary iap (cm) which contains parameters to be passed to wlan engine
Parameters
TUint32
& aTempServId
|
Temporary iap service id
|
DeleteTempIapL()
void
|
DeleteTempIapL
|
(
|
)
|
[private]
|
DestroyWaitDialog()
void
|
DestroyWaitDialog
|
(
|
)
|
[private]
|
Called from RunL in EWiFiProtConfFinished state Destroys the wait dialog as configuring is complete
DialogDismissedL(TInt)
void
|
DialogDismissedL
|
(
|
TInt
|
aButtonId
|
)
|
[private]
|
DoCancel()
void
|
DoCancel
|
(
|
)
|
[private, virtual]
|
DoUsePinCodeLinkSelectedL()
void
|
DoUsePinCodeLinkSelectedL
|
(
|
)
|
[private]
|
Called by UsePinCodeLinkSelectedL when pin code mechanism is selected. Sets iUsePin flag and completes Active Runner (this) object
EvaluateResult()
void
|
EvaluateResult
|
(
|
)
|
[private]
|
Proceeds after DestroyWaitDialog or after PinQueryExitL and checks error state and continues with Wlan availability scan if needed
HandleErrorL(TInt)
TBool
|
HandleErrorL
|
(
|
TInt
|
aErrorCode
|
)
|
[private]
|
Handles the given error code by dispaying an error note
Parameters
TInt
aErrorCode
|
error code to handle
|
HandleNoErrorL()
void
|
HandleNoErrorL
|
(
|
)
|
[private]
|
Steps into the next state of Wi-Fi Protected Setup sequence called from
RunL()
IsWepFormatHexL(TInt)
TBool
|
IsWepFormatHexL
|
(
|
TInt
|
aLength
|
)
|
[private]
|
Returns wep format, ETrue if it is in hex
Parameters
TInt
aLength
|
Wep key length
|
NewL(CWiFiProtDlgsPlugin *, TInt)
PinQueryExitL(TInt)
void
|
PinQueryExitL
|
(
|
TInt
|
aResponse
|
)
|
[private]
|
RunL()
void
|
RunL
|
(
|
)
|
[private, virtual]
|
RunProtectedSetup(const TInt32)
void
|
RunProtectedSetup
|
(
|
const
TInt32
|
aIap
|
)
|
[private]
|
Calls the active object that calls wlan engine's RunProtectedSetup
SaveWepSecuritySettingsL(TWlanProtectedSetupCredentialAttribute, TUint32, CommsDat::CMDBSession &)
Saves wep security settings from the given credential parameters
SelectConnectionL()
void
|
SelectConnectionL
|
(
|
)
|
[private]
|
SetIapDataL(const TInt, RCmConnectionMethodExt &)
Sets iap settings to a given connection method object and saves it
SetNextStateAndComplete(TWiFiProtStates, TInt)
Sets iNextWiFiProtState and completes the pending request used to step forward in the 'state machine'
SetWepKeyL(CWEPSecuritySettings &, TWlanWepKey &, TInt)
void
|
SetWepKeyL
|
(
|
CWEPSecuritySettings &
|
aWepSecSettings,
|
|
TWlanWepKey
&
|
aWepKey,
|
|
TInt
|
aKeyNumber
|
|
)
|
[private]
|
Parameters
CWEPSecuritySettings & aWepSecSettings
|
Wep security settings object
|
TWlanWepKey
& aWepKey
|
Wep key to set
|
TInt
aKeyNumber
|
number of wep key to set
|
ShowEnterPinOnStationDialogL()
void
|
ShowEnterPinOnStationDialogL
|
(
|
)
|
[private]
|
Shows the 'Enter PIN on Wireless Station' dialog
ShowFinalNoteL()
void
|
ShowFinalNoteL
|
(
|
)
|
[private]
|
Shows 'settings configured' dialog
ShowInitialDialogL()
void
|
ShowInitialDialogL
|
(
|
)
|
[private]
|
Shows the first dialog in the sequence
ShowInitiateEasySetupDialogL()
void
|
ShowInitiateEasySetupDialogL
|
(
|
)
|
[private]
|
Shows the Initiate Easy Setup dialog
ShowNoWlanNetworksNoteL()
void
|
ShowNoWlanNetworksNoteL
|
(
|
)
|
[private]
|
ShowOfflineQuery()
void
|
ShowOfflineQuery
|
(
|
)
|
[private]
|
Shows connect in offline -notification.
ShowWaitingDialogAndProceedL()
void
|
ShowWaitingDialogAndProceedL
|
(
|
)
|
[private]
|
Shows waiting dialog and proceeds with the process
ShowWaitingDialogL()
void
|
ShowWaitingDialogL
|
(
|
)
|
[private]
|
StartProtectedSetupAsyncL(const TWlanSsid &, RArray< TUint32 > &, RCmManagerExt &)
Starts Wi-Fi Protected Setup
Parameters
const
TWlanSsid
& aSSid
|
contains SSid of the network we want to configure
|
RArray
<
TUint32
> & aUids
|
|
RCmManagerExt
& aCmManagerToUse
|
- RCmManagerExt to use. Must pass this to avoid CmManager database locking problems
|
StartProtectedSetupConnL(const TWlanSsid &, TWlanProtectedSetupCredentialAttribute &, RCmManagerExt &)
Starts Wi-Fi Protected Setup in Connection creation mode
StartProtectedSetupL(const TWlanSsid &, RArray< TUint32 > &, RCmManagerExt &)
Parameters
const
TWlanSsid
& aSSid
|
contains SSid of the network we want to configure
|
RArray
<
TUint32
> & aUids
|
|
RCmManagerExt
& aCmManagerToUse
|
- RCmManagerExt to use. Must pass this to avoid CmManager database locking problems
|
StartWlanScan()
void
|
StartWlanScan
|
(
|
)
|
[private]
|
UsePinCodeLinkSelectedL(TAny *)
TInt
|
UsePinCodeLinkSelectedL
|
(
|
TAny
*
|
aObject
|
)
|
[static]
|
Callback to handle pin code pin code mechanism link selection
Member Enumerations Documentation
Enum TWiFiProtOutstandingRequest
Enumerators
EWiFiProtReqNone = 0
|
|
EWiFiProtReqConfirmDialog
|
|
EWiFiProtReqInitDialog
|
|
EWiFiProtReqWPS
|
|
EWiFiProtReqWlanScan
|
|
Enum TWiFiProtStates
Enumerators
EWiFiProtAskConfigureAutomatically = 1
|
|
EWiFiProtInitiateEasySetup
|
|
EWifiProtOfflineQuery
|
|
EWiFiProtUsePinCode
|
|
EWiFiProtStartingWaitDlg
|
|
EWiFiProtConfiguring
|
|
EWiFiProtWlanMgmtEngineReturned
|
|
EWiFiProtCreateAllIaps
|
|
EWiFiProtConfFinished
|
|
EWiFiProtDestroyWaitNote
|
|
EWiFiProtWaitForPINQuery
|
|
EWiFiProtWlanScan
|
|
EWiFiProtSelectConnection
|
|
EWiFiProtSettingsConfNote
|
|
EWiFiProtFinished
|
|
EWiFiProtCancelled
|
|
Member Data Documentation
RArray< TInt > iAvailableNetworks
TBool
iClientCancelled
TBool
|
iClientCancelled
|
[private]
|
RPointerArray< RCmConnectionMethodExt > iCmArray
RCmManagerExt * iCmManagerExt
CWiFiProtConfirmationNoteDlg * iConfirmationDialog
CWiFiProtConfirmationNoteDlg *
|
iConfirmationDialog
|
[private]
|
TBool
iDestroyInitDialogLater
TBool
|
iDestroyInitDialogLater
|
[private]
|
CArrayFixSeg< TWlanProtectedSetupCredentialAttribute > * iIapParametersArray
TBool
iInOfflineMode
TBool
|
iInOfflineMode
|
[private]
|
CWiFiProtInitiateEasySetupDlg * iInitDialog
CWiFiProtInitiateEasySetupDlg *
|
iInitDialog
|
[private]
|
TBool
iIsConnectionNeeded
TBool
|
iIsConnectionNeeded
|
[private]
|
TWlanProtectedSetupCredentialAttribute * iNetworkSettings
TWiFiProtStates
iNextWiFiProtState
TWiFiProtOutstandingRequest
iORequest
TPckgBuf< TBool > iOfflineReply
TBuf< KMaxPINLength > iPIN
CWiFiProtDlgsPlugin * iParent
CWiFiProtEnterPinDlg * iPinDlg
CWiFiProtEnterPinDlg *
|
iPinDlg
|
[private]
|
TBool
iPinQueryActive
TBool
|
iPinQueryActive
|
[private]
|
WiFiProt::TWiFiReturn
iReturn
WiFiProt::TWiFiReturn
|
iReturn
|
[private]
|
CWlanScanInfo * iScanInfo
TInt
iSelectedNetworkIndex
TInt
|
iSelectedNetworkIndex
|
[private]
|
TBool
iSyncMode
TBool
|
iSyncMode
|
[private]
|
RArray< TUint32 > * iUids
TBool
iUserCancelled
TBool
|
iUserCancelled
|
[private]
|
CActiveSchedulerWait
iWait
CAknWaitDialog * iWaitDlg
TBool
iWaitDlgCancelled
TBool
|
iWaitDlgCancelled
|
[private]
|
TBool
iWaitNoteNeeded
TBool
|
iWaitNoteNeeded
|
[private]
|
CWlanMgmtClient * iWlanMgmtEngine
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.