|
Maps SDK for C++ 1.0.0
|
Login service for social service activity. More...


Public Member Functions | |
| Login (const Login &)=delete | |
| Login & | operator= (const Login &)=delete |
| Login (Login &&)=default | |
| Default move constructor noexcept is deduced. | |
| Login & | operator= (Login &&login)=default |
| Default move assignment noexcept is deduced. | |
| int | checkNameAvailability (const String &name, ProgressListener listener) noexcept |
| Check for available map name. | |
| int | registerAccount (const String &name, const String &pwd, const String &firstName, const String &lastName, const String &phone, const String &mail, int iconId, ProgressListener listener) noexcept |
| Register new user account. | |
| int | login (const String &name, const String &pwd, ProgressListener listener) noexcept |
| Login user. | |
| int | registerExternalLogin (const String &loginId, ProgressListener listener) noexcept |
| Register external login. | |
| int | logout () noexcept |
| Logout user. | |
| int | deleteAccount (ProgressListener listener) noexcept |
| Delete current logged account. | |
| bool | isLoggedIn () const noexcept |
| Check login state. | |
| LargeInteger | getUserId () const noexcept |
| Get current logged account unique id. | |
| String | getUserName () const noexcept |
| Get current logged account name. | |
| String | getUserFirstName () const noexcept |
| Get current logged account first name. | |
| String | getUserLastName () const noexcept |
| Get current logged account last name. | |
| String | getUserPhone () const noexcept |
| Get current logged account phone number. | |
| String | getUserEmail () const noexcept |
| Get current logged account email. | |
| Image | getUserImage () const noexcept |
| Get current logged account image. | |
| int | getUserImageId () const noexcept |
| Get current logged account image id. | |
| float | getUserSocialCredibility () const noexcept |
| Get current logged account social credibility. | |
| Time | getLoginTime () const noexcept |
| Get the current login session time. | |
| int | setUserLoginData (const String &firstName, const String &lastName, const String &phone, const String &mail, int iconId, ProgressListener listener) noexcept |
| Set current logged in user data. | |
| ImageList | getLoginIconList () const noexcept |
| Get available login icons. | |
Login service for social service activity.
Implements share-read / write Api object over ILogin.
This behaves like a singleton, i.e. all instances are shared behind the same API interface
|
inlinenoexcept |
Check for available map name.
| [in] | name | The user name check for availability ( must be unique in login group ) |
| [in] | listener | The operation listener, will receive the result error code |
|
inlinenoexcept |
Delete current logged account.
All local data and cloud data will be removed
| [in] | listener | The operation listener, will receive the result error code |
|
inlinenoexcept |
Get available login icons.
|
inlinenoexcept |
Get the current login session time.
If the user is logout a default object is returned
|
inlinenoexcept |
Get current logged account email.
If the user is logout, an empty string is returned
|
inlinenoexcept |
Get current logged account first name.
If the user is logout, an empty string is returned
|
inlinenoexcept |
Get current logged account unique id.
If the user is logout, a 0 value is returned
|
inlinenoexcept |
Get current logged account image.
If the user is logout, a default object is returned
|
inlinenoexcept |
Get current logged account image id.
If the user is logout, KInvalidIconId is returned
|
inlinenoexcept |
Get current logged account last name.
If the user is logout, an empty string is returned
|
inlinenoexcept |
Get current logged account name.
If the user is logout, an empty string is returned
|
inlinenoexcept |
Get current logged account phone number.
If the user is logout, an empty string is returned
|
inlinenoexcept |
Get current logged account social credibility.
If the user is logout a 0 value is returned
|
inlinenoexcept |
Check login state.
|
inlinenoexcept |
Login user.
| [in] | name | The unique user name ( must be checked for availability with checkNameAvailability ) |
| [in] | pwd | The user password. The server will not keep the password literal ( nor a hash ) |
| [in] | listener | The operation listener, will receive the result error code |
|
inlinenoexcept |
Logout user.
|
default |
Default move assignment noexcept is deduced.
| [in] | login | The login object to be moved |
|
inlinenoexcept |
Register new user account.
| [in] | name | The unique user name ( must be checked for availability with checkNameAvailability ) |
| [in] | pwd | The user password. The server will not keep the password literal ( nor a hash ) |
| [in] | firstName | The user first name ( optional ) |
| [in] | lastName | The user last name ( optional ) |
| [in] | phone | The user phone ( optional ) |
| [in] | The user email address ( optional ) | |
| [in] | iconId | The user icon index in getLoginIconList( optional, if no icon is set must be -1 ) |
| [in] | listener | The operation listener, will receive the result error code |
|
inlinenoexcept |
Register external login.
| [in] | loginId | The unique login id. The use must ensure the secrecy and uniqueness of the login id |
| [in] | listener | The operation listener, will receive the result error code |
error::KInUse if the external login id is already registered as a user
|
inlinenoexcept |
Set current logged in user data.
| [in] | firstName | The user first name |
| [in] | lastName | The user last name |
| [in] | phone | The user phone |
| [in] | The user email address | |
| [in] | iconId | The user icon index in getLoginIconList( if no icon is set must be -1 ) |
| [in] | listener | The operation listener, will receive the result error code |