NokiaAccount::AccountInfo Class Reference

#include <accountinfo.h>

class NokiaAccount::AccountInfo : public QObject, public QObject

Class holds the data associated with the current account.

Inherits from

  • NokiaAccount::AccountInfo
    Public Member Functions
    AccountInfo(QObject *)
    AccountInfo(const AccountInfo &, QObject *)
    AccountInfo(const AccountInfoData &, QObject *)
    AccountInfo(QByteArray &)
    ~AccountInfo()
    QString emailAddress()
    boolemailVerified()
    QString mobilePhoneNumber()
    boolmobilePhoneVerified()
    QByteArray serialize()
    voidsetEmailAddress(const QString &)
    voidsetMobilePhoneNumber(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 AccountInfo class stores the account details like account holder's mobile number, email address and username. Setters and getters are available for the same. It also keeps track if the email address and phone number have been verified.

    Constructor & Destructor Documentation

    AccountInfo ( QObject * )

    AccountInfo(QObject *parent = 0)

    Constructor

    Constructor.

    AccountInfo ( const AccountInfo &, QObject * )

    AccountInfo(const AccountInfo &accInfo,
    QObject *parent = 0
    )

    Copy Constructor

    Constructor.

    AccountInfo ( const AccountInfoData &, QObject * )

    AccountInfo(const AccountInfoData &accountInfoData,
    QObject *parent = 0
    )

    Constructor

    Constructor.

    AccountInfo ( QByteArray & )

    AccountInfo(QByteArray &aSerializedData)

    Destructor

    ~AccountInfo ( )

    ~AccountInfo()

    Destructor

    Destructor.

    Member Function Documentation

    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 email id and phone number has been verified.

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

    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.

    serialize ( )

    QByteArray serialize()

    serialize

    setEmailAddress ( const QString & )

    voidsetEmailAddress(const QString &emailAddress)

    Setter for the email address.

    Getter and Setter for the account email id.

    Parameters
    emailAddressTakes a QString for the email address.

    setMobilePhoneNumber ( const QString & )

    voidsetMobilePhoneNumber(const QString &mobilePhoneNumber)

    Setter for the phone number.

    Getter and Setter for the account mobile number.

    Parameters
    mobilePhoneNumberTakes a QString for the phone number.

    userName ( )

    QString userName()const

    Getter for the user name.

    Getter for the account username.

    Return Value
    Returns user name as a QString.