#include <ext/mw/mwsaccmgruiplugin.h>
| class MWSAccMgrUiPlugin |
| Public Member Enumerations | |
|---|---|
| enum | TMEPNeeded { ENoRequest, ECaptcha, ETOS, ESignUp, ..., EUpdateSmcSubscription } |
| enum | TUICommand { EStart, EContinue, EWait, EFail, ..., EV3Start } |
| Public Member Functions | |
|---|---|
| pure virtual TInt | CancelUIAsync() |
| pure virtual TInt | InvokeCustomUIAccountCreateL(TRequestStatus &, CWSAccount &, TUICommand, CWSAccountManager::TCreateStartupView) |
| pure virtual TInt | InvokeCustomUIAccountDetailsL(TRequestStatus &, CWSAccount &, TUICommand, CWSAccountManager::TEditorMode) |
| pure virtual TInt | InvokeCustomUIAccountSignInL(TRequestStatus &, CWSAccount &, TUICommand) |
| Enumerator | Value | Description |
|---|---|---|
| ENoRequest | 0 |
UI asks to fetch PhoneActivation details |
| ECaptcha | 1 |
UI asks to fetch captcha image |
| ETOS |
UI asks to download Term of Usage | |
| ESignUp |
UI collected all User input and wants register account | |
| ESecretQuestions |
UI asks to fetch list with secret questions | |
| ECheckUsernameAvailabilityL |
UI wants check availability of username | |
| ESignIn |
UI sends signal to sign in | |
| ESignInUI |
UI sends signal to launch full sign in flow (UI & MEP) | |
| ECheckPassword |
Ui wants to check if the provided password is ok | |
| EUpdatePassword |
UI wants to update account password | |
| EUpdateSecurityQuestion |
UI wants to update security question | |
| EUploadAccount |
UI wants to update account data | |
| EPasswordQuestion |
UI wants to receive password secret question | |
| ERetriveContactMethods |
UI wants to receive preferable contacts to retrive password reset token | |
| EResetPasswordBySMS |
UI wants to receive token password on NCIM | |
| EResetPasswordByEmail |
UI wants to receive token password on NCIM | |
| EChangePassword |
UI wants to change password after reset on NCIM | |
| ECancelUser |
UI has been cancelled by end user | |
| ECancelRequest |
UI wants to cancel pending request | |
| EDeleteAccount |
UI wants to delete account | |
| EUpdateLocalData |
UI wants to update device specific data (no request to the backend is needed) | |
| EAccountDetails | ||
| EDownlaodAccount | ||
| ESignOut | ||
| EAutoDetectUser | 23 | |
| EUpdateUserInfo | ||
| ESmcQueryVariant | ||
| EOviMailRequest | ||
| EMarketingConsentUpdate | ||
| EYahooToSUrls | ||
| EYahooToSContent | ||
| EYahooPPUrls | ||
| EYahooPPContent | ||
| EClockServerTime | ||
| ENokiaTermsUrls | ||
| ENokiaToSContent | ||
| ENokiaPPContent | ||
| ETermsAcceptanceRetrieval | ||
| ETermsAcceptanceUpdate | ||
| EGetSmcSubscription | ||
| EUpdateSmcSubscription |
| Enumerator | Value | Description |
|---|---|---|
| EStart |
Start user interface and handling user input | |
| EContinue |
After handling demand(TMEPNeeded) from UI, account manager ask UI to continue flow & handling next user input | |
| EWait |
After handling demand(TMEPNeeded) from UI, account manager ask UI to continue flow & handling next user input WITHOUT signalizing new demand. Its similar to EContinue but new demands will not be handled by account manager. | |
| EFail |
Account manager informs UI that some error happened. Details stored within account. | |
| EStop |
Stop UI, Allow UI for additional actions before view deactivation. | |
| EAccClose |
Account manager informs UI to close any UI which is visible now | |
| EV3Start |
Account manager informs UI to close any UI which is visible now |
| TInt | CancelUIAsync | ( | ) | [pure virtual] |
Cancels an outstanding asynchronous request. The result of the cancellation request will be reflected through the request status of the pending request. A status of KErrCancel denotes that the request has been safely cancelled.
| TInt | InvokeCustomUIAccountCreateL | ( | TRequestStatus & | aStatus, |
| CWSAccount & | aAccount, | |||
| TUICommand | aCommand, | |||
| CWSAccountManager::TCreateStartupView | aView | |||
| ) | [pure virtual] | |||
Invoke UI layer to perform SignUp process, account creation wizard. Account manager asks UI plugin to show views & gather all information about account in order to store it within aAccount
Out values ========================================================================= |key | description | ========================================================================= |aAccount.UserId() | Account name (user id) | ------------------------------------------------------------------------- |KWSAccAttrAccountCaptcha | Holds already human text of CAPTCHA| ------------------------------------------------------------------------- |KWSAccAttrAccountMobile | Account's owner mobile phone number| ------------------------------------------------------------------------- |aAccount.Password() | Account password | ------------------------------------------------------------------------- |KWSAccAttrAccountSecretQuest | Id of security question | ------------------------------------------------------------------------- |KWSAccAttrAccountSecretAnswer | Answer for security question | -------------------------------------------------------------------------
| Parameters | |
|---|---|
| aStatus | Used by plugin to indicate completion of the send request. Value of completion is equal to: -negative cases: symbian error code -positive cases: TMEPNeeded |
| aAccount | in/out parameter. Holds information about processed account & user input In values ========================================================================= |key | description | ========================================================================= |AvailableUsernames | Keeps list of free Account-names, | | | If SignUp fails | ------------------------------------------------------------------------- |KWSAccAttrAccountCaptcha | Holds CAPTCHA, usually as Base64 | ------------------------------------------------------------------------- |aAccount.SecurityQuestions() | Array of secret questions | ------------------------------------------------------------------------- |
| aCommand | control flow, determines/suggests UI how to behave |
| aView | init view when EStart aCommand is passed |
| TInt | InvokeCustomUIAccountDetailsL | ( | TRequestStatus & | aStatus, |
| CWSAccount & | aAccount, | |||
| TUICommand | aCommand, | |||
| CWSAccountManager::TEditorMode | aMode | |||
| ) | [pure virtual] | |||
Invoke UI layer to show account details.
| Parameters | |
|---|---|
| aStatus | Used by plugin to indicate completion of the send request. Value of completion is equal to: -negative cases: symbian error code -positive cases: TMEPNeeded |
| aAccount | in parameter. Holds information about account. |
| aCommand | control flow, determine/suggest UI how to behave |
| TInt | InvokeCustomUIAccountSignInL | ( | TRequestStatus & | aStatus, |
| CWSAccount & | aAccount, | |||
| TUICommand | aCommand | |||
| ) | [pure virtual] | |||