#include <mw/noa/profileinfo.h>
class NokiaAccount::ProfileInfo : public QObject, public QObject |
Class holds the profile information.
Public Member Functions | |
---|---|
ProfileInfo(QObject *) | |
ProfileInfo(const ProfileInfoData &, QObject *) | |
ProfileInfo(const ProfileInfo &, QObject *) | |
ProfileInfo(QByteArray &) | |
~ProfileInfo() | |
QLocale::Country | country() |
QString | countryAsString() |
QDate | dateOfBirth() |
QString | emailAddress() |
bool | emailVerified() |
QString | firstName() |
Gender | gender() |
QLocale::Language | language() |
QString | languageAsString() |
QString | lastName() |
bool | marketingConsentForEmail() |
bool | marketingConsentForMobile() |
QString | mobilePhoneNumber() |
bool | mobilePhoneVerified() |
QString | securityAnswer() |
QString | securityQuestion() |
QByteArray | serialize() |
QStringList | serviceInfo() |
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 | setMobilePhoneNumber(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 ProfileInfo class object can be used to store and get the specific details pertaining to the account holder such as account holder's username, firstname, lastname, mobile number, email address, gender, language, country, date of birth, security question and secret answer.
ProfileInfo | ( | QObject * | parent = 0 | ) |
Constructor
Constructor.
ProfileInfo | ( | const ProfileInfoData & | profileInfoData, |
QObject * | parent = 0 | ||
) |
Constructor.
ProfileInfo | ( | QByteArray & | aSerializedData | ) |
Constructor.
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.
bool | emailVerified | ( | ) | const |
Getter for the email verification status.
APIs to check if the user's email id and phone number have been verified.
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.
bool | marketingConsentForEmail | ( | ) | const |
APIs to get email marketing consent.
bool | marketingConsentForMobile | ( | ) | const |
APIs to get mobile marketing consent.
QString | mobilePhoneNumber | ( | ) | const |
Getter for the phone number.
bool | mobilePhoneVerified | ( | ) | const |
Getter for the phone number verification status.
QString | securityAnswer | ( | ) | const |
Getter for the secret security answer.
QString | securityQuestion | ( | ) | const |
Getter for the secret question id.
QByteArray | serialize | ( | ) | const |
QStringList | serviceInfo | ( | ) | const |
Gets a list of service the user has subscribed.
Getter for the list of services.
void | setCountry | ( | const QLocale::Country & | country | ) |
Setter for the selected country.
Setter and getter for the user country.
Parameters | |
---|---|
country | Takes QLocale object's Country enum for the selected country. for example for india - country code string would be IN ,china(CN),France(FR) etc., |
void | setCountry | ( | const QString & | country | ) |
Setter for the selected country.
Setter and getter for the user country code as the string.
Parameters | |
---|---|
country | Takes Country code as the String. The Country code is assumed to be in BCP-47 format.2Characters in Captials. |
void | setDateOfBirth | ( | const QDate & | dateOfBirth | ) |
Setter for the date of birth.
Setter and getter for the account used 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 account 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 first name.
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 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 language code as the 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 last name.
Parameters | |
---|---|
lastName | Takes a QString for the last name. |
void | setMobilePhoneNumber | ( | const QString & | mobilePhoneNumber | ) |
Setter for the phone number.
Setter and getter for the account mobile phone number.
Parameters | |
---|---|
mobilePhoneNumber | Takes a QString for the phone number. |
void | setSecurityAnswer | ( | const QString & | securityAnswer | ) |
Setter for the answer to the secret question.
Setter and getter for the account security answer.
Parameters | |
---|---|
securityAnswer | Takes a QString for the answer. |
void | setSecurityQuestion | ( | const QString & | securityQuestion | ) |
Setter for the secret question.
Setter and getter for the account security question.
Parameters | |
---|---|
securityQuestion | Takes the secret question as a QString. This is the secret question selected by the user. |