#include <mw/noa/registration.h>
Link against: noaipcclient.lib
class NokiaAccount::Registration : public QObject, public QObject, public QObject |
Registration Manager API.
Public Signals | |
---|---|
void | identityNotificationUpdate(ESSONotification, ESSONotifyStatusCode, QString) |
void | initialized(bool) |
void | requestFinished(ErrorCode, RequestType, int) |
Inherited Attributes | |
---|---|
QObject::objectName | |
QObject::staticQtMetaObject |
Inherited Functions | |
---|---|
QObject::QObject(QObjectPrivate &,QObject *) | |
QObject::blockSignals(bool) | |
QObject::childEvent(QChildEvent *) | |
QObject::children()const | |
QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const | |
QObject::connectNotify(const char *) | |
QObject::customEvent(QEvent *) | |
QObject::deleteLater | |
QObject::destroyed | |
QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &) | |
QObject::disconnect(const QObject *,const char *) | |
QObject::disconnect(const QObject *,const char *,const QObject *,const char *) | |
QObject::disconnect(const char *,const QObject *,const char *) | |
QObject::disconnectNotify(const char *) | |
QObject::dumpObjectInfo() | |
QObject::dumpObjectTree() | |
QObject::dynamicPropertyNames()const | |
QObject::event(QEvent *) | |
QObject::eventFilter(QObject *,QEvent *) | |
QObject::findChild(const QString &)const | |
QObject::findChildren(const QRegExp &)const | |
QObject::findChildren(const QString &)const | |
QObject::inherits(const char *)const | |
QObject::installEventFilter(QObject *) | |
QObject::isWidgetType()const | |
QObject::killTimer(int) | |
QObject::moveToThread(QThread *) | |
QObject::objectName()const | |
QObject::parent()const | |
QObject::property(const char *)const | |
QObject::receivers(const char *)const | |
QObject::registerUserData() | |
QObject::removeEventFilter(QObject *) | |
QObject::sender()const | |
QObject::senderSignalIndex()const | |
QObject::setObjectName(const QString &) | |
QObject::setParent(QObject *) | |
QObject::setProperty(const char *,const QVariant &) | |
QObject::setUserData(uint,QObjectUserData *) | |
QObject::signalsBlocked()const | |
QObject::startTimer(int) | |
QObject::thread()const | |
QObject::timerEvent(QTimerEvent *) | |
QObject::userData(uint)const | |
QObject::~QObject() |
The Registration class object is used to Register/Sign-up for Nokia Account. The APIs are provided for retrieving the security question list, available usernames, terms of service and Captcha image for registering.
Registration | ( | const QString & | consumerKey, |
const QString & | consumerSecret, | ||
const ConnectionDetail & | connectionDetail, | ||
bool | useAsync = false, | ||
QObject * | parent = 0 | ||
) |
Constructor
Constructor.
Parameters | |
---|---|
consumerKey | Consumer key. |
consumerSecret | Consumer secret. |
connectionDetail | Proxy connection details and timeout value. |
QStringList | availableUserNames | ( | ) |
Returns list of available usernames in case the user name chosen by the end user is not available. If user name is available list is empty.
Returns list of available usernames in case the user name chosen by the end user is not available. If user name is available list is empty.
void | cancelAsyncRequest | ( | int | requestId = 0 | ) |
Cancels any outstanding asynchronous requests. Cancels a specific request if ID is given, if none all outstanding requests are cancelled.
Might |
throw if the request is not valid. |
Parameters | |
---|---|
requestId | Identifies the specific request to be cancelled. |
QPixmap | captchaImage | ( | ) |
Gets the retrieved captcha image.
Gets the retrieved captcha image.
ConsentQueryVariant | consentQueryVariant | ( | ) |
Synchronously gets the consent. This API should be called only if the consentQueryVariant is success. Returns the int for the query consent, The conset returned can be QueryVariantImplicit,QueryVariantPreTicked,QueryVariantUnTicked QueryVariantUnTickedWithCopyText. Returns QueryVariantNone if the API is called without calling consentQueryVariant
synchronously get conset query for Single Marketing consent
QString | countryCode | ( | ) |
Returns country code as QString in IS0-3166 starndard.
Returns country code as QString in IS0-3166 starndard.
QString | guardianToken | ( | ) |
Returns the guardian Token. This token is used for registration in case of minor registration Client can use this guardian token only once. After successful registration, guardian token will be cleared. This call will not generate new token, and hence does not connect to backend.
Returns the current token.
void | identityNotificationUpdate | ( | ESSONotification | notificationType, |
ESSONotifyStatusCode | statusCode, | |||
QString | aMessage | |||
) | [signal] |
void | initialized | ( | bool | isInitialized | ) | [signal] |
bool | isTCVersionUpdated | ( | ) |
Synchronous call to check if Terms and Conditions is updated for Ovi Store with Orange
Synchronous call to check if Terms and Conditions is updated for Ovi Store with Orange
ProfileInfo | operatorProfile | ( | ) |
This is synchronous call. This is synchronous call.
Strength | passwordStrength | ( | const QString & | password | ) |
Returns the strength of the password. The value returned is an enum indicating whether the password is weak,medium,strong,too short or too long. By default it returns unknown strength when the password passed is empty.
Returns the strength of the password.
Parameters | |
---|---|
password | whose strength has to be measured. |
int | registerAccount | ( | const RegistrationInfo & | registrationInfo, |
const QString & | guardianToken = QString("") | |||
) |
registerAccount Asynchronously register for Nokia Account. Aka Sign-up.
Asynchronously register for Account. Aka Sign-up. // Added for backward compatibility.
Parameters | |
---|---|
registrationInfo | Contains all information needed to register the end user. |
guardianToken | contains token for guardian in case of minor |
int | registerAccount | ( | const RegistrationInfo & | registrationInfo, |
const QString & | guardianToken, | |||
SSOAccountCategoryType | accountType = eAccountCategoryDefault | |||
) |
registerAccount Asynchronously register for Nokia Account. Aka Sign-up.
Asynchronously register for Account. Aka Sign-up.
Parameters | |
---|---|
registrationInfo | Contains all information needed to register the end user. |
guardianToken | contains token for guardian in case of minor |
accountType | Its for the Federated clients, clients can specify the type of account to be created. |
void | requestFinished | ( | ErrorCode | error, |
RequestType | requestType, | |||
int | requestId | |||
) | [signal] |
Signal to indicate that the specified request id has finished.
Parameters | |
---|---|
error | Indicates the type of error or ErrNone. |
requestType | Indicates the Requested operation type. |
requestId | The request id for which the signal is generated. |
int | retrieveCaptchaImage | ( | const QSize & | size = DEFAULTCAPTCHASIZE | ) |
Retrieve captcha image from backend. Request status is returned via a signal. Once the signal is received, the client needs to call captchaImage(). Optional size can be specified in terms of width and height limits min = 10 and max = 700. Default is 200 x 50.
Retrieve captcha image from backend.
Parameters | |
---|---|
size | Optionally specify the required size of the captcha image. |
int | retrieveConsentQueryVariant | ( | ) |
Asynchronously gets the consent query inforation. Signal indicates success or failure.
Asynchronously get conset query information for Single Marketing consent from the backend
int | retrieveEmailIdAvailability | ( | const QString & | emailId | ) |
Checks if given email-id is available with the backend.
Checks if given email id is available.
Parameters | |
---|---|
emailId | - Email Id to be checked if available. |
int | retrieveSecurityQuestionList | ( | const QLocale::Language & | language | ) |
Retrieve list of security questions. Request status is returned via a signal. Once the signal is received, the client should call securityQuestionList() to retrieve the questions list.
Retrieve list of security questions.
Parameters | |
---|---|
language | Language code to which security questions have to be localized. |
int | retrieveSecurityQuestionList | ( | const QString & | language | ) |
Retrieve list of security questions. Request status is returned via a signal. Once the signal is received, the client should call securityQuestionList() to retrieve the questions list.
Retrieve list of security questions.
Parameters | |
---|---|
language | Language string code to which security questions have to be localized. language string is validated at the enabler, if the passed language string is invalid (not as per BCP47 standards) it emits the requestFinished signal with errorInvalidLanguage. BCP-formats for the language, language-script-region (example: zh-Hant-HK) language-script (example : zh-Hant) langugae-region (example: zh-HK) language (example: zh) |
int | retrieveTermsOfService | ( | const QString & | serviceId, |
const QLocale::Language & | language = QLocale::C, | |||
const QLocale::Country & | country = QLocale::AnyCountry, | |||
const TermsFormat & | format = TermsFormatText | |||
) |
Retrieves the terms of service. Request status is returned via a signal. Once the signal is received the client should call termsOfService().
Retrieves the terms of service .
Parameters | |
---|---|
serviceId | In case the TOS is service specific, then service id should be provided. this value can be OviMail for fetching OviMail related ServoceSpecific and Privacy policy urls. service id ="Ovimail" |
language | Language in which terms of service has to be localized. |
country | Country for terms of service. |
format | is the format of the file that is returned |
int | retrieveTermsOfService | ( | const QString & | serviceId, |
const QString & | language, | |||
const QString & | country, | |||
const TermsFormat & | format = TermsFormatText | |||
) |
Retrieves the terms of service. Request status is returned via a signal. Once the signal is received the client should call termsOfService().
Parameters | |
---|---|
serviceId | In case the TOS is service specific, then service id should be provided. this value can be OviMail for fetching OviMail related ServoceSpecific and Privacy policy urls. service id ="Ovimail" |
language | Language in which terms of service has to be localized. language string is validated at the enabler ,if it is invalid (not BCP-format),it emits requestFinished signal with errorInvalidLanguage. |
country | Country for terms of service.country string is validated at the enabler,if it is invalid (not as BCP-format),it emits the requestFinished signal with errorInvalidCountry. |
format | is the format of the file that is returned |
int | retrieveUserNameAvailability | ( | const QString & | userName | ) |
Checks if given user name is available with the backend. Request status is returned via a signal. Once the signal is received, the client should call availableUserNames() to retrieve the list. If user name is available list is empty.
Checks if given user name is available.
Parameters | |
---|---|
userName | User name to be checked if available. |
int | retriveOperatorProfile | ( | ) |
This is asynchronous call. Request for profile fetch from the server. On successfull profile fetch from server requestComplete signal is invoked. This is asynchronous call. Request for profile fetch from the server. On successfull profile fetch from server requestComplete signal is invoked.
QMap< QString, QString > | securityQuestionList | ( | ) |
Returns a map of security questions and their IDs. The security questions are localised.
Returns the retrieved map of security questions and their IDs.
int | signInAsGuardian | ( | const QString & | password, |
const QString & | userId | |||
) |
Asynchronously signs-in the guardian to the backend. Signal indicates success or failure. If the user is already signed-in, the backend calls are not made & the API returns with a success status.
Asynchronously signs-in the user.
Parameters | |
---|---|
password | Account password. |
userId | User name for the account. |
TermsAcceptanceData | termsAcceptance | ( | ) |
Returns the retrieved terms acceptance data.
Returns the terms acceptance info .
QString | termsOfService | ( | const Terms & | terms | ) |
Returns the retrieved terms of service in a url format.
Returns the retrieved terms of service in a url format.
Parameters | |
---|---|
terms | Terms enum member |
QString | updateAcceptedTCVersion | ( | ) |
Synchronous call to update accepted Terms and Conditions version for Ovi Store with Orange
Synchronous call to update accepted Terms and Conditions version for Ovi Store with Orange