#include <mw/noa/registrationinfo.h>
class NokiaAccount::RegistrationInfo : private QObject, private QObject |
Class holds the information required to register.
Public Member Functions | |
---|---|
RegistrationInfo(const RegistrationInfo &) | |
RegistrationInfo() | |
RegistrationInfo(QByteArray &) | |
~RegistrationInfo() | |
QString | captchaText() |
QLocale::Country | country() |
QString | countryAsString() |
QDate | dateOfBirth() |
QString | emailAddress() |
QString | firstName() |
Gender | gender() |
QString | getServiceId() |
QLocale::Language | language() |
QString | languageAsString() |
QString | lastName() |
MarketingConsentInfo | marketingInfo() |
QString | mobilePhoneNumber() |
QString | password() |
QString | securityAnswer() |
QString | securityQuestion() |
QByteArray | serialize() |
void | setCaptchaText(const QString &) |
void | setCountry(const QLocale::Country &) |
void | setCountry(const QString &) |
void | setDateOfBirth(const QDate &) |
void | setEmailAddress(const QString &) |
void | setFirstName(const QString &) |
void | setGender(const Gender &) |
void | setLanguage(const QLocale::Language &) |
void | setLanguage(const QString &) |
void | setLastName(const QString &) |
void | setMarketingInfo(MarketingConsentInfo &) |
void | setMobilePhoneNumber(const QString &) |
void | setPassword(const QString &) |
void | setSecurityAnswer(const QString &) |
void | setSecurityQuestion(const QString &) |
void | setUsername(const QString &) |
QString | userName() |
Inherited Attributes | |
---|---|
QObject::d_ptr | |
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 RegistrationInfo class object is used to store data required for registering a user. It provides API for setting and getting the user data such as username, password, firstname, lastname, mobile number, email address, gender, language, country, date of birth, marketing info, password question and secret answer.
RegistrationInfo | ( | QByteArray & | aSerializedData | ) |
Constructor.
QString | captchaText | ( | ) | const |
Getter for the captcha text.
QLocale::Country | country | ( | ) | const |
Getter for the selected country.
QString | countryAsString | ( | ) | const |
Getter for the selected country.
QDate | dateOfBirth | ( | ) | const |
Getter for the date of birth.
QString | emailAddress | ( | ) | const |
Getter for the email address.
QString | firstName | ( | ) | const |
Getter for the first name.
QLocale::Language | language | ( | ) | const |
Getter for the selected language.
QString | languageAsString | ( | ) | const |
Getter for the selected language.
QString | lastName | ( | ) | const |
Getter for the last name.
MarketingConsentInfo | marketingInfo | ( | ) | const |
Getter for the marketing info.
QString | mobilePhoneNumber | ( | ) | const |
Getter for the phone number.
QString | password | ( | ) | const |
Getter for the password.
QString | securityAnswer | ( | ) | const |
Getter for the answer to the secret question.
QString | securityQuestion | ( | ) | const |
Getter for the secret question id.
QByteArray | serialize | ( | ) | const |
void | setCaptchaText | ( | const QString & | captchaText | ) |
Setter for the captcha text.
Setter and getter for the captcha text.
Parameters | |
---|---|
captchaText | A QString representing text visible in the captcha image. |
void | setCountry | ( | const QLocale::Country & | country | ) |
Setter for the selected country.
Setter and getter for the user's country.
Parameters | |
---|---|
country | Takes QLocale object's Country enum for the selected country. |
void | setCountry | ( | const QString & | country | ) |
Setter for the selected country.
Setter and getter for the user's country as string.
Parameters | |
---|---|
country | Takes Country code as the String. The Country code is assumed to be in BCP-47 format.2Characters in Captials. for example for india - country code string would be IN ,china(CN),France(FR) etc., |
void | setDateOfBirth | ( | const QDate & | dateOfBirth | ) |
Setter for the date of birth.
Setter and getter for the user's date of birth.
Parameters | |
---|---|
dateOfBirth | Takes a Qdate for the date of birth. |
void | setEmailAddress | ( | const QString & | emailAddress | ) |
Setter for the email address.
Setter and getter for the user email id.
Parameters | |
---|---|
emailAddress | Takes a QString for the email address. |
void | setFirstName | ( | const QString & | firstName | ) |
Setter for the first name.
Setter and getter for the user's firstname.
Parameters | |
---|---|
firstName | Takes a QString for the first name. |
void | setGender | ( | const Gender & | gender | ) |
Setter for the gender.
Setter and getter for the user's gender.
Parameters | |
---|---|
gender | Takes a QString for gender. |
void | setLanguage | ( | const QLocale::Language & | language | ) |
Setter for the selected language.
Setter and getter for the user language.
Parameters | |
---|---|
language | Takes QLocale object's Langauge enum for the selected Langauge. |
void | setLanguage | ( | const QString & | language | ) |
Setter for the selected language.
Setter and getter for the user language as string.
Parameters | |
---|---|
language | Takes language code as the string. The language code is assumed to be in BCP-47 format. The following subtags are supported: language script region language-script-region (example: zh-Hant-HK) language-script (example : zh-Hant) langugae-region (example: zh-HK) language (example: zh) passed string should falls under the above mention formats otherwise,fails on validation. |
void | setLastName | ( | const QString & | lastName | ) |
Setter for the last name.
Setter and getter for the user's lastname.
Parameters | |
---|---|
lastName | Takes a QString for the last name. |
void | setMarketingInfo | ( | MarketingConsentInfo & | marketingInfo | ) |
Setter for the marketing info.
Setter and getter for the marketing info about user.
Parameters | |
---|---|
marketingInfo | Takes an object of type MarketingConsentInfo. |
void | setMobilePhoneNumber | ( | const QString & | mobilePhoneNumber | ) |
Setter for the phone number.
Setter and getter for the user mobile number.
Parameters | |
---|---|
mobilePhoneNumber | Takes a QString for the phone number. |
void | setPassword | ( | const QString & | password | ) |
Setter for the password.
Setter and getter for the user password.
Parameters | |
---|---|
password | Takes a QString for the password. Password text should be masked in the UI. |
void | setSecurityAnswer | ( | const QString & | securityAnswer | ) |
Setter for the answer to the secret question.
Setter and getter for the user secret answer.
Parameters | |
---|---|
securityAnswer | Takes a QString for the answer. |
void | setSecurityQuestion | ( | const QString & | secuirtyQuestion | ) |
Setter for the secret question id.
Setter and getter for the user security question.
Parameters | |
---|---|
secuirtyQuestion | Takes the secret question id as a QString. This is the identifier of the secret question selected by the user. |