#include <ext/mw/wsoviaccountmanager.h>
Link against: wsoviaccountmanager.lib
class CWSOviAccountManager : public CBase, public MSsoObserver |
Inherited Enumerations | |
---|---|
MSsoObserver:TSsoEvent |
Manager provides functionality of remote OVI account processing. It is an asynchronous service provider therefore an active object has to be used together with this provider API. Api focuses around such usescases: Get OVI Account Sign-Up OVI account Sign-In OVI to account Close/cancel connection within OVI account Synchronize Ovi Account Display Ovi Account
~CWSOviAccountManager | ( | ) | [virtual] |
IMPORT_C CWSAccount * | Account | ( | ) |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | CancelAsync | ( | ) |
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.
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | CloseConnections | ( | ) |
Close IAP connections maintained by account manager. It guarantee no connection activity after calling.
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | DisplayAccountL | ( | TRequestStatus & | aStatus, |
CWSAccountManager::TEditorMode | aMode = CWSAccountManager::EReadOnly | |||
) |
Asynchronous request which is used to bootup UI to view account. UI layout depends on loaded ECOM implementation (established by provided cue)
See also: CWSAccMgrPluginInfo
Parameters | |
---|---|
aStatus | - Used by Account Manager to indicate completion of the sent request. Completion means usually that UI has been closed by end user. |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | DisplayAccountL | ( | CWSAccountManager::TEditorMode | aMode = CWSAccountManager::EReadOnly | ) |
Synchronous(blocking) request which is used to bootup UI to view account. UI layout depends on loaded ECOM implementation (established by provided cue)
See also: CWSAccMgrPluginInfo
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | DownloadAccount | ( | TRequestStatus & | aStatus | ) |
Download OVI account information from remote backend
Parameters | |
---|---|
aStatus | - Used by Account Manager to indicate completion of the send request. Completion means successfully download from backend |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | DownloadAccount | ( | ) |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C HBufC8 * | GetToSLinkL | ( | TRequestStatus & | aStatus | ) |
void | HandleSsoEvent | ( | TSsoEvent | aEvent | ) | [virtual] |
Reimplemented from MSsoObserver::HandleSsoEvent(TSsoEvent)
callback method to notify client about event
aEvent notification type
IMPORT_C TBool | HasValidTokenL | ( | const MSenServiceDescription * | aService = NULL | ) |
Parameters | |
---|---|
aService | - target service to SignIn |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C CWSOviAccountManager * | NewL | ( | ) | [static] |
Creates an object representing an account manager. Variant of Factory method used by UI-less plugins.
See also: CWSAccMgrPluginBase Method launches/attaches to Web Service Symbian server (it is time consuming).
IMPORT_C CWSOviAccountManager * | NewL | ( | CAknViewAppUi * | aAppUi | ) | [static] |
Creates an object representing an account manager. Method launches/attaches to Web Service Symbian server (it is time consuming).
Depraceted, use simple NewL() with no arguments
Parameters | |
---|---|
aAppUi | - S60 The AppUi is needed to attach UI framework |
IMPORT_C CWSOviAccountManager * | NewL | ( | CAknViewAppUi * | aAppUi, |
CSenTransportProperties * | aTranspProperties | |||
) | [static] |
Creates an object representing an account manager. Method launches/attaches to Web Service Symbian server (it is time consuming).
Parameters | |
---|---|
aAppUi | - S60 The AppUi is needed to attach UI framework (deprecated argument, use NULL) |
aTranspProperties | - used mostly to carry IAP/SNAP information. That info is used when network connections are opened. Ownership is transferred. |
IMPORT_C CWSOviAccountManager * | NewLC | ( | ) | [static] |
Creates an object representing an account manager. Variant of Factory method used by UI-less plugins.
See also: CWSAccMgrPluginBase Method launches/attaches to Web Service Symbian server (it is time consuming).
IMPORT_C CWSOviAccountManager * | NewLC | ( | CAknViewAppUi * | aAppUi | ) | [static] |
Creates an object representing an account manager. Method launches/attaches to Web Service Symbian server (it is time consuming).
Depraceted, use simple NewL() with no arguments
Parameters | |
---|---|
aAppUi | - S60 The AppUi is needed to attach UI framework |
IMPORT_C CWSOviAccountManager * | NewLC | ( | CAknViewAppUi * | aAppUi, |
CSenTransportProperties * | aTranspProperties | |||
) | [static] |
Creates an object representing an account manager. Method launches/attaches to Web Service Symbian server (it is time consuming).
Parameters | |
---|---|
aAppUi | - S60 The AppUi is needed to attach UI framework(deprecated argument, use NULL) |
aTranspProperties | - used mostly to carry IAP/SNAP information. That info is used when network connections are opened. Ownership is transferred. |
IMPORT_C TInt | RemoveAccountL | ( | ) |
Deletes account from device (only device)
IMPORT_C TInt | SignInL | ( | TRequestStatus & | aStatus, |
const MSenServiceDescription * | aService, | |||
CWSToken *& | aToken, | |||
TBool | aUI = ETrue | |||
) |
Asynchronous request which retrieves tokens from backend.
Parameters | |
---|---|
aStatus | - Used by Account Manager to indicate completion of the send request. Completion means successfully fetched token and registered within internal web services framework. |
aService | - optional argument to define token scope. NULL specifies general token |
aToken | - ready token to use by web services |
aUI | - tells account manager to invoke UI screens during sign in (in case of EFalse password must be provided within CWSAccount) |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
Synchronous(blocking) request which retrieves tokens from backend.
Parameters | |
---|---|
aService | - optional argument to define token scope. NULL specifies general token |
aToken | - ready token to use by web services |
aUI | - tells account manager to invoke UI screens during sign in (in case of EFalse password must be provided within CWSAccount) |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | SignOutL | ( | TRequestStatus & | aStatus, |
const MSenServiceDescription * | apService = NULL | |||
) |
Sign-out user from backend. Delete valid token from local device If service type is specified, only the tokens in that scope are "invalidated", otherwise signout happens for all services.
Parameters | |
---|---|
aStatus | - Used by Account Manager to indicate completion of the sent request. |
apService | - determines scope of token(service) to signOut |
IMPORT_C TInt | SignOutL | ( | const MSenServiceDescription * | apService = NULL | ) |
Parameters | |
---|---|
apService | - determines scope of token(service) to signOut |
IMPORT_C CWSAccount * | SignUpL | ( | TRequestStatus & | aStatus, |
CWSAccountManager::TCreateStartupView | aView = CWSAccountManager::EMain | |||
) |
Asynchronous request which performs Sign-Up. It usually runs UI wizard and invoke network communication to register remote account.
Parameters | |
---|---|
aStatus | - Used by Account Manager to indicate completion of the send request. Completion means: UI is closed by end user registration succedd (WSAccount is ready to use) Come back to orginal Akn View |
aView | - entry view |
Leave Codes | |
---|---|
IMPORT_C CWSAccount * | SignUpL | ( | CWSAccountManager::TCreateStartupView | aView = CWSAccountManager::EMain | ) |
Synchronous(blocking) request which performs Sign-Up. It runs UI wizard and invoke network communication to register remote account.
Parameters | |
---|---|
aView | - entry view |
Leave Codes | |
---|---|
IMPORT_C TInt | SingleSignOutL | ( | ) |
Deletes all NCIM SSO tokens of this user (account), but only in device scope.
Synchronous request which retrieves token from internal cache of Web Service framework. Consumer applications use this method for finding Credentials/Tokens. No netwrok activity to any real Identity Provider service. Local searching in device.
Parameters | |
---|---|
aService | - target service to SignIn. To obtain valid ovi token (without service scope), provide NULL. |
aToken | - token which keeps Credentials and related properties The ownership of the token is passed to the caller . If all ovi tokens in internal cache of Web Service framework are expired method returns KErrNone and aToken equals to NULL. |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | UploadAccount | ( | TRequestStatus & | aStatus | ) |
Parameters | |
---|---|
aStatus | - Used by Account Manager to indicate completion of the send request. Completion means successfully upload to backend |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |
IMPORT_C TInt | UploadAccount | ( | ) |
Leave Codes | |
---|---|
Some | system-wide Symbian error code |