NokiaAccount::ProfileInfo Class Reference

#include <mw/noa/profileinfo.h>

class NokiaAccount::ProfileInfo : public QObject, public QObject

Class holds the profile information.

Inherits from

  • NokiaAccount::ProfileInfo
    Public Member Functions
    ProfileInfo(QObject *)
    ProfileInfo(const ProfileInfoData &, QObject *)
    ProfileInfo(const ProfileInfo &, QObject *)
    ProfileInfo(QByteArray &)
    ~ProfileInfo()
    QLocale::Country country()
    QString countryAsString()
    QDatedateOfBirth()
    QString emailAddress()
    boolemailVerified()
    QString firstName()
    Gender gender()
    QLocale::Language language()
    QString languageAsString()
    QString lastName()
    boolmarketingConsentForEmail()
    boolmarketingConsentForMobile()
    QString mobilePhoneNumber()
    boolmobilePhoneVerified()
    QString securityAnswer()
    QString securityQuestion()
    QByteArray serialize()
    QStringList serviceInfo()
    voidsetCountry(const QLocale::Country &)
    voidsetCountry(const QString &)
    voidsetDateOfBirth(const QDate &)
    voidsetEmailAddress(const QString &)
    voidsetFirstName(const QString &)
    voidsetGender(const Gender)
    voidsetLanguage(const QLocale::Language &)
    voidsetLanguage(const QString &)
    voidsetLastName(const QString &)
    voidsetMobilePhoneNumber(const QString &)
    voidsetSecurityAnswer(const QString &)
    voidsetSecurityQuestion(const QString &)
    voidsetUsername(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()

    Detailed Description

    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.

    Constructor & Destructor Documentation

    ProfileInfo ( QObject * )

    ProfileInfo(QObject *parent = 0)

    Constructor

    Constructor.

    ProfileInfo ( const ProfileInfoData &, QObject * )

    ProfileInfo(const ProfileInfoData &profileInfoData,
    QObject *parent = 0
    )

    Constructor.

    ProfileInfo ( const ProfileInfo &, QObject * )

    ProfileInfo(const ProfileInfo &profInfo,
    QObject *parent = 0
    )

    Constructor.

    ProfileInfo ( QByteArray & )

    ProfileInfo(QByteArray &aSerializedData)

    Constructor.

    ~ProfileInfo ( )

    ~ProfileInfo()

    Destructor

    Destructor.

    Member Function Documentation

    country ( )

    QLocale::Country country()const

    Getter for the selected country.

    Return Value
    Returns selected country as a QLocale object's Country enum.

    countryAsString ( )

    QString countryAsString()const

    Getter for the selected country.

    Return Value
    Returns selected country as a string.

    dateOfBirth ( )

    QDatedateOfBirth()const

    Getter for the date of birth.

    Return Value
    Returns date of birth as a Qdate.

    emailAddress ( )

    QString emailAddress()const

    Getter for the email address.

    Return Value
    Returns email address as a QString.

    emailVerified ( )

    boolemailVerified()const

    Getter for the email verification status.

    APIs to check if the user's email id and phone number have been verified.

    Return Value
    Returns the status whether the email is verified or not.

    firstName ( )

    QString firstName()const

    Getter for the first name.

    Return Value
    Returns first name as a QString.

    gender ( )

    Gender gender()const

    Getter for the gender.

    Return Value
    Returns gender as a QString.

    language ( )

    QLocale::Language language()const

    Getter for the selected language.

    Return Value
    Returns selected Langauge as QLocale object's Langauge enum.

    languageAsString ( )

    QString languageAsString()const

    Getter for the selected language.

    Return Value
    Returns selected Langauge as string

    lastName ( )

    QString lastName()const

    Getter for the last name.

    Return Value
    Returns last name as a QString.

    marketingConsentForEmail ( )

    boolmarketingConsentForEmail()const

    APIs to get email marketing consent.

    marketingConsentForMobile ( )

    boolmarketingConsentForMobile()const

    APIs to get mobile marketing consent.

    mobilePhoneNumber ( )

    QString mobilePhoneNumber()const

    Getter for the phone number.

    Return Value
    Returns phone number as a QString.

    mobilePhoneVerified ( )

    boolmobilePhoneVerified()const

    Getter for the phone number verification status.

    Return Value
    Returns the status whether the phone number is verified or not.

    securityAnswer ( )

    QString securityAnswer()const

    Getter for the secret security answer.

    Return Value
    Returns secret security answer as a QString.

    securityQuestion ( )

    QString securityQuestion()const

    Getter for the secret question id.

    Return Value
    Returns secret question id as a QString.

    serialize ( )

    QByteArray serialize()const

    serviceInfo ( )

    QStringList serviceInfo()const

    Gets a list of service the user has subscribed.

    Getter for the list of services.

    Return Value
    Returns service list as a QStringList.

    setCountry ( const QLocale::Country & )

    voidsetCountry(const QLocale::Country &country)

    Setter for the selected country.

    Setter and getter for the user country.

    Parameters
    countryTakes QLocale object's Country enum for the selected country. for example for india - country code string would be IN ,china(CN),France(FR) etc.,

    setCountry ( const QString & )

    voidsetCountry(const QString &country)

    Setter for the selected country.

    Setter and getter for the user country code as the string.

    Parameters
    countryTakes Country code as the String. The Country code is assumed to be in BCP-47 format.2Characters in Captials.

    setDateOfBirth ( const QDate & )

    voidsetDateOfBirth(const QDate &dateOfBirth)

    Setter for the date of birth.

    Setter and getter for the account used date of birth.

    Parameters
    dateOfBirthTakes a Qdate for the date of birth.

    setEmailAddress ( const QString & )

    voidsetEmailAddress(const QString &emailAddress)

    Setter for the email address.

    Setter and getter for the account email id.

    Parameters
    emailAddressTakes a QString for the email address.

    setFirstName ( const QString & )

    voidsetFirstName(const QString &firstName)

    Setter for the first name.

    Setter and getter for the user's first name.

    Parameters
    firstNameTakes a QString for the first name.

    setGender ( const Gender )

    voidsetGender(const Gendergender)

    Setter for the gender.

    Setter and getter for the user's gender.

    Parameters
    genderTakes a QString for gender.

    setLanguage ( const QLocale::Language & )

    voidsetLanguage(const QLocale::Language &language)

    Setter for the selected language.

    Setter and getter for the language.

    Parameters
    languageTakes QLocale object's Langauge enum for the selected Langauge.

    setLanguage ( const QString & )

    voidsetLanguage(const QString &language)

    Setter for the selected language.

    Setter and getter for the language code as the string.

    Parameters
    languageTakes 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.

    setLastName ( const QString & )

    voidsetLastName(const QString &lastName)

    Setter for the last name.

    Setter and getter for the user's last name.

    Parameters
    lastNameTakes a QString for the last name.

    setMobilePhoneNumber ( const QString & )

    voidsetMobilePhoneNumber(const QString &mobilePhoneNumber)

    Setter for the phone number.

    Setter and getter for the account mobile phone number.

    Parameters
    mobilePhoneNumberTakes a QString for the phone number.

    setSecurityAnswer ( const QString & )

    voidsetSecurityAnswer(const QString &securityAnswer)

    Setter for the answer to the secret question.

    Setter and getter for the account security answer.

    Parameters
    securityAnswerTakes a QString for the answer.

    setSecurityQuestion ( const QString & )

    voidsetSecurityQuestion(const QString &securityQuestion)

    Setter for the secret question.

    Setter and getter for the account security question.

    Parameters
    securityQuestionTakes the secret question as a QString. This is the secret question selected by the user.

    setUsername ( const QString & )

    voidsetUsername(const QString &userName)

    Setter for the user name.

    Parameters
    userNameTakes a QString for the user name.

    userName ( )

    QString userName()const

    Getter for the user name.

    Getter for the account user name

    Return Value
    Returns user name as a QString.